|
Blender
V2.93
|
#include <math.h>#include <stdlib.h>#include "BLI_math_base.h"#include "BLI_math_color.h"#include "BLI_math_vector.h"#include "BKE_image.h"#include "IMB_imbuf.h"#include "IMB_imbuf_types.h"#include "BLF_api.h"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 |
Typedefs | |
| typedef struct FillColorThreadData | FillColorThreadData |
| typedef struct FillCheckerThreadData | FillCheckerThreadData |
| typedef struct FillCheckerColorThreadData | FillCheckerColorThreadData |
Functions | |
| static void | image_buf_fill_color_slice (unsigned char *rect, float *rect_float, int width, int height, const float color[4]) |
| static void | image_buf_fill_color_thread_do (void *data_v, int start_scanline, int num_scanlines) |
| void | BKE_image_buf_fill_color (unsigned char *rect, float *rect_float, int width, int height, const float color[4]) |
| static void | image_buf_fill_checker_slice (unsigned char *rect, float *rect_float, int width, int height, int offset) |
| static void | image_buf_fill_checker_thread_do (void *data_v, int start_scanline, int num_scanlines) |
| void | BKE_image_buf_fill_checker (unsigned char *rect, float *rect_float, int width, int height) |
| static void | checker_board_color_fill (unsigned char *rect, float *rect_float, int width, int height, int offset, int total_height) |
| static void | checker_board_color_tint (unsigned char *rect, float *rect_float, int width, int height, int size, float blend, int offset) |
| static void | checker_board_grid_fill (unsigned char *rect, float *rect_float, int width, int height, float blend, int offset) |
| static void | checker_board_text (unsigned char *rect, float *rect_float, int width, int height, int step, int outline) |
| static void | checker_board_color_prepare_slice (unsigned char *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 start_scanline, int num_scanlines) |
| void | BKE_image_buf_fill_checker_color (unsigned char *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 226 of file image_gen.c.
Definition at line 225 of file image_gen.c.
| typedef struct FillCheckerColorThreadData FillCheckerColorThreadData |
| typedef struct FillCheckerThreadData FillCheckerThreadData |
| typedef struct FillColorThreadData FillColorThreadData |
| void BKE_image_buf_fill_checker | ( | unsigned char * | rect, |
| float * | rect_float, | ||
| int | width, | ||
| int | height | ||
| ) |
Definition at line 209 of file image_gen.c.
References data, height, image_buf_fill_checker_slice(), image_buf_fill_checker_thread_do(), IMB_processor_apply_threaded_scanlines(), and width.
Referenced by add_ibuf_size().
| void BKE_image_buf_fill_checker_color | ( | unsigned char * | rect, |
| float * | rect_float, | ||
| int | width, | ||
| int | height | ||
| ) |
Definition at line 459 of file image_gen.c.
References checker_board_color_prepare_slice(), checker_board_color_prepare_thread_do(), checker_board_text(), data, height, IB_PROFILE_LINEAR_RGB, IB_PROFILE_SRGB, IMB_buffer_float_from_float_threaded(), IMB_processor_apply_threaded_scanlines(), NULL, and width.
Referenced by add_ibuf_size().
| void BKE_image_buf_fill_color | ( | unsigned char * | rect, |
| float * | rect_float, | ||
| int | width, | ||
| int | height, | ||
| const float | color[4] | ||
| ) |
Definition at line 81 of file image_gen.c.
References copy_v4_v4(), data, height, image_buf_fill_color_slice(), image_buf_fill_color_thread_do(), IMB_processor_apply_threaded_scanlines(), and width.
Referenced by add_ibuf_size().
|
static |
Definition at line 229 of file image_gen.c.
References float(), height, hsv_to_rgb_v(), power_of_2_max_i(), width, x, and y.
Referenced by checker_board_color_prepare_slice().
|
static |
Definition at line 430 of file image_gen.c.
References checker_board_color_fill(), checker_board_color_tint(), checker_board_grid_fill(), height, and width.
Referenced by BKE_image_buf_fill_checker_color(), and checker_board_color_prepare_thread_do().
|
static |
Definition at line 447 of file image_gen.c.
References checker_board_color_prepare_slice(), data, and NULL.
Referenced by BKE_image_buf_fill_checker_color().
|
static |
Definition at line 271 of file image_gen.c.
References blend(), BLEND_CHAR, BLEND_FLOAT, height, size(), width, x, and y.
Referenced by checker_board_color_prepare_slice().
|
static |
Definition at line 325 of file image_gen.c.
References blend(), BLEND_CHAR, BLEND_FLOAT, height, width, x, and y.
Referenced by checker_board_color_prepare_slice().
|
static |
Definition at line 363 of file image_gen.c.
References ARRAY_SIZE, BLF_buffer(), BLF_buffer_col(), BLF_draw_buffer(), blf_mono_font_render, BLF_position(), BLF_size(), height, NULL, width, x, and y.
Referenced by BKE_image_buf_fill_checker_color().
|
static |
Definition at line 97 of file image_gen.c.
References abs(), fabsf, floorf, fmodf, height, hsv_to_rgb_v(), NULL, powf, srgb_to_linearrgb(), srgb_to_linearrgb_v3_v3(), width, x, and y.
Referenced by BKE_image_buf_fill_checker(), and image_buf_fill_checker_thread_do().
|
static |
Definition at line 200 of file image_gen.c.
References data, image_buf_fill_checker_slice(), and NULL.
Referenced by BKE_image_buf_fill_checker().
|
static |
Definition at line 42 of file image_gen.c.
References copy_v4_v4(), height, rgba_float_to_uchar(), width, x, and y.
Referenced by BKE_image_buf_fill_color(), and image_buf_fill_color_thread_do().
|
static |
Definition at line 72 of file image_gen.c.
References data, image_buf_fill_color_slice(), and NULL.
Referenced by BKE_image_buf_fill_color().