|
Blender
V2.59
|
#include <math.h>#include <stdlib.h>#include "BKE_image.h"#include "BLI_math_color.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 int | is_pow2 (int n) |
| static int | larger_pow2 (int n) |
| 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 165 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 164 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 76 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 364 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 38 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 182 of file image_gen.c.
References g, hsv_to_rgb(), larger_pow2(), 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 222 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 273 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 309 of file image_gen.c.
References BLF_buffer(), BLF_buffer_col(), BLF_draw_buffer(), blf_mono_font, BLF_position(), BLF_size(), mono, and NULL.
Referenced by BKE_image_buf_fill_checker_color().
| static int is_pow2 | ( | int | n | ) | [static] |
Definition at line 167 of file image_gen.c.
Referenced by larger_pow2().
| static int larger_pow2 | ( | int | n | ) | [static] |
Definition at line 171 of file image_gen.c.
References is_pow2().
Referenced by checker_board_color_fill().