|
Blender V4.3
|
#include <cmath>#include <cstdlib>#include "BLI_math_base.h"#include "BLI_math_color.h"#include "BLI_math_vector.h"#include "BKE_image.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "BLF_api.hh"Go to the source code of this file.
Classes | |
| struct | FillColorThreadData |
| struct | FillCheckerThreadData |
| struct | FillCheckerColorThreadData |
Macros | |
| #define | BLEND_FLOAT(real, add) (real + add <= 1.0f) ? (real + add) : 1.0f |
| #define | BLEND_CHAR(real, add) ((real + char(add * 255.0f)) <= 255) ? (real + char(add * 255.0f)) : 255 |
Functions | |
| static void | image_buf_fill_color_slice (uchar *rect, float *rect_float, int width, int height, const float color[4]) |
| static void | image_buf_fill_color_thread_do (void *data_v, int scanline) |
| void | BKE_image_buf_fill_color (uchar *rect, 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) |
| static void | image_buf_fill_checker_thread_do (void *data_v, int scanline) |
| 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) |
| static void | checker_board_color_prepare_thread_do (void *data_v, int scanline) |
| void | BKE_image_buf_fill_checker_color (uchar *rect, float *rect_float, int width, int height) |
| #define BLEND_CHAR | ( | real, | |
| add ) ((real + char(add * 255.0f)) <= 255) ? (real + char(add * 255.0f)) : 255 |
Definition at line 217 of file image_gen.cc.
Referenced by checker_board_color_tint(), and checker_board_grid_fill().
| #define BLEND_FLOAT | ( | real, | |
| add ) (real + add <= 1.0f) ? (real + add) : 1.0f |
Definition at line 216 of file image_gen.cc.
Referenced by checker_board_color_tint(), and checker_board_grid_fill().
Definition at line 200 of file image_gen.cc.
References data, image_buf_fill_checker_slice(), image_buf_fill_checker_thread_do(), IMB_processor_apply_threaded_scanlines(), and FillCheckerThreadData::rect.
Referenced by image_buf_fill_isolated().
Definition at line 447 of file image_gen.cc.
References checker_board_color_prepare_slice(), checker_board_color_prepare_thread_do(), checker_board_text(), data, IB_PROFILE_LINEAR_RGB, IB_PROFILE_SRGB, IMB_buffer_float_from_float_threaded(), IMB_processor_apply_threaded_scanlines(), and FillCheckerColorThreadData::rect.
Referenced by image_buf_fill_isolated().
| void BKE_image_buf_fill_color | ( | uchar * | rect, |
| float * | rect_float, | ||
| int | width, | ||
| int | height, | ||
| const float | color[4] ) |
Definition at line 70 of file image_gen.cc.
References copy_v4_v4(), data, image_buf_fill_color_slice(), image_buf_fill_color_thread_do(), IMB_processor_apply_threaded_scanlines(), and FillColorThreadData::rect.
Referenced by image_buf_fill_isolated().
|
static |
Definition at line 220 of file image_gen.cc.
References float, hsv_to_rgb_v(), power_of_2_max_i(), x, and y.
Referenced by checker_board_color_prepare_slice().
|
static |
Definition at line 419 of file image_gen.cc.
References checker_board_color_fill(), checker_board_color_tint(), and checker_board_grid_fill().
Referenced by BKE_image_buf_fill_checker_color(), and checker_board_color_prepare_thread_do().
|
static |
Definition at line 436 of file image_gen.cc.
References checker_board_color_prepare_slice().
Referenced by BKE_image_buf_fill_checker_color().
|
static |
Definition at line 262 of file image_gen.cc.
References blend, BLEND_CHAR, BLEND_FLOAT, x, and y.
Referenced by checker_board_color_prepare_slice().
|
static |
Definition at line 312 of file image_gen.cc.
References blend, BLEND_CHAR, BLEND_FLOAT, x, and y.
Referenced by checker_board_color_prepare_slice().
|
static |
Definition at line 350 of file image_gen.cc.
References BLF_buffer(), BLF_buffer_col(), BLF_draw_buffer(), blf_mono_font_render, BLF_position(), BLF_size(), x, and y.
Referenced by BKE_image_buf_fill_checker_color().
|
static |
Definition at line 86 of file image_gen.cc.
References abs(), fabsf, floorf, fmodf, hsv_to_rgb_v(), powf, srgb_to_linearrgb(), srgb_to_linearrgb_v3_v3(), x, and y.
Referenced by BKE_image_buf_fill_checker(), and image_buf_fill_checker_thread_do().
|
static |
Definition at line 190 of file image_gen.cc.
References image_buf_fill_checker_slice(), and FillCheckerThreadData::width.
Referenced by BKE_image_buf_fill_checker().
|
static |
Definition at line 30 of file image_gen.cc.
References copy_v4_v4(), rgba_float_to_uchar(), x, and y.
Referenced by BKE_image_buf_fill_color(), and image_buf_fill_color_thread_do().
|
static |
Definition at line 60 of file image_gen.cc.
References image_buf_fill_color_slice(), and FillColorThreadData::width.
Referenced by BKE_image_buf_fill_color().