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:
authorCampbell Barton <ideasman42@gmail.com>2016-01-14 23:08:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-01-14 23:10:07 +0300
commitb4e56dce30cf1f2495f1222800627bd003591a3d (patch)
treee6efd36a5d789dfb3863f7ee8fff28fbdc24977f /source/blender/imbuf/IMB_imbuf_types.h
parent63a718e50f4b6077324e76918d477b20085709cd (diff)
Doc: more detailed ImBuf.rect/rect_float comments
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf_types.h')
-rw-r--r--source/blender/imbuf/IMB_imbuf_types.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/source/blender/imbuf/IMB_imbuf_types.h b/source/blender/imbuf/IMB_imbuf_types.h
index 0af203c9535..f4b2539d7d7 100644
--- a/source/blender/imbuf/IMB_imbuf_types.h
+++ b/source/blender/imbuf/IMB_imbuf_types.h
@@ -156,10 +156,19 @@ typedef struct ImBuf {
int mall; /* what is malloced internal, and can be freed */
/* pixels */
- unsigned int *rect; /* pixel values stored here */
- float *rect_float; /* floating point Rect equivalent
- * Linear RGB color space - may need gamma correction to
- * sRGB when generating 8bit representations */
+
+ /** Image pixel buffer (8bit representation):
+ * - color space defaults to `sRGB`.
+ * - alpha defaults to 'straight'.
+ */
+ unsigned int *rect;
+ /** Image pixel buffer (float representation):
+ * - color space defaults to 'linear' (`rec709`).
+ * - alpha defaults to 'premul'.
+ * \note May need gamma correction to `sRGB` when generating 8bit representations.
+ * \note Formats that support higher more than 8 but channels load as floats.
+ */
+ float *rect_float;
/* resolution - pixels per meter */
double ppm[2];