|
Blender
V2.59
|
#include "BLI_blenlib.h"#include "BLI_rand.h"#include "BLI_math.h"#include "BLI_utildefines.h"#include "imbuf.h"#include "IMB_imbuf_types.h"#include "IMB_imbuf.h"#include "IMB_allocimbuf.h"#include "BKE_colortools.h"#include "MEM_guardedalloc.h"Go to the source code of this file.
Functions | |
| void | IMB_de_interlace (struct ImBuf *ibuf) |
| void | IMB_interlace (struct ImBuf *ibuf) |
| void | IMB_rect_from_float (struct ImBuf *ibuf) |
| void | IMB_partial_rect_from_float (struct ImBuf *ibuf, float *buffer, int x, int y, int w, int h) |
| static void | imb_float_from_rect_nonlinear (struct ImBuf *ibuf, float *fbuf) |
| static void | imb_float_from_rect_linear (struct ImBuf *ibuf, float *fbuf) |
| void | IMB_float_from_rect (struct ImBuf *ibuf) |
| void | IMB_float_from_rect_simple (struct ImBuf *ibuf) |
| void | IMB_convert_profile (struct ImBuf *ibuf, int profile) |
| float * | IMB_float_profile_ensure (struct ImBuf *ibuf, int profile, int *alloc) |
| void | IMB_color_to_bw (struct ImBuf *ibuf) |
Definition in file divers.c.
| void IMB_color_to_bw | ( | struct ImBuf * | ibuf | ) |
Definition at line 496 of file divers.c.
References i, ImBuf::rect, ImBuf::rect_float, rgb_to_grayscale(), rgb_to_grayscale_byte(), ImBuf::x, and ImBuf::y.
Referenced by do_write_image_or_movie(), screen_opengl_render_anim_step(), and screen_opengl_render_apply().
| void IMB_convert_profile | ( | struct ImBuf * | ibuf, |
| int | profile | ||
| ) |
Definition at line 391 of file divers.c.
References ELEM, FALSE, i, IB_PROFILE_LINEAR_RGB, IB_PROFILE_NONE, IB_PROFILE_SRGB, linearrgb_to_srgb(), ImBuf::profile, ImBuf::rect, ImBuf::rect_float, srgb_to_linearrgb(), TRUE, ImBuf::x, and ImBuf::y.
Referenced by seq_render_scene_strip_impl(), and seq_render_strip().
| void IMB_de_interlace | ( | struct ImBuf * | ibuf | ) |
Definition at line 51 of file divers.c.
References ImBuf::flags, IB_fields, IB_rect, IMB_allocImBuf(), IMB_freeImBuf(), IMB_rectcpy(), NULL, ImBuf::rect, ImBuf::x, and ImBuf::y.
Referenced by de_interlace(), and IMB_loadiffname().
| void IMB_float_from_rect | ( | struct ImBuf * | ibuf | ) |
Definition at line 364 of file divers.c.
References IB_PROFILE_NONE, imb_addrectfloatImBuf(), imb_float_from_rect_linear(), imb_float_from_rect_nonlinear(), NULL, ImBuf::profile, ImBuf::rect, and ImBuf::rect_float.
Referenced by colorfn(), curvemapping_do_ibuf(), do_write_image_or_movie(), envmap_split_ima(), imapaint_canvas_set(), IMB_float_profile_ensure(), load_frame_image_sequence(), node_composit_get_image(), and RE_layer_load_from_file().
| static void imb_float_from_rect_linear | ( | struct ImBuf * | ibuf, |
| float * | fbuf | ||
| ) | [static] |
Definition at line 347 of file divers.c.
References i, ImBuf::rect, srgb_to_linearrgb(), ImBuf::x, and ImBuf::y.
Referenced by IMB_float_from_rect(), and IMB_float_profile_ensure().
| static void imb_float_from_rect_nonlinear | ( | struct ImBuf * | ibuf, |
| float * | fbuf | ||
| ) | [static] |
Definition at line 329 of file divers.c.
References i, ImBuf::rect, ImBuf::x, and ImBuf::y.
Referenced by IMB_float_from_rect(), IMB_float_from_rect_simple(), and IMB_float_profile_ensure().
| void IMB_float_from_rect_simple | ( | struct ImBuf * | ibuf | ) |
Definition at line 384 of file divers.c.
References imb_addrectfloatImBuf(), imb_float_from_rect_nonlinear(), NULL, and ImBuf::rect_float.
Referenced by do_plugin_effect(), input_preprocess(), and prepare_effect_imbufs().
| float* IMB_float_profile_ensure | ( | struct ImBuf * | ibuf, |
| int | profile, | ||
| int * | alloc | ||
| ) |
Definition at line 451 of file divers.c.
References IB_PROFILE_NONE, IMB_float_from_rect(), imb_float_from_rect_linear(), imb_float_from_rect_nonlinear(), linearrgb_to_srgb_rgba_rgba_buf(), MEM_mallocN(), NULL, ImBuf::profile, ImBuf::rect_float, srgb_to_linearrgb_rgba_rgba_buf(), ImBuf::x, and ImBuf::y.
Referenced by imb_save_dpx_cineon().
| void IMB_interlace | ( | struct ImBuf * | ibuf | ) |
Definition at line 78 of file divers.c.
References ImBuf::flags, IB_fields, IB_rect, IMB_allocImBuf(), IMB_freeImBuf(), IMB_rectcpy(), NULL, ImBuf::rect, ImBuf::x, and ImBuf::y.
Referenced by interlace().
| void IMB_partial_rect_from_float | ( | struct ImBuf * | ibuf, |
| float * | buffer, | ||
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) |
Definition at line 203 of file divers.c.
References add_v4_fl(), BLI_frand(), ImBuf::channels, copy_v3_v3(), copy_v4_v4(), simple_enum_gen::d, ImBuf::dither, ELEM, F3TOCHAR4, F4TOCHAR4, FTOCHAR, i, IB_PROFILE_LINEAR_RGB, IB_PROFILE_NONE, IB_PROFILE_SRGB, IB_RECT_INVALID, imb_addrectImBuf(), linearrgb_to_srgb_v3_v3(), NULL, ImBuf::profile, ImBuf::rect, ImBuf::rect_float, ImBuf::userflags, simple_enum_gen::w, and ImBuf::x.
Referenced by GPU_paint_update_image().
| void IMB_rect_from_float | ( | struct ImBuf * | ibuf | ) |
Definition at line 107 of file divers.c.
References BLI_frand(), ImBuf::channels, simple_enum_gen::d, ImBuf::dither, ELEM, floatbuf_to_srgb_byte(), FTOCHAR, i, IB_PROFILE_LINEAR_RGB, IB_PROFILE_NONE, IB_PROFILE_SRGB, IB_RECT_INVALID, imb_addrectImBuf(), linearrgb_to_srgb(), NULL, ImBuf::profile, ImBuf::rect, ImBuf::rect_float, ImBuf::userflags, ImBuf::x, and ImBuf::y.
Referenced by curvemapping_do_ibuf(), do_plugin_effect(), draw_bgpic(), draw_empty_image(), draw_image_seq(), draw_nodespace_back_pix(), ED_view3d_draw_offscreen_imbuf(), GPU_paint_update_image(), GPU_verify_image(), icon_copy_rect(), image_invert_exec(), image_verify_buffer_float(), imapaint_canvas_set(), imb_load_dpx_cineon(), imb_loadiris(), IMB_saveiff(), IMB_thumb_create(), prepare_effect_imbufs(), RE_bake_shade_all_selected(), and sample_apply().