|
Blender
V2.59
|
IMage Buffer module. More...
Go to the source code of this file.
Defines | |
| #define | FILTER_MASK_NULL 0 |
| #define | FILTER_MASK_MARGIN 1 |
| #define | FILTER_MASK_USED 2 |
Typedefs | |
| typedef enum IMB_BlendMode | IMB_BlendMode |
Enumerations | |
| enum | IMB_BlendMode { IMB_BLEND_MIX = 0, IMB_BLEND_ADD = 1, IMB_BLEND_SUB = 2, IMB_BLEND_MUL = 3, IMB_BLEND_LIGHTEN = 4, IMB_BLEND_DARKEN = 5, IMB_BLEND_ERASE_ALPHA = 6, IMB_BLEND_ADD_ALPHA = 7, IMB_BLEND_COPY = 1000, IMB_BLEND_COPY_RGB = 1001, IMB_BLEND_COPY_ALPHA = 1002 } |
Functions | |
| void | IMB_init (void) |
| void | IMB_exit (void) |
| struct ImBuf * | IMB_ibImageFromMemory (unsigned char *mem, size_t size, int flags) |
| struct ImBuf * | IMB_testiffname (char *naam, int flags) |
| struct ImBuf * | IMB_loadiffname (const char *naam, int flags) |
| void | IMB_freeImBuf (struct ImBuf *ibuf) |
| struct ImBuf * | IMB_allocImBuf (unsigned int x, unsigned int y, unsigned char d, unsigned int flags) |
| void | IMB_refImBuf (struct ImBuf *ibuf) |
| void | IMB_cache_limiter_insert (struct ImBuf *i) |
| void | IMB_cache_limiter_unmanage (struct ImBuf *i) |
| void | IMB_cache_limiter_touch (struct ImBuf *i) |
| void | IMB_cache_limiter_ref (struct ImBuf *i) |
| void | IMB_cache_limiter_unref (struct ImBuf *i) |
| int | IMB_cache_limiter_get_refcount (struct ImBuf *i) |
| void | IMB_free_cache_limiter (void) |
| struct ImBuf * | IMB_dupImBuf (struct ImBuf *ibuf1) |
| short | addzbufImBuf (struct ImBuf *ibuf) |
| short | addzbuffloatImBuf (struct ImBuf *ibuf) |
| unsigned int | IMB_blend_color (unsigned int src1, unsigned int src2, int fac, IMB_BlendMode mode) |
| void | IMB_blend_color_float (float *dst, float *src1, float *src2, float fac, IMB_BlendMode mode) |
| void | IMB_rectclip (struct ImBuf *dbuf, struct ImBuf *sbuf, int *destx, int *desty, int *srcx, int *srcy, int *width, int *height) |
| void | IMB_rectcpy (struct ImBuf *drect, struct ImBuf *srect, int destx, int desty, int srcx, int srcy, int width, int height) |
| void | IMB_rectblend (struct ImBuf *dbuf, struct ImBuf *sbuf, int destx, int desty, int srcx, int srcy, int width, int height, IMB_BlendMode mode) |
| int | IMB_anim_get_duration (struct anim *anim) |
| struct anim * | IMB_open_anim (const char *name, int ib_flags) |
| void | IMB_close_anim (struct anim *anim) |
| int | ismovie (const char *name) |
| void | IMB_anim_set_preseek (struct anim *anim, int preseek) |
| int | IMB_anim_get_preseek (struct anim *anim) |
| struct ImBuf * | IMB_anim_absolute (struct anim *anim, int position) |
| struct ImBuf * | IMB_anim_previewframe (struct anim *anim) |
| void | IMB_free_anim_ibuf (struct anim *anim) |
| void | IMB_free_anim (struct anim *anim) |
| void | IMB_filter (struct ImBuf *ibuf) |
| void | IMB_filterN (struct ImBuf *out, struct ImBuf *in) |
| void | IMB_mask_filter_extend (char *mask, int width, int height) |
| void | IMB_mask_clear (struct ImBuf *ibuf, char *mask, int val) |
| void | IMB_filter_extend (struct ImBuf *ibuf, char *mask, int filter) |
| void | IMB_makemipmap (struct ImBuf *ibuf, int use_filter) |
| void | IMB_remakemipmap (struct ImBuf *ibuf, int use_filter) |
| struct ImBuf * | IMB_getmipmap (struct ImBuf *ibuf, int level) |
| void | IMB_tile_cache_params (int totthread, int maxmem) |
| unsigned int * | IMB_gettile (struct ImBuf *ibuf, int tx, int ty, int thread) |
| void | IMB_tiles_to_rect (struct ImBuf *ibuf) |
| void | IMB_filtery (struct ImBuf *ibuf) |
| struct ImBuf * | IMB_onehalf (struct ImBuf *ibuf1) |
| struct ImBuf * | IMB_scaleImBuf (struct ImBuf *ibuf, unsigned int newx, unsigned int newy) |
| struct ImBuf * | IMB_scalefastImBuf (struct ImBuf *ibuf, unsigned int newx, unsigned int newy) |
| short | IMB_saveiff (struct ImBuf *ibuf, const char *filepath, int flags) |
| short | IMB_png_encode (struct ImBuf *ibuf, int file, int flags) |
| int | IMB_ispic (const char *name) |
| int | IMB_isanim (const char *name) |
| int | imb_get_anim_type (const char *name) |
| 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) |
| 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) |
| void | IMB_convert_rgba_to_abgr (struct ImBuf *ibuf) |
| void | IMB_convert_bgra_to_rgba (int size, unsigned int *rect) |
| void | bicubic_interpolation (struct ImBuf *in, struct ImBuf *out, float u, float v, int xout, int yout) |
| void | neareast_interpolation (struct ImBuf *in, struct ImBuf *out, float u, float v, int xout, int yout) |
| void | bilinear_interpolation (struct ImBuf *in, struct ImBuf *out, float u, float v, int xout, int yout) |
| void | bicubic_interpolation_color (struct ImBuf *in, unsigned char *col, float *col_float, float u, float v) |
| void | neareast_interpolation_color (struct ImBuf *in, unsigned char *col, float *col_float, float u, float v) |
| void | bilinear_interpolation_color (struct ImBuf *in, unsigned char *col, float *col_float, float u, float v) |
| void | bilinear_interpolation_color_wrap (struct ImBuf *in, unsigned char *col, float *col_float, float u, float v) |
| struct ImBuf * | IMB_loadiffmem (int *mem, int flags) |
| struct ImBuf * | IMB_loadifffile (int file, int flags) |
| struct ImBuf * | IMB_half_x (struct ImBuf *ibuf1) |
| struct ImBuf * | IMB_double_fast_x (struct ImBuf *ibuf1) |
| struct ImBuf * | IMB_double_x (struct ImBuf *ibuf1) |
| struct ImBuf * | IMB_half_y (struct ImBuf *ibuf1) |
| struct ImBuf * | IMB_double_fast_y (struct ImBuf *ibuf1) |
| struct ImBuf * | IMB_double_y (struct ImBuf *ibuf1) |
| void | IMB_flipx (struct ImBuf *ibuf) |
| void | IMB_flipy (struct ImBuf *ibuf) |
| void | IMB_premultiply_alpha (struct ImBuf *ibuf) |
| void | IMB_freezbufImBuf (struct ImBuf *ibuf) |
| void | IMB_freezbuffloatImBuf (struct ImBuf *ibuf) |
| void | IMB_rectfill (struct ImBuf *drect, const float col[4]) |
| void | IMB_rectfill_area (struct ImBuf *ibuf, float *col, int x1, int y1, int x2, int y2) |
| void | IMB_rectfill_alpha (struct ImBuf *ibuf, const float value) |
| void | buf_rectfill_area (unsigned char *rect, float *rectf, int width, int height, float *col, int x1, int y1, int x2, int y2) |
| int | IMB_metadata_change_field (struct ImBuf *img, const char *key, const char *field) |
| short | imb_addrectImBuf (struct ImBuf *ibuf) |
| void | imb_freerectImBuf (struct ImBuf *ibuf) |
| short | imb_addrectfloatImBuf (struct ImBuf *ibuf) |
| void | imb_freerectfloatImBuf (struct ImBuf *ibuf) |
| void | imb_freemipmapImBuf (struct ImBuf *ibuf) |
| short | imb_addtilesImBuf (struct ImBuf *ibuf) |
| void | imb_freetilesImBuf (struct ImBuf *ibuf) |
IMage Buffer module.
This module offers import/export of several graphical file formats.
Definition in file IMB_imbuf.h.
| #define FILTER_MASK_MARGIN 1 |
Definition at line 248 of file IMB_imbuf.h.
Referenced by IMB_filter_extend(), and IMB_mask_filter_extend().
| #define FILTER_MASK_NULL 0 |
Definition at line 247 of file IMB_imbuf.h.
| #define FILTER_MASK_USED 2 |
Definition at line 249 of file IMB_imbuf.h.
Referenced by apply_heights_data(), bake_displacement(), bake_shade(), and set_rast_triangle().
| typedef enum IMB_BlendMode IMB_BlendMode |
| enum IMB_BlendMode |
| IMB_BLEND_MIX | |
| IMB_BLEND_ADD | |
| IMB_BLEND_SUB | |
| IMB_BLEND_MUL | |
| IMB_BLEND_LIGHTEN | |
| IMB_BLEND_DARKEN | |
| IMB_BLEND_ERASE_ALPHA | |
| IMB_BLEND_ADD_ALPHA | |
| IMB_BLEND_COPY | |
| IMB_BLEND_COPY_RGB | |
| IMB_BLEND_COPY_ALPHA |
Definition at line 168 of file IMB_imbuf.h.
| short addzbuffloatImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 198 of file allocimbuf.c.
References FALSE, ImBuf::flags, IB_zbuffloat, IMB_freezbuffloatImBuf(), ImBuf::mall, MEM_mapallocN(), NULL, size(), TRUE, ImBuf::x, ImBuf::y, and ImBuf::zbuf_float.
Referenced by IMB_allocImBuf(), imb_load_openexr(), and seq_render_scene_strip_impl().
| short addzbufImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 180 of file allocimbuf.c.
References FALSE, ImBuf::flags, IB_zbuf, IMB_freezbufImBuf(), ImBuf::mall, MEM_mapallocN(), NULL, size(), TRUE, ImBuf::x, ImBuf::y, and ImBuf::zbuf.
Referenced by imb_addrectImBuf(), and IMB_allocImBuf().
| void bicubic_interpolation | ( | struct ImBuf * | in, |
| struct ImBuf * | out, | ||
| float | u, | ||
| float | v, | ||
| int | xout, | ||
| int | yout | ||
| ) |
Definition at line 228 of file imageprocess.c.
References bicubic_interpolation_color(), NULL, pixel_from_buffer(), ImBuf::rect, and ImBuf::rect_float.
Referenced by node_composit_exec_rotate(), and transform_image().
| void bicubic_interpolation_color | ( | struct ImBuf * | in, |
| unsigned char * | col, | ||
| float * | col_float, | ||
| float | u, | ||
| float | v | ||
| ) |
Definition at line 131 of file imageprocess.c.
References i, P(), ImBuf::rect, ImBuf::rect_float, simple_enum_gen::w, and ImBuf::x.
Referenced by bicubic_interpolation(), and do_projectpaint_thread().
| void bilinear_interpolation | ( | struct ImBuf * | in, |
| struct ImBuf * | out, | ||
| float | u, | ||
| float | v, | ||
| int | xout, | ||
| int | yout | ||
| ) |
Definition at line 380 of file imageprocess.c.
References bilinear_interpolation_color(), NULL, pixel_from_buffer(), ImBuf::rect, and ImBuf::rect_float.
Referenced by node_composit_exec_rotate(), and transform_image().
| void bilinear_interpolation_color | ( | struct ImBuf * | in, |
| unsigned char * | col, | ||
| float * | col_float, | ||
| float | u, | ||
| float | v | ||
| ) |
Definition at line 243 of file imageprocess.c.
References floorf, if(), ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by bilinear_interpolation().
| void bilinear_interpolation_color_wrap | ( | struct ImBuf * | in, |
| unsigned char * | col, | ||
| float * | col_float, | ||
| float | u, | ||
| float | v | ||
| ) |
Definition at line 319 of file imageprocess.c.
References floorf, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by project_face_pixel(), and project_paint_PickColor().
| void buf_rectfill_area | ( | unsigned char * | rect, |
| float * | rectf, | ||
| int | width, | ||
| int | height, | ||
| float * | col, | ||
| int | x1, | ||
| int | y1, | ||
| int | x2, | ||
| int | y2 | ||
| ) |
| short imb_addrectfloatImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 275 of file allocimbuf.c.
References ImBuf::channels, FALSE, ImBuf::flags, IB_rectfloat, imb_freerectfloatImBuf(), ImBuf::mall, MEM_mapallocN(), NULL, ImBuf::rect_float, size(), TRUE, ImBuf::x, and ImBuf::y.
Referenced by color_balance_byte_float(), IMB_allocImBuf(), IMB_float_from_rect(), IMB_float_from_rect_simple(), imb_load_openexr(), node_composit_exec_splitviewer(), and node_composit_exec_viewer().
| short imb_addrectImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 298 of file allocimbuf.c.
References addzbufImBuf(), ImBuf::depth, FALSE, ImBuf::flags, IB_rect, ImBuf::mall, MEM_freeN(), MEM_mapallocN(), NULL, ImBuf::rect, size(), TRUE, ImBuf::x, and ImBuf::y.
Referenced by curvemapping_do_ibuf(), do_plugin_effect(), image_buffer_rect_update(), IMB_allocImBuf(), imb_cocoaLoadImage(), imb_load_dds(), imb_loadpng(), imb_onehalf_no_alloc(), IMB_partial_rect_from_float(), and IMB_rect_from_float().
| short imb_addtilesImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 322 of file allocimbuf.c.
References FALSE, IB_tiles, ImBuf::mall, MEM_callocN(), NULL, ImBuf::tiles, ImBuf::xtiles, and ImBuf::ytiles.
| struct ImBuf* IMB_allocImBuf | ( | unsigned int | x, |
| unsigned int | y, | ||
| unsigned char | d, | ||
| unsigned int | flags | ||
| ) | [read] |
Definition at line 333 of file allocimbuf.c.
References addzbuffloatImBuf(), addzbufImBuf(), ImBuf::channels, simple_enum_gen::d, ImBuf::depth, FALSE, ImBuf::ftype, IB_rect, IB_rectfloat, IB_zbuf, IB_zbuffloat, imb_addrectfloatImBuf(), imb_addrectImBuf(), IMB_freeImBuf(), MEM_callocN(), NULL, ImBuf::ppm, TGA, ImBuf::x, and ImBuf::y.
Referenced by add_ibuf_size(), allocImBuf(), anim_getnew(), avi_fetchibuf(), BKE_image_acquire_ibuf(), BL_MakeScreenShot(), brush_imbuf_new(), brush_painter_fixed_tex_partial_update(), de_interlace_ng(), de_interlace_st(), do_displace(), do_mapuv(), do_paintface_box_select(), do_write_image_or_movie(), ED_view3d_draw_offscreen_imbuf(), envmap_split_ima(), filelist_from_library(), filelist_init_icons(), GHOST_SystemCocoa::handleDraggingEvent(), ibJpegImageFromCinfo(), icon_draw_rect(), image_get_ibuf_multilayer(), image_get_render_result(), image_load_sequence_multilayer(), image_undo_push_tile(), image_undo_restore(), imapaint_lift_clone(), imb_bmp_decode(), imb_cocoaLoadImage(), IMB_de_interlace(), IMB_double_fast_x(), IMB_double_fast_y(), IMB_dupImBuf(), IMB_half_x(), IMB_half_y(), IMB_interlace(), imb_load_dds(), imb_load_dpx_cineon(), imb_load_openexr(), imb_loadiris(), imb_loadpng(), imb_loadtarga(), IMB_makemipmap(), IMB_onehalf(), IMB_remakemipmap(), IMB_thumb_create(), input_preprocess(), loadblend_thumb(), make_histogram_view_from_ibuf_byte(), make_histogram_view_from_ibuf_float(), make_sep_waveform_view_from_ibuf_byte(), make_sep_waveform_view_from_ibuf_float(), make_vectorscope_view_from_ibuf_byte(), make_vectorscope_view_from_ibuf_float(), make_waveform_view_from_ibuf_byte(), make_waveform_view_from_ibuf_float(), make_zebra_view_from_ibuf(), my_envmap_split_ima(), node_composit_exec_output_file(), node_composit_exec_rotate(), node_composit_exec_scale(), ImageBuff::plot(), prepare_effect_imbufs(), RE_layer_load_from_file(), render_envmap(), save_envmap(), save_jstjpeg(), screen_opengl_render_anim_step(), screenshot_exec(), screenshot_startjob(), seq_render_effect_strip_impl(), seq_render_scene_strip_impl(), seq_render_strip(), seq_render_strip_stack(), and view3d_read_backbuf().
Definition at line 1075 of file anim_movie.c.
References an_stringdec(), an_stringenc(), ANIM_AVI, ANIM_FFMPEG, anim_getnew(), ANIM_MOVIE, ANIM_QTIME, ANIM_REDCODE, ANIM_SEQUENCE, avi_fetchibuf(), anim::curposition, anim::curtype, anim::duration, anim::first, IB_animdeinterlace, anim::ib_flags, IB_PROFILE_SRGB, IB_rect, IMB_convert_rgba_to_abgr(), IMB_filtery(), IMB_freeImBuf(), IMB_loadiffname(), movie_fetchibuf(), ImBuf::name, anim::name, NULL, ImBuf::profile, and qtime_fetchibuf().
Referenced by image_load_movie_file(), IMB_anim_previewframe(), IMB_thumb_create(), openanim(), seq_proxy_fetch(), and seq_render_strip().
| int IMB_anim_get_duration | ( | struct anim * | anim | ) |
Return the length (in frames) of the given anim.
Definition at line 1154 of file anim_movie.c.
References anim::duration.
Referenced by image_info(), image_load_movie_file(), reload_sequence_new_file(), sequencer_add_movie_strip(), and set_frames_cb().
| int IMB_anim_get_preseek | ( | struct anim * | anim | ) |
Definition at line 1163 of file anim_movie.c.
References anim::preseek.
Referenced by reload_sequence_new_file(), and sequencer_add_movie_strip().
Definition at line 1062 of file anim_movie.c.
References anim::duration, IMB_anim_absolute(), IMB_freeImBuf(), and NULL.
Referenced by IMB_thumb_create().
| void IMB_anim_set_preseek | ( | struct anim * | anim, |
| int | preseek | ||
| ) |
Definition at line 1158 of file anim_movie.c.
References anim::preseek.
Referenced by seq_render_strip().
| unsigned int IMB_blend_color | ( | unsigned int | src1, |
| unsigned int | src2, | ||
| int | fac, | ||
| IMB_BlendMode | mode | ||
| ) |
Definition at line 121 of file rectop.c.
References blend_color_add(), blend_color_darken(), blend_color_lighten(), blend_color_mix(), blend_color_mul(), blend_color_sub(), IMB_BLEND_ADD, IMB_BLEND_DARKEN, IMB_BLEND_ERASE_ALPHA, IMB_BLEND_LIGHTEN, IMB_BLEND_MIX, IMB_BLEND_MUL, and IMB_BLEND_SUB.
Referenced by do_projectpaint_clone(), do_projectpaint_draw(), and IMB_rectblend().
| void IMB_blend_color_float | ( | float * | dst, |
| float * | src1, | ||
| float * | src2, | ||
| float | fac, | ||
| IMB_BlendMode | mode | ||
| ) |
Definition at line 230 of file rectop.c.
References blend_color_add_float(), blend_color_darken_float(), blend_color_lighten_float(), blend_color_mix_float(), blend_color_mul_float(), blend_color_sub_float(), IMB_BLEND_ADD, IMB_BLEND_DARKEN, IMB_BLEND_ERASE_ALPHA, IMB_BLEND_LIGHTEN, IMB_BLEND_MIX, IMB_BLEND_MUL, and IMB_BLEND_SUB.
Referenced by do_projectpaint_clone_f(), do_projectpaint_draw_f(), and IMB_rectblend().
| int IMB_cache_limiter_get_refcount | ( | struct ImBuf * | i | ) |
Definition at line 507 of file allocimbuf.c.
References ImBuf::c_handle, and MEM_CacheLimiter_get_refcount().
| void IMB_cache_limiter_insert | ( | struct ImBuf * | i | ) |
Definition at line 469 of file allocimbuf.c.
References ImBuf::c_handle, get_imbuf_cache_limiter(), MEM_CacheLimiter_enforce_limits(), MEM_CacheLimiter_insert(), MEM_CacheLimiter_ref(), and MEM_CacheLimiter_unref().
| void IMB_cache_limiter_ref | ( | struct ImBuf * | i | ) |
Definition at line 495 of file allocimbuf.c.
References ImBuf::c_handle, and MEM_CacheLimiter_ref().
| void IMB_cache_limiter_touch | ( | struct ImBuf * | i | ) |
Definition at line 489 of file allocimbuf.c.
References ImBuf::c_handle, and MEM_CacheLimiter_touch().
| void IMB_cache_limiter_unmanage | ( | struct ImBuf * | i | ) |
Definition at line 481 of file allocimbuf.c.
References ImBuf::c_handle, MEM_CacheLimiter_unmanage(), and NULL.
Referenced by IMB_freeImBuf().
| void IMB_cache_limiter_unref | ( | struct ImBuf * | i | ) |
Definition at line 501 of file allocimbuf.c.
References ImBuf::c_handle, and MEM_CacheLimiter_unref().
| void IMB_close_anim | ( | struct anim * | anim | ) |
Definition at line 346 of file anim_movie.c.
References IMB_free_anim(), and NULL.
| 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_bgra_to_rgba | ( | int | size, |
| unsigned int * | rect | ||
| ) |
Change the ordering of the color bytes pointed to by rect from rgba to abgr. size * 4 color bytes are reordered.
| 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_convert_rgba_to_abgr | ( | struct ImBuf * | ibuf | ) |
Change the ordering of the color bytes pointed to by rect from rgba to abgr. size * 4 color bytes are reordered.
Definition at line 56 of file imageprocess.c.
References if(), ImBuf::rect, ImBuf::rect_float, size(), ImBuf::x, and ImBuf::y.
Referenced by do_paintface_box_select(), do_plugin_effect(), IMB_anim_absolute(), imb_cocoaLoadImage(), imb_loadiris(), imb_loadtarga(), imb_saveiris(), and view3d_read_backbuf().
| 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().
Definition at line 121 of file scaling.c.
References ImBuf::depth, ImBuf::flags, i, IMB_allocImBuf(), NULL, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by double_fast_x(), and IMB_double_x().
Definition at line 246 of file scaling.c.
References ImBuf::depth, ImBuf::flags, IMB_allocImBuf(), NULL, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by double_fast_y(), and IMB_double_y().
Definition at line 160 of file scaling.c.
References IMB_double_fast_x(), imb_filterx(), NULL, ImBuf::rect, and ImBuf::rect_float.
Referenced by double_x().
Definition at line 284 of file scaling.c.
References IMB_double_fast_y(), IMB_filtery(), NULL, and ImBuf::rect.
Referenced by double_y().
Definition at line 379 of file allocimbuf.c.
References ImBuf::c_handle, ImBuf::channels, ImBuf::depth, ImBuf::encodedbuffer, ImBuf::encodedbuffersize, ImBuf::encodedsize, FALSE, ImBuf::flags, IB_fields, IB_MIPMAP_LEVELS, IB_rect, IB_rectfloat, imb_addencodedbufferImBuf(), IMB_allocImBuf(), IMB_freeImBuf(), ImBuf::mall, ImBuf::metadata, ImBuf::mipmap, NULL, ImBuf::rect, ImBuf::rect_float, ImBuf::refcounter, ImBuf::x, ImBuf::y, ImBuf::zbuf, and ImBuf::zbuf_float.
Referenced by copy_brush(), copy_from_ibuf_still(), copy_to_ibuf_still(), curvemapping_do_ibuf(), do_adjustment(), do_multicam(), do_plugin_effect(), do_write_image_or_movie(), dupImBuf(), envmap_split_ima(), icon_copy_rect(), IMB_half_x(), IMB_half_y(), screen_opengl_render_anim_step(), seq_render_effect_strip_impl(), and seq_render_strip().
| void IMB_exit | ( | void | ) |
Definition at line 40 of file module.c.
References imb_filetypes_exit(), IMB_free_cache_limiter(), and imb_tile_cache_exit().
Referenced by free_blender(), and main().
| void IMB_filter | ( | struct ImBuf * | ibuf | ) |
Definition at line 259 of file filter.c.
References imb_filterx(), and IMB_filtery().
| void IMB_filter_extend | ( | struct ImBuf * | ibuf, |
| char * | mask, | ||
| int | filter | ||
| ) |
Definition at line 358 of file filter.c.
References check_pixel_assigned(), filter(), filter_make_index(), FILTER_MASK_MARGIN, i, MEM_dupallocN(), MEM_freeN(), NULL, ImBuf::rect, ImBuf::rect_float, sqrt(), ImBuf::x, and ImBuf::y.
Referenced by RE_bake_ibuf_filter().
Definition at line 211 of file filter.c.
References ImBuf::rect, ImBuf::x, and ImBuf::y.
Referenced by IMB_makemipmap(), and IMB_remakemipmap().
| void IMB_filtery | ( | struct ImBuf * | ibuf | ) |
Definition at line 136 of file filter.c.
References ImBuf::depth, filtcolum(), filtcolumf(), ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by avi_fetchibuf(), IMB_anim_absolute(), IMB_double_y(), IMB_filter(), and input_preprocess().
| void IMB_flipx | ( | struct ImBuf * | ibuf | ) |
Definition at line 102 of file rotate.c.
References NULL, ImBuf::rect, ImBuf::rect_float, SWAP, ImBuf::x, and ImBuf::y.
Referenced by input_preprocess().
| void IMB_flipy | ( | struct ImBuf * | ibuf | ) |
Definition at line 49 of file rotate.c.
References MEM_freeN(), MEM_mallocN(), NULL, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by imb_load_dds(), imb_loadtarga(), and input_preprocess().
| 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().
| 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_free_anim | ( | struct anim * | anim | ) |
Definition at line 323 of file anim_movie.c.
References free_anim_avi(), free_anim_movie(), free_anim_quicktime(), IMB_free_anim_ibuf(), MEM_freeN(), and NULL.
Referenced by free_anim_seq(), free_proxy_seq(), image_free_buffers(), IMB_close_anim(), IMB_thumb_create(), openanim(), reload_sequence_new_file(), seq_free_sequence(), and seq_free_strip().
| void IMB_free_anim_ibuf | ( | struct anim * | anim | ) |
Definition at line 307 of file anim_movie.c.
References anim::ibuf1, anim::ibuf2, IMB_freeImBuf(), and NULL.
Referenced by IMB_free_anim().
| void IMB_free_cache_limiter | ( | void | ) |
Definition at line 463 of file allocimbuf.c.
References delete_MEM_CacheLimiter(), get_imbuf_cache_limiter(), and NULL.
Referenced by IMB_exit().
| void IMB_freeImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 155 of file allocimbuf.c.
References freeencodedbufferImBuf(), IMB_cache_limiter_unmanage(), imb_freerectfloatImBuf(), imb_freerectImBuf(), imb_freetilesImBuf(), IMB_freezbuffloatImBuf(), IMB_freezbufImBuf(), IMB_metadata_free(), MEM_freeN(), and ImBuf::refcounter.
Referenced by avi_fetchibuf(), BKE_free_envmapdata(), BKE_image_free_anim_ibufs(), BL_MakeScreenShot(), brush_painter_fixed_tex_partial_update(), brush_painter_free(), brush_painter_refresh_cache(), brush_painter_require_imbuf(), ImageBuff::clear(), copy_from_ibuf_still(), copy_to_ibuf_still(), curvemapping_do_ibuf(), de_interlace_ng(), de_interlace_st(), do_adjustment(), do_displace(), do_mapuv(), do_multicam(), do_paintface_box_select(), do_plugin_effect(), do_render_seq(), do_write_image_or_movie(), draw_image_seq(), EM_init_backbuf_border(), EM_init_backbuf_circle(), EM_mask_init_backbuf_border(), filelist_free(), filelist_free_icons(), filelist_init_icons(), free_brush(), freeImBuf(), HashValFree(), icon_copy_rect(), icon_draw_rect(), image_free_buffers(), image_load_image_file(), image_load_sequence_file(), image_remove_ibuf(), image_undo_restore(), imapaint_dirty_region(), imapaint_paint_op(), IMB_allocImBuf(), IMB_anim_absolute(), IMB_anim_previewframe(), IMB_de_interlace(), IMB_dupImBuf(), IMB_free_anim_ibuf(), imb_freemipmapImBuf(), IMB_interlace(), imb_load_openexr(), imb_loadpng(), IMB_makemipmap(), IMB_remakemipmap(), IMB_seq_cache_destructor(), IMB_thumb_create(), IMB_thumb_manage(), init_iconfile_list(), init_internal_icons(), input_preprocess(), ImageBuff::load(), loadblend_thumb(), my_free_envmapdata(), node_composit_exec_output_file(), node_composit_exec_rotate(), node_composit_exec_scale(), openanim(), ImageBuff::plot(), project_paint_end(), RE_layer_load_from_file(), sample_backbuf_area(), save_envmap(), save_jstjpeg(), screen_opengl_render_anim_step(), screen_opengl_render_apply(), screenshot_exec(), screenshot_startjob(), seq_render_effect_strip_impl(), seq_render_strip(), seq_render_strip_stack(), thumbnail_joblist_free(), ui_draw_but_IMAGE(), view3d_read_backbuf(), view3d_sample_backbuf_rect(), WM_write_file(), GHOST_EventDragnDrop::~GHOST_EventDragnDrop(), and ImageBuff::~ImageBuff().
| void imb_freemipmapImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 54 of file allocimbuf.c.
References IMB_freeImBuf(), ImBuf::mipmap, ImBuf::miptot, and NULL.
Referenced by finish_bake_internal(), finish_images(), imb_freerectfloatImBuf(), imb_freerectImBuf(), and IMB_makemipmap().
| void imb_freerectfloatImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 68 of file allocimbuf.c.
References IB_rectfloat, imb_freemipmapImBuf(), ImBuf::mall, MEM_freeN(), NULL, and ImBuf::rect_float.
Referenced by do_plugin_effect(), imapaint_canvas_free(), imb_addrectfloatImBuf(), IMB_freeImBuf(), IMB_scalefastImBuf(), IMB_thumb_create(), imbuf_cache_destructor(), node_composit_exec_splitviewer(), node_composit_exec_viewer(), q_scale_linear_interpolation(), record_composite_apply(), save_image_doit(), scaledownx(), scaledowny(), scaleupx(), and scaleupy().
| void imb_freerectImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 84 of file allocimbuf.c.
References IB_rect, imb_freemipmapImBuf(), ImBuf::mall, MEM_freeN(), NULL, and ImBuf::rect.
Referenced by get_next_bake_face(), image_get_render_result(), IMB_freeImBuf(), IMB_scalefastImBuf(), imbuf_cache_destructor(), input_preprocess(), node_composit_exec_splitviewer(), node_composit_exec_viewer(), q_scale_linear_interpolation(), save_image_doit(), scaledownx(), scaledowny(), scaleupx(), scaleupy(), and seq_render_strip().
| void imb_freetilesImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 97 of file allocimbuf.c.
References IB_tiles, imb_tile_cache_tile_free(), ImBuf::mall, MEM_freeN(), NULL, ImBuf::tiles, ImBuf::xtiles, and ImBuf::ytiles.
Referenced by IMB_freeImBuf().
| void IMB_freezbuffloatImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 144 of file allocimbuf.c.
References IB_zbuffloat, ImBuf::mall, MEM_freeN(), NULL, and ImBuf::zbuf_float.
Referenced by addzbuffloatImBuf(), IMB_freeImBuf(), imbuf_cache_destructor(), node_composit_exec_splitviewer(), node_composit_exec_viewer(), and save_image_doit().
| void IMB_freezbufImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 133 of file allocimbuf.c.
References IB_zbuf, ImBuf::mall, MEM_freeN(), NULL, and ImBuf::zbuf.
Referenced by addzbufImBuf(), IMB_freeImBuf(), imbuf_cache_destructor(), save_image_doit(), and scalefast_Z_ImBuf().
| int imb_get_anim_type | ( | const char * | name | ) |
Definition at line 327 of file source/blender/imbuf/intern/util.c.
References ANIM_AVI, ANIM_FFMPEG, ANIM_MOVIE, ANIM_QTIME, ANIM_REDCODE, ANIM_SEQUENCE, IMB_ispic(), isavi(), ismovie(), and UTIL_DEBUG.
Referenced by anim_getnew(), and IMB_isanim().
Definition at line 522 of file filter.c.
References CLAMP(), ImBuf::mipmap, and ImBuf::miptot.
Referenced by IMB_tiles_to_rect().
| unsigned int* IMB_gettile | ( | struct ImBuf * | ibuf, |
| int | tx, | ||
| int | ty, | ||
| int | thread | ||
| ) |
Definition at line 405 of file cache.c.
References imb_thread_cache_get_tile(), and ImGlobalTileCache::thread_cache.
Definition at line 55 of file scaling.c.
References ImBuf::depth, ImBuf::flags, g, IMB_allocImBuf(), IMB_dupImBuf(), NULL, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by half_x(), and IMB_onehalf().
Definition at line 174 of file scaling.c.
References ImBuf::depth, ImBuf::flags, g, IMB_allocImBuf(), IMB_dupImBuf(), NULL, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by half_y(), and IMB_onehalf().
| struct ImBuf* IMB_ibImageFromMemory | ( | unsigned char * | mem, |
| size_t | size, | ||
| int | flags | ||
| ) | [read] |
Definition at line 54 of file readimage.c.
References ImBuf::flags, IB_premul, IMB_FILE_TYPES, IMB_premultiply_alpha(), ImFileType::is_a, ImFileType::load, and NULL.
Referenced by avi_fetchibuf(), filelist_init_icons(), image_load_image_file(), IMB_loadifffile(), init_internal_icons(), and ui_draw_but_IMAGE().
| void IMB_init | ( | void | ) |
Definition at line 34 of file module.c.
References imb_filetypes_init(), and imb_tile_cache_init().
Referenced by main().
| 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().
| int IMB_isanim | ( | const char * | name | ) |
Definition at line 368 of file source/blender/imbuf/intern/util.c.
References ANIM_SEQUENCE, BLI_testextensie(), FALSE, G, Global::have_quicktime, imb_get_anim_type(), and USER_FILTERFILEEXTS.
| int IMB_ispic | ( | const char * | name | ) |
Definition at line 185 of file source/blender/imbuf/intern/util.c.
References BLI_testextensie_array(), FALSE, G, Global::have_quicktime, imb_ext_image, imb_ext_image_qt, IMB_ispic_name(), and USER_FILTERFILEEXTS.
Referenced by imb_get_anim_type(), and ispic().
| struct ImBuf* IMB_loadifffile | ( | int | file, |
| int | flags | ||
| ) | [read] |
Only here for backwards compatibility of the
plugin system.
Definition at line 83 of file readimage.c.
References BLI_filesize(), IMB_ibImageFromMemory(), MAP_SHARED, mmap(), munmap(), NULL, PROT_READ, and size().
Referenced by IMB_loadiffname(), IMB_testiffname(), and loadifffile().
| struct ImBuf* IMB_loadiffmem | ( | int * | mem, |
| int | flags | ||
| ) | [read] |
Only here for backwards compatibility of the
plugin system.
| struct ImBuf* IMB_loadiffname | ( | const char * | naam, |
| int | flags | ||
| ) | [read] |
Definition at line 122 of file readimage.c.
References BLI_strncpy(), ImBuf::cachename, IB_fields, IB_FILENAME_SIZE, imb_cache_filename(), IMB_de_interlace(), IMB_loadifffile(), ImBuf::mipmap, ImBuf::miptot, ImBuf::name, NULL, and O_BINARY.
Referenced by anim_getnew(), get_brush_icon(), image_load_image_file(), image_load_sequence_file(), IMB_anim_absolute(), IMB_thumb_create(), IMB_thumb_manage(), IMB_thumb_read(), init_iconfile_list(), init_internal_icons(), loadiffname(), RE_layer_load_from_file(), seq_proxy_fetch(), and seq_render_strip().
| void IMB_makemipmap | ( | struct ImBuf * | ibuf, |
| int | use_filter | ||
| ) |
Definition at line 492 of file filter.c.
References IB_MIPMAP_LEVELS, IB_rect, IMB_allocImBuf(), IMB_filterN(), IMB_freeImBuf(), imb_freemipmapImBuf(), IMB_onehalf(), ImBuf::miplevel, ImBuf::mipmap, ImBuf::miptot, ImBuf::x, and ImBuf::y.
Referenced by draw_bgpic(), and image_mipmap_test().
| void IMB_mask_clear | ( | struct ImBuf * | ibuf, |
| char * | mask, | ||
| int | val | ||
| ) |
Definition at line 304 of file filter.c.
References ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
| void IMB_mask_filter_extend | ( | char * | mask, |
| int | width, | ||
| int | height | ||
| ) |
Definition at line 265 of file filter.c.
References FILTER_MASK_MARGIN, MEM_dupallocN(), and MEM_freeN().
| int IMB_metadata_change_field | ( | struct ImBuf * | img, |
| const char * | key, | ||
| const char * | field | ||
| ) |
Definition at line 142 of file metadata.c.
References BLI_strdup(), IMB_metadata_add_field(), ImMetaData::key, MEM_freeN(), ImBuf::metadata, ImMetaData::next, p, and ImMetaData::value.
Referenced by BKE_stamp_info(), and IMB_thumb_create().
Definition at line 348 of file scaling.c.
References ImBuf::depth, ImBuf::flags, IMB_allocImBuf(), IMB_half_x(), IMB_half_y(), imb_onehalf_no_alloc(), NULL, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by IMB_makemipmap(), and onehalf().
| struct anim* IMB_open_anim | ( | const char * | name, |
| int | ib_flags | ||
| ) | [read] |
Definition at line 353 of file anim_movie.c.
References anim::ib_flags, MEM_callocN(), anim::name, and NULL.
Referenced by IMB_thumb_create(), and openanim().
| 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().
| short IMB_png_encode | ( | struct ImBuf * | ibuf, |
| int | file, | ||
| int | flags | ||
| ) |
Encodes a png image from an ImBuf
| void IMB_premultiply_alpha | ( | struct ImBuf * | ibuf | ) |
Definition at line 580 of file filter.c.
References ImBuf::depth, IMB_premultiply_rect(), IMB_premultiply_rect_float(), NULL, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by IMB_ibImageFromMemory(), and input_preprocess().
| 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().
| void IMB_rectblend | ( | struct ImBuf * | dbuf, |
| struct ImBuf * | sbuf, | ||
| int | destx, | ||
| int | desty, | ||
| int | srcx, | ||
| int | srcy, | ||
| int | width, | ||
| int | height, | ||
| IMB_BlendMode | mode | ||
| ) |
Definition at line 326 of file rectop.c.
References ImBuf::channels, IMB_blend_color(), IMB_blend_color_float(), IMB_BLEND_COPY, IMB_BLEND_COPY_ALPHA, IMB_BLEND_COPY_RGB, IMB_rectclip(), NULL, ImBuf::rect, ImBuf::rect_float, and ImBuf::x.
Referenced by imapaint_lift_clone(), imapaint_lift_smear(), imapaint_paint_op(), IMB_rectcpy(), and ImageBuff::plot().
| void IMB_rectclip | ( | struct ImBuf * | dbuf, |
| struct ImBuf * | sbuf, | ||
| int * | destx, | ||
| int * | desty, | ||
| int * | srcx, | ||
| int * | srcy, | ||
| int * | width, | ||
| int * | height | ||
| ) |
Definition at line 271 of file rectop.c.
References NULL, ImBuf::x, and ImBuf::y.
Referenced by brush_painter_fixed_tex_partial_update(), imapaint_dirty_region(), imapaint_lift_clone(), imapaint_lift_soften(), imapaint_torus_split_region(), and IMB_rectblend().
| void IMB_rectcpy | ( | struct ImBuf * | drect, |
| struct ImBuf * | srect, | ||
| int | destx, | ||
| int | desty, | ||
| int | srcx, | ||
| int | srcy, | ||
| int | width, | ||
| int | height | ||
| ) |
Definition at line 319 of file rectop.c.
References IMB_BLEND_COPY, and IMB_rectblend().
| void IMB_rectfill | ( | struct ImBuf * | drect, |
| const float | col[4] | ||
| ) |
Definition at line 453 of file rectop.c.
References ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
| void IMB_rectfill_alpha | ( | struct ImBuf * | ibuf, |
| const float | value | ||
| ) |
Definition at line 566 of file rectop.c.
References i, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
| void IMB_rectfill_area | ( | struct ImBuf * | ibuf, |
| float * | col, | ||
| int | x1, | ||
| int | y1, | ||
| int | x2, | ||
| int | y2 | ||
| ) |
Definition at line 559 of file rectop.c.
References buf_rectfill_area(), ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
| void IMB_refImBuf | ( | struct ImBuf * | ibuf | ) |
Increase reference count to imbuf (to delete an imbuf you have to call freeImBuf as many times as it is referenced)
Definition at line 175 of file allocimbuf.c.
References ImBuf::refcounter.
Referenced by seq_render_effect_strip_impl(), seq_stripelem_cache_get(), and seq_stripelem_cache_put().
| void IMB_remakemipmap | ( | struct ImBuf * | ibuf, |
| int | use_filter | ||
| ) |
Definition at line 458 of file filter.c.
References IB_MIPMAP_LEVELS, IB_rect, IMB_allocImBuf(), IMB_filterN(), IMB_freeImBuf(), imb_onehalf_no_alloc(), ImBuf::miplevel, ImBuf::mipmap, ImBuf::miptot, ImBuf::x, and ImBuf::y.
Referenced by draw_bgpic(), and image_mipmap_test().
| short IMB_saveiff | ( | struct ImBuf * | ibuf, |
| const char * | filepath, | ||
| int | flags | ||
| ) |
Definition at line 45 of file writeimage.c.
References FALSE, ImFileType::flag, ImBuf::flags, ImFileType::ftype, IM_FTYPE_FLOAT, IMB_FILE_TYPES, IMB_rect_from_float(), ImFileType::is_a, NULL, ImBuf::rect, ImBuf::rect_float, and ImFileType::save.
Referenced by BKE_image_memorypack(), BKE_write_ibuf(), BL_MakeScreenShot(), IMB_thumb_create(), save_sequence_exec(), and saveiff().
| struct ImBuf* IMB_scalefastImBuf | ( | struct ImBuf * | ibuf, |
| unsigned int | newx, | ||
| unsigned int | newy | ||
| ) | [read] |
Definition at line 1499 of file scaling.c.
References IB_rect, IB_rectfloat, imb_freerectfloatImBuf(), imb_freerectImBuf(), ImBuf::mall, MEM_freeN(), MEM_mallocN(), NULL, ImBuf::rect, ImBuf::rect_float, scalefast_Z_ImBuf(), ImBuf::x, and ImBuf::y.
Referenced by icon_copy_rect(), input_preprocess(), and scalefastImBuf().
Definition at line 1470 of file scaling.c.
References NULL, q_scale_linear_interpolation(), ImBuf::rect, ImBuf::rect_float, scaledownx(), scaledowny(), scalefast_Z_ImBuf(), scaleupx(), scaleupy(), ImBuf::x, and ImBuf::y.
Referenced by blend_file_thumb(), icon_draw_rect(), IMB_thumb_create(), input_preprocess(), node_composit_exec_scale(), and scaleImBuf().
| struct ImBuf* IMB_testiffname | ( | char * | naam, |
| int | flags | ||
| ) | [read] |
Definition at line 148 of file readimage.c.
References BLI_strncpy(), ImBuf::cachename, IB_FILENAME_SIZE, IB_multilayer, IB_test, imb_cache_filename(), IMB_loadifffile(), ImBuf::name, NULL, and O_BINARY.
Referenced by testiffname().
| void IMB_tile_cache_params | ( | int | totthread, |
| int | maxmem | ||
| ) |
Definition at line 243 of file cache.c.
References BLI_ghash_new(), BLI_memarena_new(), BLI_MEMARENA_STD_BUFSIZE, BLI_memarena_use_calloc(), BLI_mutex_init(), imb_global_tile_cmp(), imb_global_tile_hash(), imb_thread_cache_init(), imb_tile_cache_exit(), ImGlobalTileCache::maxmem, ImGlobalTileCache::memarena, ImGlobalTileCache::mutex, ImGlobalTileCache::thread_cache, ImGlobalTileCache::tilehash, and ImGlobalTileCache::totthread.
Referenced by imb_tile_cache_init().
| void IMB_tiles_to_rect | ( | struct ImBuf * | ibuf | ) |
Definition at line 410 of file cache.c.
References BLI_mutex_lock(), BLI_mutex_unlock(), ImBuf::flags, IB_rect, IMB_getmipmap(), imb_global_cache_get_tile(), ImBuf::mall, MEM_mapallocN(), ImBuf::miptot, ImGlobalTileCache::mutex, NULL, ImBuf::rect, ImGlobalTile::refcount, ImBuf::tiles, ImBuf::tilex, ImBuf::tiley, simple_enum_gen::w, ImBuf::x, ImBuf::xtiles, ImBuf::y, and ImBuf::ytiles.
| int ismovie | ( | const char * | name | ) |
Referenced by imb_get_anim_type().
| void neareast_interpolation | ( | struct ImBuf * | in, |
| struct ImBuf * | out, | ||
| float | u, | ||
| float | v, | ||
| int | xout, | ||
| int | yout | ||
| ) |
Definition at line 441 of file imageprocess.c.
References neareast_interpolation_color(), NULL, pixel_from_buffer(), ImBuf::rect, and ImBuf::rect_float.
Referenced by node_composit_exec_rotate(), and transform_image().
| void neareast_interpolation_color | ( | struct ImBuf * | in, |
| unsigned char * | col, | ||
| float * | col_float, | ||
| float | u, | ||
| float | v | ||
| ) |
Definition at line 395 of file imageprocess.c.
References if(), ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by neareast_interpolation().