From 9e0b44aae941d0d175a072c12423b0db094c4c3e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 14 Apr 2020 10:44:46 +1000 Subject: Cleanup: ed_util_imbuf sections --- source/blender/editors/util/ed_util_imbuf.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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; } + +/** \} */ -- cgit v1.2.3