hvirtual/plugins/colorbalance/aggregated.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define COLORBALANCE_COMPILE(shader_stack, current_shader, aggregate_prev)
#define COLORBALANCE_UNIFORMS(shader)

Variables

static char * colorbalance_get_pixel1
static char * colorbalance_get_pixel2
static char * colorbalance_rgb_shader
static char * colorbalance_yuv_shader
static char * colorbalance_yuv_preserve_shader


Define Documentation

#define COLORBALANCE_COMPILE ( shader_stack,
current_shader,
aggregate_prev   ) 

Value:

{ \
        if(aggregate_prev) \
                shader_stack[current_shader++] = colorbalance_get_pixel1; \
        else \
                shader_stack[current_shader++] = colorbalance_get_pixel2; \
        if(cmodel_is_yuv(get_output()->get_color_model())) \
        {\
                if(get_output()->get_params()->get("COLORBALANCE_PRESERVE", (int)0)) \
                        shader_stack[current_shader++] = colorbalance_yuv_preserve_shader; \
                else \
                        shader_stack[current_shader++] = colorbalance_yuv_shader; \
        } \
        else \
                shader_stack[current_shader++] = colorbalance_rgb_shader; \
}

Definition at line 48 of file aggregated.h.

Referenced by HistogramMain::handle_opengl(), and ColorBalanceMain::handle_opengl().

#define COLORBALANCE_UNIFORMS ( shader   ) 

Value:

glUniform3f(glGetUniformLocation(shader, "colorbalance_scale"),  \
                get_output()->get_params()->get("COLORBALANCE_CYAN", (float)1), \
                get_output()->get_params()->get("COLORBALANCE_MAGENTA", (float)1), \
                get_output()->get_params()->get("COLORBALANCE_YELLOW", (float)1));

Definition at line 65 of file aggregated.h.

Referenced by HistogramMain::handle_opengl(), and ColorBalanceMain::handle_opengl().


Variable Documentation

char* colorbalance_get_pixel1 [static]

Initial value:

        "vec4 colorbalance_get_pixel()\n"
        "{\n"
        "       return gl_FragColor;\n"
        "}\n"

Definition at line 4 of file aggregated.h.

char* colorbalance_get_pixel2 [static]

Initial value:

        "uniform sampler2D tex;\n"
        "vec4 colorbalance_get_pixel()\n"
        "{\n"
        "       return texture2D(tex, gl_TexCoord[0].st);\n"
        "}\n"

Definition at line 10 of file aggregated.h.

char* colorbalance_rgb_shader [static]

Initial value:

 
        "uniform vec3 colorbalance_scale;\n"
        "void main()\n"
        "{\n"
        "       gl_FragColor = colorbalance_get_pixel();\n"
        "       gl_FragColor.rgb *= colorbalance_scale;\n"
        "}\n"

Definition at line 18 of file aggregated.h.

Initial value:

 
        "uniform vec3 colorbalance_scale;\n"
        "void main()\n"
        "{\n"
        "       gl_FragColor = colorbalance_get_pixel();\n"
        "       float y = gl_FragColor.r;\n"

        "       gl_FragColor.rgb *= colorbalance_scale.rgb;\n"

        "       gl_FragColor.r = y;\n"
        "}\n"

Definition at line 36 of file aggregated.h.

char* colorbalance_yuv_shader [static]

Initial value:

 
        "uniform vec3 colorbalance_scale;\n"
        "void main()\n"
        "{\n"
        "       gl_FragColor = colorbalance_get_pixel();\n"

        "       gl_FragColor.rgb *= colorbalance_scale;\n"

        "}\n"

Definition at line 26 of file aggregated.h.


Generated on Mon Apr 28 14:00:54 2008 for Cinelerra by  doxygen 1.5.5