![]() |
Blender V2.61 - r43446
|
#include <math.h>#include <stdlib.h>#include "BKE_image.h"#include "BLI_math_color.h"#include "BLI_math_base.h"#include "BLF_api.h"Go to the source code of this file.
Defines | |
| #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 | |
| void | BKE_image_buf_fill_color (unsigned char *rect, float *rect_float, int width, int height, float color[4]) |
| 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) |
| static void | checker_board_color_tint (unsigned char *rect, float *rect_float, int width, int height, int size, float blend) |
| static void | checker_board_grid_fill (unsigned char *rect, float *rect_float, int width, int height, float blend) |
| static void | checker_board_text (unsigned char *rect, float *rect_float, int width, int height, int step, int outline) |
| void | BKE_image_buf_fill_checker_color (unsigned char *rect, float *rect_float, int width, int height) |
Definition in file image_gen.c.
| #define BLEND_CHAR | ( | real, | |
| add | |||
| ) | ((real + (char)(add * 255.0f)) <= 255) ? (real + (char)(add * 255.0f)) : 255 |
Definition at line 163 of file image_gen.c.
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 162 of file image_gen.c.
Referenced by checker_board_color_tint(), and checker_board_grid_fill().
| void BKE_image_buf_fill_checker | ( | unsigned char * | rect, |
| float * | rect_float, | ||
| int | width, | ||
| int | height | ||
| ) |
Definition at line 74 of file image_gen.c.
References fabs(), floorf, fmodf, g, hsv_to_rgb(), and powf.
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 347 of file image_gen.c.
References checker_board_color_fill(), checker_board_color_tint(), checker_board_grid_fill(), and checker_board_text().
Referenced by add_ibuf_size().
| void BKE_image_buf_fill_color | ( | unsigned char * | rect, |
| float * | rect_float, | ||
| int | width, | ||
| int | height, | ||
| float | color[4] | ||
| ) |
Definition at line 36 of file image_gen.c.
Referenced by add_ibuf_size().
| static void checker_board_color_fill | ( | unsigned char * | rect, |
| float * | rect_float, | ||
| int | width, | ||
| int | height | ||
| ) | [static] |
Definition at line 165 of file image_gen.c.
References g, hsv_to_rgb(), power_of_2_max_i(), and simple_enum_gen::val.
Referenced by BKE_image_buf_fill_checker_color().
| static void checker_board_color_tint | ( | unsigned char * | rect, |
| float * | rect_float, | ||
| int | width, | ||
| int | height, | ||
| int | size, | ||
| float | blend | ||
| ) | [static] |
Definition at line 205 of file image_gen.c.
References BLEND_CHAR, and BLEND_FLOAT.
Referenced by BKE_image_buf_fill_checker_color().
| static void checker_board_grid_fill | ( | unsigned char * | rect, |
| float * | rect_float, | ||
| int | width, | ||
| int | height, | ||
| float | blend | ||
| ) | [static] |
Definition at line 256 of file image_gen.c.
References BLEND_CHAR, and BLEND_FLOAT.
Referenced by BKE_image_buf_fill_checker_color().
| static void checker_board_text | ( | unsigned char * | rect, |
| float * | rect_float, | ||
| int | width, | ||
| int | height, | ||
| int | step, | ||
| int | outline | ||
| ) | [static] |
Definition at line 292 of file image_gen.c.
References BLF_buffer(), BLF_buffer_col(), BLF_draw_buffer(), blf_mono_font, BLF_position(), BLF_size(), mono, NULL, and step().
Referenced by BKE_image_buf_fill_checker_color().