Color Management: remove unused functions
[blender.git] / source / blender / imbuf / intern / colormanagement.c
index 292c7910dd89013742956c5b43cd34c0e0f61c44..260aef533b570b0e0e8105f922a99bbb85245809 100644 (file)
@@ -1613,46 +1613,6 @@ void IMB_colormanagement_pixel_to_display_space_v3(float result[3], const float
        IMB_colormanagement_processor_free(cm_processor);
 }
 
-void IMB_colormanagement_pixel_to_role_v4(float pixel[4], int role)
-{
-#ifdef WITH_OCIO
-               ConstProcessorRcPtr *processor;
-               const char *from_colorspace = global_role_scene_linear;
-               const char *to_colorspace = IMB_colormanagement_role_colorspace_name_get(role);
-
-               processor = create_colorspace_transform_processor(from_colorspace, to_colorspace);
-
-               if (processor) {
-                       OCIO_processorApplyRGBA(processor, pixel);
-
-                       OCIO_processorRelease(processor);
-               }
-#else
-       (void) pixel;
-       (void) role;
-#endif
-}
-
-void IMB_colormanagement_pixel_from_role_v4(float pixel[4], int role)
-{
-#ifdef WITH_OCIO
-               ConstProcessorRcPtr *processor;
-               const char *from_colorspace = IMB_colormanagement_role_colorspace_name_get(role);
-               const char *to_colorspace = global_role_scene_linear;
-
-               processor = create_colorspace_transform_processor(from_colorspace, to_colorspace);
-
-               if (processor) {
-                       OCIO_processorApplyRGBA(processor, pixel);
-
-                       OCIO_processorRelease(processor);
-               }
-#else
-       (void) pixel;
-       (void) role;
-#endif
-}
-
 void IMB_colormanagement_imbuf_assign_spaces(ImBuf *ibuf, ColorManagedColorspaceSettings *colorspace_settings)
 {
 #ifdef WITH_OCIO
@@ -1680,11 +1640,6 @@ void IMB_colormanagement_imbuf_assign_spaces(ImBuf *ibuf, ColorManagedColorspace
 #endif
 }
 
-void IMB_colormanagement_imbuf_assign_default_spaces(ImBuf *ibuf)
-{
-       IMB_colormanagement_imbuf_assign_spaces(ibuf, NULL);
-}
-
 void IMB_colormanagement_imbuf_assign_float_space(ImBuf *ibuf, ColorManagedColorspaceSettings *colorspace_settings)
 {
        ibuf->float_colorspace = colormanage_colorspace_get_named(colorspace_settings->name);
@@ -1714,16 +1669,6 @@ void IMB_colormanagement_imbuf_make_display_space(ImBuf *ibuf, const ColorManage
 #endif
 }
 
-void IMB_colormanagement_imbuf_make_colorspace(ImBuf *ibuf, const char *to_colorspace, int flag)
-{
-       int predivide = ibuf->flags & IB_cm_predivide;
-
-       if (ibuf->rect_float && (flag & IB_rectfloat)) {
-               IMB_colormanagement_transform(ibuf->rect_float, ibuf->x, ibuf->y, ibuf->channels,
-                                             global_role_scene_linear, to_colorspace, predivide);
-       }
-}
-
 static void imbuf_verify_float(ImBuf *ibuf)
 {
        /* multiple threads could request for display buffer at once and in case