Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/imbuf/intern/divers.c')
-rw-r--r--source/blender/imbuf/intern/divers.c30
1 files changed, 25 insertions, 5 deletions
diff --git a/source/blender/imbuf/intern/divers.c b/source/blender/imbuf/intern/divers.c
index 798849f2dd4..5f580449e12 100644
--- a/source/blender/imbuf/intern/divers.c
+++ b/source/blender/imbuf/intern/divers.c
@@ -35,7 +35,9 @@
#include "MEM_guardedalloc.h"
-/************************* Floyd-Steinberg dithering *************************/
+/* -------------------------------------------------------------------- */
+/** \name Floyd-Steinberg dithering
+ * \{ */
typedef struct DitherContext {
float dither;
@@ -56,7 +58,11 @@ static void clear_dither_context(DitherContext *di)
MEM_freeN(di);
}
-/************************* Generic Buffer Conversion *************************/
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name Generic Buffer Conversion
+ * \{ */
MINLINE void ushort_to_byte_v4(uchar b[4], const unsigned short us[4])
{
@@ -705,7 +711,11 @@ void IMB_buffer_byte_from_byte(uchar *rect_to,
}
}
-/****************************** ImBuf Conversion *****************************/
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name ImBuf Conversion
+ * \{ */
void IMB_rect_from_float(ImBuf *ibuf)
{
@@ -822,7 +832,11 @@ void IMB_float_from_rect(ImBuf *ibuf)
}
}
-/**************************** Color to Grayscale *****************************/
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name Color to Grayscale
+ * \{ */
/* no profile conversion */
void IMB_color_to_bw(ImBuf *ibuf)
@@ -864,7 +878,11 @@ void IMB_buffer_float_premultiply(float *buf, int width, int height)
}
}
-/**************************** alter saturation *****************************/
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name Alter Saturation
+ * \{ */
void IMB_saturation(ImBuf *ibuf, float sat)
{
@@ -890,3 +908,5 @@ void IMB_saturation(ImBuf *ibuf, float sat)
}
}
}
+
+/** \} */