/usr/include/gli/transform.hpp is in libgli-dev 0.8.2.0+ds1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | /// @brief Include to perform arithmetic per texel between two textures.
/// @file gli/transform.hpp
#pragma once
#include "texture1d.hpp"
#include "texture1d_array.hpp"
#include "texture2d.hpp"
#include "texture2d_array.hpp"
#include "texture3d.hpp"
#include "texture_cube.hpp"
#include "texture_cube_array.hpp"
namespace gli
{
template <typename vec_type>
struct transform_func
{
typedef vec_type(*type)(vec_type const & A, vec_type const & B);
};
/// Compute per-texel operations using a user defined function.
///
/// @param Out Output texture.
/// @param In0 First input texture.
/// @param In1 Second input texture.
/// @param TexelFunc Pointer to a binary function.
template <typename vec_type>
void transform(texture1d & Out, texture1d const & In0, texture1d const & In1, typename transform_func<vec_type>::type TexelFunc);
/// Compute per-texel operations using a user defined function.
///
/// @param Out Output texture.
/// @param In0 First input texture.
/// @param In1 Second input texture.
/// @param TexelFunc Pointer to a binary function.
template <typename vec_type>
void transform(texture1d_array & Out, texture1d_array const & In0, texture1d_array const & In1, typename transform_func<vec_type>::type TexelFunc);
/// Compute per-texel operations using a user defined function.
///
/// @param Out Output texture.
/// @param In0 First input texture.
/// @param In1 Second input texture.
/// @param TexelFunc Pointer to a binary function.
template <typename vec_type>
void transform(texture2d & Out, texture2d const & In0, texture2d const & In1, typename transform_func<vec_type>::type TexelFunc);
/// Compute per-texel operations using a user defined function.
///
/// @param Out Output texture.
/// @param In0 First input texture.
/// @param In1 Second input texture.
/// @param TexelFunc Pointer to a binary function.
template <typename vec_type>
void transform(texture2d_array & Out, texture2d_array const & In0, texture2d_array const & In1, typename transform_func<vec_type>::type TexelFunc);
/// Compute per-texel operations using a user defined function.
///
/// @param Out Output texture.
/// @param In0 First input texture.
/// @param In1 Second input texture.
/// @param TexelFunc Pointer to a binary function.
template <typename vec_type>
void transform(texture3d & Out, texture3d const & In0, texture3d const & In1, typename transform_func<vec_type>::type TexelFunc);
/// Compute per-texel operations using a user defined function.
///
/// @param Out Output texture.
/// @param In0 First input texture.
/// @param In1 Second input texture.
/// @param TexelFunc Pointer to a binary function.
template <typename vec_type>
void transform(texture_cube & Out, texture_cube const & In0, texture_cube const & In1, typename transform_func<vec_type>::type TexelFunc);
/// Compute per-texel operations using a user defined function.
///
/// @param Out Output texture.
/// @param In0 First input texture.
/// @param In1 Second input texture.
/// @param TexelFunc Pointer to a binary function.
template <typename vec_type>
void transform(texture_cube_array & Out, texture_cube_array const & In0, texture_cube_array const & In1, typename transform_func<vec_type>::type TexelFunc);
}//namespace gli
#include "./core/transform.inl"
|