#include <RU_PixelFunction.h>
Public Member Functions | |
| RU_PixelFunction () | |
| virtual | ~RU_PixelFunction () |
| void | setScope (bool *scope) |
| bool | isScoped (int i) const |
| const bool * | getScope () const |
| bool | isPartialScope () const |
| bool | isComponentDependent () const |
| bool | areAllComponentsNeeded () const |
| void | buildPixelEngine () |
| void | buildVectorEngine () |
| void | buildShaderEngine (RE_OGLComputeGPU *gpgpu) |
| float | processValue (float val, int comp) const |
| void | processValues (float **vals) const |
| const char * | getShaderCode () const |
| const char * | getFunctionCode () const |
| const char * | getLocals () const |
| bool | usesNumCompsGlobal () const |
| void | setNext (RU_PixelFunction *next) |
| RU_PixelFunction * | next () const |
| void | setNumComps (int comps) |
Protected Member Functions | |
| virtual bool | needAllComponents () const |
| virtual bool | eachComponentDifferent () const |
| virtual RUPixelFunc | getPixelFunction () const |
| virtual RUVectorFunc | getVectorFunction () const |
| virtual void | getPixelShader (UT_String &frag_shader) |
| void | addConstant (const char *name, RE_GPUType type, int vectorsize, const void *data, int array_size=1) |
| void | addLocal (const char *name, RE_GPUType type, int vectorsize) |
| void | addArray (const char *name, RE_GPUType type, int vectorsize, int width, int height, const void *data) |
| void | addArray (const char *name, RE_GPUType type, int vectorsize, int width, int height, const void *data1, const void *data2, const void *data3, const void *data4) |
| void | addFunction (const char *function_name, const char *code) |
| void | usesGlobal (const char *name) |
| int | getFunctionIndex () const |
| int | getNumComps () const |
Static Protected Member Functions | |
| static float | defaultPixelFunction (RU_PixelFunction *func, float val, int comp) |
| static void | defaultVectorFunction (RU_PixelFunction *func, float **vals, const bool *scope) |
Friends | |
| class | RU_ColorCurve |
Definition at line 39 of file RU_PixelFunction.h.
| RU_PixelFunction::RU_PixelFunction | ( | ) | [inline] |
Definition at line 42 of file RU_PixelFunction.h.
| virtual RU_PixelFunction::~RU_PixelFunction | ( | ) | [virtual] |
| void RU_PixelFunction::addArray | ( | const char * | name, | |
| RE_GPUType | type, | |||
| int | vectorsize, | |||
| int | width, | |||
| int | height, | |||
| const void * | data1, | |||
| const void * | data2, | |||
| const void * | data3, | |||
| const void * | data4 | |||
| ) | [protected] |
| void RU_PixelFunction::addArray | ( | const char * | name, | |
| RE_GPUType | type, | |||
| int | vectorsize, | |||
| int | width, | |||
| int | height, | |||
| const void * | data | |||
| ) | [protected] |
| void RU_PixelFunction::addConstant | ( | const char * | name, | |
| RE_GPUType | type, | |||
| int | vectorsize, | |||
| const void * | data, | |||
| int | array_size = 1 | |||
| ) | [protected] |
| void RU_PixelFunction::addFunction | ( | const char * | function_name, | |
| const char * | code | |||
| ) | [protected] |
| void RU_PixelFunction::addLocal | ( | const char * | name, | |
| RE_GPUType | type, | |||
| int | vectorsize | |||
| ) | [protected] |
| bool RU_PixelFunction::areAllComponentsNeeded | ( | ) | const |
| void RU_PixelFunction::buildPixelEngine | ( | ) |
| void RU_PixelFunction::buildShaderEngine | ( | RE_OGLComputeGPU * | gpgpu | ) |
| void RU_PixelFunction::buildVectorEngine | ( | ) |
| static float RU_PixelFunction::defaultPixelFunction | ( | RU_PixelFunction * | func, | |
| float | val, | |||
| int | comp | |||
| ) | [static, protected] |
| static void RU_PixelFunction::defaultVectorFunction | ( | RU_PixelFunction * | func, | |
| float ** | vals, | |||
| const bool * | scope | |||
| ) | [static, protected] |
| virtual bool RU_PixelFunction::eachComponentDifferent | ( | ) | const [inline, protected, virtual] |
Reimplemented in RU_ColorCurveFunc, RU_MAddFunc, RU_GammaFunc, RU_LookupTableFunc, and HDK_Sample::cop2_AddFunc.
Definition at line 100 of file RU_PixelFunction.h.
| const char* RU_PixelFunction::getFunctionCode | ( | ) | const [inline] |
Definition at line 80 of file RU_PixelFunction.h.
| int RU_PixelFunction::getFunctionIndex | ( | ) | const [inline, protected] |
Definition at line 144 of file RU_PixelFunction.h.
| const char* RU_PixelFunction::getLocals | ( | ) | const [inline] |
Definition at line 81 of file RU_PixelFunction.h.
| int RU_PixelFunction::getNumComps | ( | ) | const [inline, protected] |
Definition at line 146 of file RU_PixelFunction.h.
| virtual RUPixelFunc RU_PixelFunction::getPixelFunction | ( | ) | const [protected, virtual] |
Reimplemented in RU_ColorCurveFunc, RU_AddFunc, RU_MultFunc, RU_MAddFunc, RU_ScaleFunc, RU_GammaFunc, RU_LimitFunc, RU_QuantizeFunc, RU_LookupClipFunc, RU_LookupTableFunc, RU_AbsFunc, RU_SignFunc, RU_PowerFunc, RU_RaiseFunc, RU_LogFunc, RU_SinFunc, RU_SinhFunc, RU_CoshFunc, RU_TanFunc, RU_TanhFunc, RU_AtanFunc, RU_AsinFunc, RU_AcosFunc, RU_NegateFunc, RU_InvertFunc, RU_FloorFunc, RU_CeilFunc, RU_RoundFunc, RU_LevelsFunc, and HDK_Sample::cop2_AddFunc.
| virtual void RU_PixelFunction::getPixelShader | ( | UT_String & | frag_shader | ) | [protected, virtual] |
Reimplemented in RU_ColorCurveFunc, RU_HueCurveFunc, RU_AddFunc, RU_MultFunc, RU_MAddFunc, RU_ScaleFunc, RU_GammaFunc, RU_LimitFunc, RU_QuantizeFunc, RU_NTSCLuminanceFunc, RU_LuminanceFunc, RU_HueFunc, RU_SaturationFunc, RU_MaxFunc, RU_MinFunc, RU_AverageFunc, RU_LengthFunc, RU_ComponentFunc, RU_NormalizeFunc, RU_HSVConvertFunc, RU_VectorFunc, RU_LookupClipFunc, RU_AbsFunc, RU_SignFunc, RU_PowerFunc, RU_RaiseFunc, RU_LogFunc, RU_SinFunc, RU_SinhFunc, RU_CoshFunc, RU_TanFunc, RU_TanhFunc, RU_AtanFunc, RU_AsinFunc, RU_AcosFunc, RU_NegateFunc, RU_InvertFunc, RU_FloorFunc, RU_CeilFunc, RU_RoundFunc, and RU_LevelsFunc.
| const bool* RU_PixelFunction::getScope | ( | ) | const [inline] |
Definition at line 48 of file RU_PixelFunction.h.
| const char* RU_PixelFunction::getShaderCode | ( | ) | const [inline] |
Definition at line 79 of file RU_PixelFunction.h.
| virtual RUVectorFunc RU_PixelFunction::getVectorFunction | ( | ) | const [protected, virtual] |
Reimplemented in RU_HueCurveFunc, RU_ColorReplace, RU_NTSCLuminanceFunc, RU_LuminanceFunc, RU_HueFunc, RU_SaturationFunc, RU_MaxFunc, RU_MinFunc, RU_AverageFunc, RU_LengthFunc, RU_ComponentFunc, RU_NormalizeFunc, RU_HSVConvertFunc, RU_VectorFunc, RU_LookupClipFunc, RU_LookupTableFunc, and HDK_Sample::cop2_AddFunc.
| bool RU_PixelFunction::isComponentDependent | ( | ) | const |
| bool RU_PixelFunction::isPartialScope | ( | ) | const |
| bool RU_PixelFunction::isScoped | ( | int | i | ) | const [inline] |
Definition at line 47 of file RU_PixelFunction.h.
| virtual bool RU_PixelFunction::needAllComponents | ( | ) | const [inline, protected, virtual] |
Reimplemented in RU_HueCurveFunc, RU_ColorReplace, RU_NTSCLuminanceFunc, RU_LuminanceFunc, RU_HueFunc, RU_SaturationFunc, RU_MaxFunc, RU_MinFunc, RU_AverageFunc, RU_LengthFunc, RU_ComponentFunc, RU_NormalizeFunc, RU_HSVConvertFunc, RU_VectorFunc, RU_LookupClipFunc, RU_LookupTableFunc, and HDK_Sample::cop2_AddFunc.
Definition at line 97 of file RU_PixelFunction.h.
| RU_PixelFunction* RU_PixelFunction::next | ( | ) | const [inline] |
Definition at line 85 of file RU_PixelFunction.h.
| float RU_PixelFunction::processValue | ( | float | val, | |
| int | comp | |||
| ) | const [inline] |
Definition at line 63 of file RU_PixelFunction.h.
| void RU_PixelFunction::processValues | ( | float ** | vals | ) | const [inline] |
Definition at line 71 of file RU_PixelFunction.h.
| void RU_PixelFunction::setNext | ( | RU_PixelFunction * | next | ) | [inline] |
Definition at line 84 of file RU_PixelFunction.h.
| void RU_PixelFunction::setNumComps | ( | int | comps | ) | [inline] |
Definition at line 87 of file RU_PixelFunction.h.
| void RU_PixelFunction::setScope | ( | bool * | scope | ) |
| void RU_PixelFunction::usesGlobal | ( | const char * | name | ) | [protected] |
| bool RU_PixelFunction::usesNumCompsGlobal | ( | ) | const [inline] |
Definition at line 82 of file RU_PixelFunction.h.
friend class RU_ColorCurve [friend] |
Definition at line 174 of file RU_PixelFunction.h.
1.5.9