Code cleanup: remove unused color management functions

This commit is contained in:
Sergey Sharybin
2013-12-04 15:57:54 +06:00
parent 6a35b2d72a
commit a698709d95
2 changed files with 0 additions and 38 deletions

View File

@@ -191,11 +191,6 @@ bool IMB_colormanagement_setup_glsl_draw_from_space_ctx(const struct bContext *C
/* Finish GLSL-based display space conversion */
void IMB_colormanagement_finish_glsl_draw(void);
/* Configures GLSL shader for conversion from space defined by role to scene linear space */
bool IMB_colormanagement_setup_transform_from_role_glsl(int role, bool predivide);
/* Finish GLSL-based color space conversion */
void IMB_colormanagement_finish_glsl_transform(void);
/* Roles */
enum {
COLOR_ROLE_SCENE_LINEAR = 0,

View File

@@ -3147,36 +3147,3 @@ void IMB_colormanagement_finish_glsl_draw(void)
{
OCIO_finishGLSLDraw(global_glsl_state.ocio_glsl_state);
}
/* ** Color space conversion using GLSL shader ** */
/**
* Configures GLSL shader for conversion from space defined by role
* to scene linear space
*
* Will create appropriate OCIO processor and setup GLSL shader,
* so further 2D texture usage will use this conversion.
*
* Role is an pseudonym for a color space, see bottom of file
* IMB_colormanagement.h for list of available roles.
*
* When there's no need to apply transform on 2D textures, use
* IMB_colormanagement_finish_glsl_transform().
*/
bool IMB_colormanagement_setup_transform_from_role_glsl(int role, bool predivide)
{
OCIO_ConstProcessorRcPtr *processor;
ColorSpace *colorspace;
colorspace = colormanage_colorspace_get_roled(role);
processor = colorspace_to_scene_linear_processor(colorspace);
return OCIO_setupGLSLDraw(&global_glsl_state.transform_ocio_glsl_state, processor, NULL, predivide);
}
/* Finish GLSL-based color space conversion */
void IMB_colormanagement_finish_glsl_transform(void)
{
OCIO_finishGLSLDraw(global_glsl_state.transform_ocio_glsl_state);
}