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>2020-04-14 03:44:46 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-04-14 03:49:31 +0300
commit9e0b44aae941d0d175a072c12423b0db094c4c3e (patch)
treea3acb2aa10e458225e169d201ff8c6194d6e54f8
parent5f059c8751379edaabdffb68af7f27979c1c12f6 (diff)
Cleanup: ed_util_imbuf sections
-rw-r--r--source/blender/editors/util/ed_util_imbuf.c20
1 files changed, 19 insertions, 1 deletions
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;
}
+
+/** \} */