Blender V5.3
rectop.cc File Reference
#include <algorithm>
#include <cstdlib>
#include "BLI_math_base_c.hh"
#include "BLI_math_color_blend.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_rect.hh"
#include "BLI_task.hh"
#include "BLI_utildefines.hh"
#include "IMB_imbuf.hh"
#include "IMB_imbuf_types.hh"
#include "IMB_colormanagement.hh"
#include "MEM_guardedalloc.h"
#include <cstring>

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Typedefs

using blender::IMB_blend_func = void (*)(uchar *dst, const uchar *src1, const uchar *src2)
using blender::IMB_blend_func_float = void (*)(float *dst, const float *src1, const float *src2)

Functions

void blender::IMB_blend_color_byte (unsigned char dst[4], const unsigned char src1[4], const unsigned char src2[4], IMB_BlendMode mode)
void blender::IMB_blend_color_float (float dst[4], const float src1[4], const float src2[4], IMB_BlendMode mode)
void blender::IMB_blend_color_float (MutableSpan< float4 > dst, Span< float4 > src1, Span< float4 > src2, IMB_BlendMode mode)
void blender::IMB_rectclip (ImBuf *dbuf, const ImBuf *sbuf, int *destx, int *desty, int *srcx, int *srcy, int *width, int *height)
static void blender::imb_rectclip3 (ImBuf *dbuf, const ImBuf *obuf, const ImBuf *sbuf, int *destx, int *desty, int *origx, int *origy, int *srcx, int *srcy, int *width, int *height)
void blender::IMB_rectblend (ImBuf *dbuf, uint8_t *dbuf_byte_data, float *dbuf_float_data, const ImBuf *obuf, const ImBuf *sbuf, unsigned short *dmask, const unsigned short *curvemask, const unsigned short *texmask, float mask_max, int destx, int desty, int origx, int origy, int srcx, int srcy, int width, int height, IMB_BlendMode mode, bool accumulate)
void blender::IMB_rectblend_threaded (ImBuf *dbuf, const ImBuf *obuf, const ImBuf *sbuf, unsigned short *dmask, const unsigned short *curvemask, const unsigned short *texmask, float mask_max, int destx, int desty, int origx, int origy, int srcx, int srcy, int width, int height, IMB_BlendMode mode, bool accumulate)
void blender::IMB_rectfill (ImBuf *drect, const float col[4])
void blender::IMB_rectfill_area (ImBuf *ibuf, const float scene_linear_color[4], int x1, int y1, int x2, int y2)
void blender::IMB_rectfill_alpha (ImBuf *ibuf, float value)
Crop
static void blender::copy_to_cropped_bufffer (void *dst_void, const int2 &dst_size, const void *src_void, const int2 &src_size, const int stride, const int2 &src_rect_pos, const int2 &dst_rect_pos, const int2 &rect_size)
static void * blender::create_cropped_buffer_impl (const void *src_void, const int2 &src_size, const int stride, const int2 &src_rect_pos, const int2 &rect_size)
static float * blender::create_cropped_buffer (const float *src, const int2 &src_size, const int channels, const int2 &src_rect_pos, const int2 &rect_size)
static uchar * blender::create_cropped_buffer (const uchar *src, const int2 &src_size, const int2 &src_rect_pos, const int2 &rect_size)
void blender::IMB_copy_rect (float *dst, const int2 &dst_size, const float *src, const int2 &src_size, int channels, const int2 &src_rect_pos, const int2 &dst_rect_pos, const int2 &rect_size)
void blender::IMB_copy_rect (uchar *dst, const int2 &dst_size, const uchar *src, const int2 &src_size, const int2 &src_rect_pos, const int2 &dst_rect_pos, const int2 &rect_size)
void blender::IMB_copy_rect (ImBuf *dst, const ImBuf *src, const int2 &src_rect_pos, const int2 &dst_rect_pos, const int2 &rect_size)
void blender::IMB_crop (ImBuf *ibuf, const int2 &rect_pos, const int2 &rect_size)
void blender::IMB_rect_size_set (ImBuf *ibuf, const uint size[2])