Blender  V3.3
Namespaces | Macros | Functions
COM_MemoryBuffer.cc File Reference
#include "COM_MemoryBuffer.h"
#include "COM_MemoryProxy.h"
#include "IMB_colormanagement.h"
#include "IMB_imbuf_types.h"

Go to the source code of this file.

Namespaces

 blender
 
 blender::compositor
 

Macros

#define ASSERT_BUFFER_CONTAINS_AREA(buf, area)    BLI_assert(BLI_rcti_inside_rcti(&(buf)->get_rect(), &(area)))
 
#define ASSERT_BUFFER_CONTAINS_AREA_AT_COORDS(buf, area, x, y)
 
#define ASSERT_VALID_ELEM_SIZE(buf, channel_offset, elem_size)    BLI_assert((buf)->get_num_channels() >= (channel_offset) + (elem_size))
 

Functions

static rcti blender::compositor::create_rect (const int width, const int height)
 
static void blender::compositor::colorspace_to_scene_linear (MemoryBuffer *buf, const rcti &area, ColorSpace *colorspace)
 
static void blender::compositor::read_ewa_elem (void *userdata, int x, int y, float result[4])
 
static void blender::compositor::read_ewa_pixel_sampled (void *userdata, int x, int y, float result[4])
 

Macro Definition Documentation

◆ ASSERT_BUFFER_CONTAINS_AREA

#define ASSERT_BUFFER_CONTAINS_AREA (   buf,
  area 
)     BLI_assert(BLI_rcti_inside_rcti(&(buf)->get_rect(), &(area)))

Definition at line 11 of file COM_MemoryBuffer.cc.

◆ ASSERT_BUFFER_CONTAINS_AREA_AT_COORDS

#define ASSERT_BUFFER_CONTAINS_AREA_AT_COORDS (   buf,
  area,
  x,
  y 
)
Value:
BLI_assert((buf)->get_rect().xmin <= (x)); \
BLI_assert((buf)->get_rect().ymin <= (y)); \
BLI_assert((buf)->get_rect().xmax >= (x) + BLI_rcti_size_x(&(area))); \
BLI_assert((buf)->get_rect().ymax >= (y) + BLI_rcti_size_y(&(area)))
#define BLI_assert(a)
Definition: BLI_assert.h:46
BLI_INLINE int BLI_rcti_size_y(const struct rcti *rct)
Definition: BLI_rect.h:190
BLI_INLINE int BLI_rcti_size_x(const struct rcti *rct)
Definition: BLI_rect.h:186
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
static void area(int d1, int d2, int e1, int e2, float weights[2])

Definition at line 14 of file COM_MemoryBuffer.cc.

◆ ASSERT_VALID_ELEM_SIZE

#define ASSERT_VALID_ELEM_SIZE (   buf,
  channel_offset,
  elem_size 
)     BLI_assert((buf)->get_num_channels() >= (channel_offset) + (elem_size))

Definition at line 20 of file COM_MemoryBuffer.cc.