/usr/include/gli/reduce.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 88 89 90 91 92 93 94 95 | /// @brief Include to perform reduction operations.
/// @file gli/reduce.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 reduce_func
{
typedef vec_type(*type)(vec_type const & A, vec_type const & B);
};
/// Compute per-texel operations using a user defined function.
///
/// @param In0 First input texture.
/// @param In1 Second input texture.
/// @param TexelFunc Pointer to a binary function for per texel operation.
/// @param ReduceFunc Pointer to a binary function to reduce texels.
template <typename vec_type>
vec_type reduce(texture1d const & In0, texture1d const & In1, typename reduce_func<vec_type>::type TexelFunc, typename reduce_func<vec_type>::type ReduceFunc);
/// Compute per-texel operations using a user defined function.
///
/// @param In0 First input texture.
/// @param In1 Second input texture.
/// @param TexelFunc Pointer to a binary function for per texel operation.
/// @param ReduceFunc Pointer to a binary function to reduce texels.
template <typename vec_type>
vec_type reduce(texture1d_array const & In0, texture1d_array const & In1, typename reduce_func<vec_type>::type TexelFunc, typename reduce_func<vec_type>::type ReduceFunc);
/// Compute per-texel operations using a user defined function.
///
/// @param In0 First input texture.
/// @param In1 Second input texture.
/// @param TexelFunc Pointer to a binary function for per texel operation.
/// @param ReduceFunc Pointer to a binary function to reduce texels.
template <typename vec_type>
vec_type reduce(texture2d const & In0, texture2d const & In1, typename reduce_func<vec_type>::type TexelFunc, typename reduce_func<vec_type>::type ReduceFunc);
/// Compute per-texel operations using a user defined function.
///
/// @param In0 First input texture.
/// @param In1 Second input texture.
/// @param TexelFunc Pointer to a binary function for per texel operation.
/// @param ReduceFunc Pointer to a binary function to reduce texels.
template <typename vec_type>
vec_type reduce(texture2d_array const & In0, texture2d_array const & In1, typename reduce_func<vec_type>::type TexelFunc, typename reduce_func<vec_type>::type ReduceFunc);
/// Compute per-texel operations using a user defined function.
///
/// @param In0 First input texture.
/// @param In1 Second input texture.
/// @param TexelFunc Pointer to a binary function for per texel operation.
/// @param ReduceFunc Pointer to a binary function to reduce texels.
template <typename vec_type>
vec_type reduce(texture3d const & In0, texture3d const & In1, typename reduce_func<vec_type>::type TexelFunc, typename reduce_func<vec_type>::type ReduceFunc);
/// Compute per-texel operations using a user defined function.
///
/// @param In0 First input texture.
/// @param In1 Second input texture.
/// @param TexelFunc Pointer to a binary function for per texel operation.
/// @param ReduceFunc Pointer to a binary function to reduce texels.
template <typename vec_type>
vec_type reduce(texture_cube const & In0, texture_cube const & In1, typename reduce_func<vec_type>::type TexelFunc, typename reduce_func<vec_type>::type ReduceFunc);
/// Compute per-texel operations using a user defined function.
///
/// @param In0 First input texture.
/// @param In1 Second input texture.
/// @param TexelFunc Pointer to a binary function for per texel operation.
/// @param ReduceFunc Pointer to a binary function to reduce texels.
template <typename vec_type>
vec_type reduce(texture_cube_array const & In0, texture_cube_array const & In1, typename reduce_func<vec_type>::type TexelFunc, typename reduce_func<vec_type>::type ReduceFunc);
/// Compute per-texel operations using a user defined function.
///
/// @param In0 First input texture.
/// @param In1 Second input texture.
/// @param TexelFunc Pointer to a binary function for per texel operation.
/// @param ReduceFunc Pointer to a binary function to reduce texels.
template <typename texture_type, typename vec_type>
vec_type reduce(texture_type const & In0, texture_type const & In1, typename reduce_func<vec_type>::type TexelFunc, typename reduce_func<vec_type>::type ReduceFunc);
}//namespace gli
#include "./core/reduce.inl"
|