Color management: Cleanup, typos
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 5 Dec 2018 10:53:37 +0000 (11:53 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 5 Dec 2018 13:11:21 +0000 (14:11 +0100)
source/blender/editors/space_image/image_ops.c
source/blender/imbuf/IMB_colormanagement.h
source/blender/imbuf/intern/colormanagement.c
source/blender/makesrna/intern/rna_image_api.c

index 67727c661a0abe62a67256e9ae35c9e1f82f202e..edf0c67ca7d8b258680f0d1a7244ddd1970bc7b9 100644 (file)
@@ -1777,7 +1777,7 @@ static void save_image_post(
 
                        BKE_color_managed_colorspace_settings_copy(&old_colorspace_settings,
                                                                   &ima->colorspace_settings);
-                       IMB_colormanagment_colorspace_from_ibuf_ftype(&ima->colorspace_settings, ibuf);
+                       IMB_colormanagement_colorspace_from_ibuf_ftype(&ima->colorspace_settings, ibuf);
                        if (!BKE_color_managed_colorspace_settings_equals(&old_colorspace_settings,
                                                                          &ima->colorspace_settings))
                        {
index ff1784c54ddb86a2c8245b5465354e6d78670c2a..a08a8c976e038da49e5b8b66422074571176b33d 100644 (file)
@@ -137,18 +137,18 @@ void IMB_display_buffer_transform_apply(unsigned char *display_buffer, float *li
 
 void IMB_display_buffer_release(void *cache_handle);
 
-/* ** Display funcrions ** */
+/* ** Display functions ** */
 int IMB_colormanagement_display_get_named_index(const char *name);
 const char *IMB_colormanagement_display_get_indexed_name(int index);
 const char *IMB_colormanagement_display_get_default_name(void);
 struct ColorManagedDisplay *IMB_colormanagement_display_get_named(const char *name);
 const char *IMB_colormanagement_display_get_none_name(void);
 
-/* ** View funcrions ** */
+/* ** View functions ** */
 int IMB_colormanagement_view_get_named_index(const char *name);
 const char *IMB_colormanagement_view_get_indexed_name(int index);
 
-/* ** Look funcrions ** */
+/* ** Look functions ** */
 int IMB_colormanagement_look_get_named_index(const char *name);
 const char *IMB_colormanagement_look_get_indexed_name(int index);
 
@@ -157,7 +157,7 @@ int IMB_colormanagement_colorspace_get_named_index(const char *name);
 const char *IMB_colormanagement_colorspace_get_indexed_name(int index);
 const char *IMB_colormanagement_view_get_default_name(const char *display_name);
 
-void IMB_colormanagment_colorspace_from_ibuf_ftype(struct ColorManagedColorspaceSettings *colorspace_settings, struct ImBuf *ibuf);
+void IMB_colormanagement_colorspace_from_ibuf_ftype(struct ColorManagedColorspaceSettings *colorspace_settings, struct ImBuf *ibuf);
 
 /* ** RNA helper functions ** */
 void IMB_colormanagement_display_items_add(struct EnumPropertyItem **items, int *totitem);
index 86c4156ad8bfb5dfa23b3c891505fe1695fdc77f..6f8932f0e9cc041c3ad0947c4fbccd5e884f9f3d 100644 (file)
@@ -2570,7 +2570,7 @@ const char *IMB_colormanagement_colorspace_get_indexed_name(int index)
        return "";
 }
 
-void IMB_colormanagment_colorspace_from_ibuf_ftype(ColorManagedColorspaceSettings *colorspace_settings, ImBuf *ibuf)
+void IMB_colormanagement_colorspace_from_ibuf_ftype(ColorManagedColorspaceSettings *colorspace_settings, ImBuf *ibuf)
 {
        /* Don't modify non-color data space, it does not change with file type. */
        ColorSpace *colorspace = colormanage_colorspace_get_named(colorspace_settings->name);
index d6b7cabc3354393987b342921003055e079f4c1a..e554dd650a9fb470605b9727bd7d5af291785ebb 100644 (file)
@@ -132,7 +132,7 @@ static void rna_Image_save(Image *image, Main *bmain, bContext *C, ReportList *r
                        if (image->source == IMA_SRC_GENERATED)
                                image->source = IMA_SRC_FILE;
 
-                       IMB_colormanagment_colorspace_from_ibuf_ftype(&image->colorspace_settings, ibuf);
+                       IMB_colormanagement_colorspace_from_ibuf_ftype(&image->colorspace_settings, ibuf);
 
                        ibuf->userflags &= ~IB_BITMAPDIRTY;
                }