/usr/include/libwildmagic/Wm5ImageProcessing2.h is in libwildmagic-dev 5.13-1ubuntu3.
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 | // Geometric Tools, LLC
// Copyright (c) 1998-2014
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 5.0.1 (2010/10/01)
#ifndef WM5IMAGEPROCESSING2_H
#define WM5IMAGEPROCESSING2_H
#include "Wm5GraphicsLIB.h"
#include "Wm5ImageProcessing.h"
namespace Wm5
{
class WM5_GRAPHICS_ITEM ImageProcessing2 : public ImageProcessing
{
public:
// Construction and destruction. Objects of this class should not be
// instantiated until the shader profile is known. Thus, do not create
// such an object in an application constructor, but do so in
// OnInitialize or later.
// Use this constructor for the standard image processing pipeline.
ImageProcessing2 (int bound0, int bound1, Float4* imageData,
PixelShader* mainPShader, bool useDirichlet);
// Use this constructor when you want to set up your own pipeline for
// processing the image.
ImageProcessing2 (int bound0, int bound1, int numTargets);
virtual ~ImageProcessing2 ();
// Member access.
inline int GetBound0 () const;
inline int GetBound1 () const;
inline float GetDx () const;
inline float GetDy () const;
// Create a texture corresponding to the 2D image data.
Texture2D* CreateImage (Float4* imageData);
// Set boundary pixels to (0,0,0,0).
void CreateBoundaryDirichletEffect (VisualEffect*& effect,
VisualEffectInstance*& instance);
// Set boundary pixels so that boundary derivatives are zero.
void CreateBoundaryNeumannEffect (VisualEffect*& effect,
VisualEffectInstance*& instance);
// Draw the image.
void CreateDrawEffect (VisualEffect*& effect,
VisualEffectInstance*& instance);
private:
void CreateVertexShader ();
int mBound0, mBound1, mBound0M1, mBound1M1;
float mDx, mDy;
// Profile information for BoundaryDirichlet.fx.
static int msAllDirichletPTextureUnits[2];
static int* msDirichletPTextureUnits[Shader::MAX_PROFILES];
static std::string msDirichletPPrograms[Shader::MAX_PROFILES];
// Profile information for BoundaryNeumann.fx.
static int msAllNeumannPTextureUnits[2];
static int* msNeumannPTextureUnits[Shader::MAX_PROFILES];
static std::string msNeumannPPrograms[Shader::MAX_PROFILES];
// Profile information for ScreenShader.fx, function v_ScreenShader and
// p_ScreenShader2.
static int msAllDrawPTextureUnits[2];
static int* msDrawPTextureUnits[Shader::MAX_PROFILES];
static std::string msDrawPPrograms[Shader::MAX_PROFILES];
};
#include "Wm5ImageProcessing2.inl"
}
#endif
|