|
Blender
V2.59
|
#include <stddef.h>#include "IMB_imbuf.h"#include "IMB_imbuf_types.h"#include "IMB_allocimbuf.h"#include "IMB_filetype.h"#include "IMB_metadata.h"#include "imbuf.h"#include "MEM_CacheLimiterC-Api.h"#include "MEM_guardedalloc.h"Go to the source code of this file.
Definition in file allocimbuf.c.
| short addzbuffloatImBuf | ( | 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().
| static void freeencodedbufferImBuf | ( | ImBuf * | ibuf | ) | [static] |
Definition at line 120 of file allocimbuf.c.
References ImBuf::encodedbuffer, ImBuf::encodedbuffersize, ImBuf::encodedsize, IB_mem, ImBuf::mall, MEM_freeN(), and NULL.
Referenced by imb_addencodedbufferImBuf(), imb_enlargeencodedbufferImBuf(), IMB_freeImBuf(), and imbuf_cache_destructor().
| static MEM_CacheLimiterC** get_imbuf_cache_limiter | ( | void | ) | [static] |
Definition at line 453 of file allocimbuf.c.
References imbuf_cache_destructor(), new_MEM_CacheLimiter(), and NULL.
Referenced by IMB_cache_limiter_insert(), and IMB_free_cache_limiter().
| short imb_addencodedbufferImBuf | ( | ImBuf * | ibuf | ) |
Definition at line 217 of file allocimbuf.c.
References ImBuf::encodedbuffer, ImBuf::encodedbuffersize, ImBuf::encodedsize, FALSE, ImBuf::flags, freeencodedbufferImBuf(), IB_mem, ImBuf::mall, MEM_mallocN(), NULL, and TRUE.
Referenced by IMB_dupImBuf(), imb_save_openexr(), and imb_savepng().
| short imb_addrectfloatImBuf | ( | 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 | ( | 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 | ( | 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.
| 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().
| int IMB_cache_limiter_get_refcount | ( | 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 | ( | ImBuf * | i | ) |
Definition at line 495 of file allocimbuf.c.
References ImBuf::c_handle, and MEM_CacheLimiter_ref().
| void IMB_cache_limiter_touch | ( | ImBuf * | i | ) |
Definition at line 489 of file allocimbuf.c.
References ImBuf::c_handle, and MEM_CacheLimiter_touch().
| void IMB_cache_limiter_unmanage | ( | 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 | ( | ImBuf * | i | ) |
Definition at line 501 of file allocimbuf.c.
References ImBuf::c_handle, and MEM_CacheLimiter_unref().
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().
| short imb_enlargeencodedbufferImBuf | ( | ImBuf * | ibuf | ) |
Definition at line 238 of file allocimbuf.c.
References ImBuf::encodedbuffer, ImBuf::encodedbuffersize, ImBuf::encodedsize, FALSE, ImBuf::flags, freeencodedbufferImBuf(), IB_mem, ImBuf::mall, MEM_mallocN(), NULL, and TRUE.
Referenced by WriteData().
| 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 | ( | 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 | ( | 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 | ( | 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 | ( | 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 | ( | 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().
| 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().
| static void imbuf_cache_destructor | ( | void * | data | ) | [static] |
Definition at line 440 of file allocimbuf.c.
References ImBuf::c_handle, freeencodedbufferImBuf(), imb_freerectfloatImBuf(), imb_freerectImBuf(), IMB_freezbuffloatImBuf(), IMB_freezbufImBuf(), and NULL.
Referenced by get_imbuf_cache_limiter().