[Bf-blender-cvs] [9e0b44aae94] master: Cleanup: ed_util_imbuf sections
Campbell Barton
noreply at git.blender.org
Tue Apr 14 02:50:25 CEST 2020
Commit: 9e0b44aae941d0d175a072c12423b0db094c4c3e
Author: Campbell Barton
Date: Tue Apr 14 10:44:46 2020 +1000
Branches: master
https://developer.blender.org/rB9e0b44aae941d0d175a072c12423b0db094c4c3e
Cleanup: ed_util_imbuf sections
===================================================================
M source/blender/editors/util/ed_util_imbuf.c
===================================================================
diff --git a/source/blender/editors/util/ed_util_imbuf.c b/source/blender/editors/util/ed_util_imbuf.c
index 0c4ddc2b809..132a63a8249 100644
--- a/source/blender/editors/util/ed_util_imbuf.c
+++ b/source/blender/editors/util/ed_util_imbuf.c
@@ -53,7 +53,9 @@
/* Own define. */
#include "ED_util_imbuf.h"
-/* ********* Pixel sample operator ********* */
+/* -------------------------------------------------------------------- */
+/** \name Image Pixel Sample Struct (Operator Custom Data)
+ * \{ */
typedef struct ImageSampleInfo {
ARegionType *art;
@@ -80,6 +82,8 @@ typedef struct ImageSampleInfo {
int use_default_view;
} ImageSampleInfo;
+/** \} */
+
/* -------------------------------------------------------------------- */
/** \name Image Pixel Sample
* \{ */
@@ -155,6 +159,10 @@ static void image_sample_rect_color_float(ImBuf *ibuf, const rcti *rect, float r
/** \} */
+/* -------------------------------------------------------------------- */
+/** \name Image Pixel Sample (Internal Utilities)
+ * \{ */
+
static void image_sample_apply(bContext *C, wmOperator *op, const wmEvent *event)
{
SpaceImage *sima = CTX_wm_space_image(C);
@@ -387,6 +395,14 @@ static void ed_imbuf_sample_apply(bContext *C, wmOperator *op, const wmEvent *ev
}
}
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name Image Pixel Sample (Public Operator Callback)
+ *
+ * Callbacks for the sample operator, used by sequencer and image spaces.
+ * \{ */
+
void ED_imbuf_sample_draw(const bContext *C, ARegion *region, void *arg_info)
{
ImageSampleInfo *info = arg_info;
@@ -551,3 +567,5 @@ bool ED_imbuf_sample_poll(bContext *C)
return false;
}
+
+/** \} */
More information about the Bf-blender-cvs
mailing list