[Bf-blender-cvs] [d7a28b3d1ae] master: Cleanup: IMB: Put lowercase prefix on static functions

Clément Foucault noreply at git.blender.org
Thu Jul 30 16:58:49 CEST 2020


Commit: d7a28b3d1aeb112fbefc03f77a56ad4bdf47b32f
Author: Clément Foucault
Date:   Thu Jul 30 16:55:42 2020 +0200
Branches: master
https://developer.blender.org/rBd7a28b3d1aeb112fbefc03f77a56ad4bdf47b32f

Cleanup: IMB: Put lowercase prefix on static functions

===================================================================

M	source/blender/imbuf/intern/util_gpu.c

===================================================================

diff --git a/source/blender/imbuf/intern/util_gpu.c b/source/blender/imbuf/intern/util_gpu.c
index 6c6d8f79acc..5d0c6fe2e52 100644
--- a/source/blender/imbuf/intern/util_gpu.c
+++ b/source/blender/imbuf/intern/util_gpu.c
@@ -39,7 +39,7 @@
 
 /* gpu ibuf utils */
 
-static void IMB_gpu_get_format(const ImBuf *ibuf,
+static void imb_gpu_get_format(const ImBuf *ibuf,
                                bool high_bitdepth,
                                eGPUDataFormat *r_data_format,
                                eGPUTextureFormat *r_texture_format)
@@ -88,7 +88,7 @@ static bool IMB_gpu_get_compressed_format(const ImBuf *ibuf, eGPUTextureFormat *
  * Apply colormanagement and scale buffer if needed.
  * *r_freedata is set to true if the returned buffer need to be manually freed.
  **/
-static void *IMB_gpu_get_data(const ImBuf *ibuf,
+static void *imb_gpu_get_data(const ImBuf *ibuf,
                               const bool do_rescale,
                               const int rescale_size[2],
                               const bool compress_as_srgb,
@@ -163,7 +163,7 @@ GPUTexture *IMB_touch_gpu_texture(ImBuf *ibuf, int w, int h, int layers, bool us
 {
   eGPUDataFormat data_format;
   eGPUTextureFormat tex_format;
-  IMB_gpu_get_format(ibuf, use_high_bitdepth, &data_format, &tex_format);
+  imb_gpu_get_format(ibuf, use_high_bitdepth, &data_format, &tex_format);
 
   GPUTexture *tex = GPU_texture_create_nD(
       w, h, layers, 2, NULL, tex_format, data_format, 0, false, NULL);
@@ -190,12 +190,12 @@ void IMB_update_gpu_texture_sub(GPUTexture *tex,
 
   eGPUDataFormat data_format;
   eGPUTextureFormat tex_format;
-  IMB_gpu_get_format(ibuf, use_high_bitdepth, &data_format, &tex_format);
+  imb_gpu_get_format(ibuf, use_high_bitdepth, &data_format, &tex_format);
 
   const bool compress_as_srgb = (tex_format == GPU_SRGB8_A8);
   bool freebuf = false;
 
-  void *data = IMB_gpu_get_data(ibuf, do_rescale, size, compress_as_srgb, use_premult, &freebuf);
+  void *data = imb_gpu_get_data(ibuf, do_rescale, size, compress_as_srgb, use_premult, &freebuf);
 
   /* Update Texture. */
   GPU_texture_update_sub(tex, data_format, data, x, y, z, w, h, 1);
@@ -241,12 +241,12 @@ GPUTexture *IMB_create_gpu_texture(ImBuf *ibuf, bool use_high_bitdepth, bool use
 
   eGPUDataFormat data_format;
   eGPUTextureFormat tex_format;
-  IMB_gpu_get_format(ibuf, use_high_bitdepth, &data_format, &tex_format);
+  imb_gpu_get_format(ibuf, use_high_bitdepth, &data_format, &tex_format);
 
   const bool compress_as_srgb = (tex_format == GPU_SRGB8_A8);
   bool freebuf = false;
 
-  void *data = IMB_gpu_get_data(ibuf, do_rescale, size, compress_as_srgb, use_premult, &freebuf);
+  void *data = imb_gpu_get_data(ibuf, do_rescale, size, compress_as_srgb, use_premult, &freebuf);
 
   /* Create Texture. */
   tex = GPU_texture_create_nD(UNPACK2(size), 0, 2, data, tex_format, data_format, 0, false, NULL);



More information about the Bf-blender-cvs mailing list