Cleanup: ed_util_imbuf sections
This commit is contained in:
parent
5f059c8751
commit
9e0b44aae9
@ -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;
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
Loading…
Reference in New Issue
Block a user