Blender V5.3
image_gen.cc File Reference
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include "BLI_math_base_c.hh"
#include "BLI_math_color_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_task.hh"
#include "BKE_image.hh"
#include "IMB_colormanagement.hh"
#include "IMB_imbuf.hh"
#include "IMB_imbuf_types.hh"
#include "BLF_api.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define BLEND_FLOAT(real, add)
#define BLEND_CHAR(real, add)

Functions

void blender::BKE_image_buf_fill_color (unsigned char *rect, float *rect_float, int width, int height, const float color[4])
static void blender::image_buf_fill_checker_slice (uchar *rect, float *rect_float, int width, int height, int offset)
void blender::BKE_image_buf_fill_checker (unsigned char *rect, float *rect_float, int width, int height)
static void blender::checker_board_color_fill (uchar *rect, float *rect_float, int width, int height, int offset, int total_height)
static void blender::checker_board_color_tint (uchar *rect, float *rect_float, int width, int height, int size, float blend, int offset)
static void blender::checker_board_grid_fill (uchar *rect, float *rect_float, int width, int height, float blend, int offset)
static void blender::checker_board_text (uchar *rect, float *rect_float, int width, int height, int step, int outline)
static void blender::checker_board_color_prepare_slice (uchar *rect, float *rect_float, int width, int height, int offset, int total_height)
void blender::BKE_image_buf_fill_checker_color (unsigned char *rect, float *rect_float, int width, int height)

Macro Definition Documentation

◆ BLEND_CHAR

#define BLEND_CHAR ( real,
add )
Value:
((real + char(add * 255.0f)) <= 255) ? (real + char(add * 255.0f)) : 255

Definition at line 165 of file image_gen.cc.

Referenced by blender::checker_board_color_tint(), and blender::checker_board_grid_fill().

◆ BLEND_FLOAT

#define BLEND_FLOAT ( real,
add )
Value:
(real + add <= 1.0f) ? (real + add) : 1.0f

Definition at line 164 of file image_gen.cc.

Referenced by blender::checker_board_color_tint(), and blender::checker_board_grid_fill().