Blender V5.0
image_gen.cc File Reference
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include "BLI_math_base.h"
#include "BLI_math_color.h"
#include "BLI_math_vector.h"
#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.

Macros

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

Functions

void BKE_image_buf_fill_color (uchar *rect_byte, float *rect_float, int width, int height, const float color[4])
static void image_buf_fill_checker_slice (uchar *rect, float *rect_float, int width, int height, int offset)
void BKE_image_buf_fill_checker (uchar *rect, float *rect_float, int width, int height)
static void checker_board_color_fill (uchar *rect, float *rect_float, int width, int height, int offset, int total_height)
static void checker_board_color_tint (uchar *rect, float *rect_float, int width, int height, int size, float blend, int offset)
static void checker_board_grid_fill (uchar *rect, float *rect_float, int width, int height, float blend, int offset)
static void checker_board_text (uchar *rect, float *rect_float, int width, int height, int step, int outline)
static void checker_board_color_prepare_slice (uchar *rect, float *rect_float, int width, int height, int offset, int total_height)
void BKE_image_buf_fill_checker_color (uchar *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
static void add(blender::Map< std::string, std::string > &messages, Message &msg)
Definition msgfmt.cc:222

Definition at line 165 of file image_gen.cc.

Referenced by checker_board_color_tint(), and 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 checker_board_color_tint(), and checker_board_grid_fill().

Function Documentation

◆ BKE_image_buf_fill_checker()

void BKE_image_buf_fill_checker ( uchar * rect,
float * rect_float,
int width,
int height )

◆ BKE_image_buf_fill_checker_color()

◆ BKE_image_buf_fill_color()

void BKE_image_buf_fill_color ( uchar * rect_byte,
float * rect_float,
int width,
int height,
const float color[4] )

◆ checker_board_color_fill()

void checker_board_color_fill ( uchar * rect,
float * rect_float,
int width,
int height,
int offset,
int total_height )
static

◆ checker_board_color_prepare_slice()

void checker_board_color_prepare_slice ( uchar * rect,
float * rect_float,
int width,
int height,
int offset,
int total_height )
static

◆ checker_board_color_tint()

void checker_board_color_tint ( uchar * rect,
float * rect_float,
int width,
int height,
int size,
float blend,
int offset )
static

Definition at line 206 of file image_gen.cc.

References blend(), BLEND_CHAR, BLEND_FLOAT, size(), x, and y.

Referenced by checker_board_color_prepare_slice().

◆ checker_board_grid_fill()

void checker_board_grid_fill ( uchar * rect,
float * rect_float,
int width,
int height,
float blend,
int offset )
static

Definition at line 256 of file image_gen.cc.

References blend(), BLEND_CHAR, BLEND_FLOAT, x, and y.

Referenced by checker_board_color_prepare_slice().

◆ checker_board_text()

void checker_board_text ( uchar * rect,
float * rect_float,
int width,
int height,
int step,
int outline )
static

◆ image_buf_fill_checker_slice()

void image_buf_fill_checker_slice ( uchar * rect,
float * rect_float,
int width,
int height,
int offset )
static