Blender  V2.59
Defines | Typedefs | Enumerations | Functions
IMB_imbuf.h File Reference

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 ImBufIMB_ibImageFromMemory (unsigned char *mem, size_t size, int flags)
struct ImBufIMB_testiffname (char *naam, int flags)
struct ImBufIMB_loadiffname (const char *naam, int flags)
void IMB_freeImBuf (struct ImBuf *ibuf)
struct ImBufIMB_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 ImBufIMB_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 animIMB_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 ImBufIMB_anim_absolute (struct anim *anim, int position)
struct ImBufIMB_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 ImBufIMB_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 ImBufIMB_onehalf (struct ImBuf *ibuf1)
struct ImBufIMB_scaleImBuf (struct ImBuf *ibuf, unsigned int newx, unsigned int newy)
struct ImBufIMB_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 ImBufIMB_loadiffmem (int *mem, int flags)
struct ImBufIMB_loadifffile (int file, int flags)
struct ImBufIMB_half_x (struct ImBuf *ibuf1)
struct ImBufIMB_double_fast_x (struct ImBuf *ibuf1)
struct ImBufIMB_double_x (struct ImBuf *ibuf1)
struct ImBufIMB_half_y (struct ImBuf *ibuf1)
struct ImBufIMB_double_fast_y (struct ImBuf *ibuf1)
struct ImBufIMB_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)

Detailed Description

IMage Buffer module.

This module offers import/export of several graphical file formats.

Definition in file IMB_imbuf.h.


Define Documentation

#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
Attention:
Defined in filter.c

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 Documentation

Attention:
Defined in rectop.c

Enumeration Type Documentation

Attention:
Defined in rectop.c
Enumerator:
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.


Function Documentation

short addzbuffloatImBuf ( struct ImBuf ibuf)
short addzbufImBuf ( struct ImBuf ibuf)
Attention:
Defined in allocimbuf.c

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 
)
void bicubic_interpolation_color ( struct ImBuf in,
unsigned char *  col,
float *  col_float,
float  u,
float  v 
)
void bilinear_interpolation ( struct ImBuf in,
struct ImBuf out,
float  u,
float  v,
int  xout,
int  yout 
)
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 
)

Definition at line 485 of file rectop.c.

References CLAMP(), fb(), FTOCHAR, i, and SWAP.

short imb_addrectfloatImBuf ( struct ImBuf ibuf)
short imb_addrectImBuf ( struct ImBuf ibuf)
short imb_addtilesImBuf ( struct ImBuf ibuf)
struct ImBuf* IMB_allocImBuf ( unsigned int  x,
unsigned int  y,
unsigned char  d,
unsigned int  flags 
) [read]
Attention:
Defined in allocimbuf.c

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().

struct ImBuf* IMB_anim_absolute ( struct anim anim,
int  position 
) [read]
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().

struct ImBuf* IMB_anim_previewframe ( struct anim anim) [read]
Attention:
Defined in anim.c fetches a define previewframe, usually half way into the movie

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 
)
void IMB_blend_color_float ( float *  dst,
float *  src1,
float *  src2,
float  fac,
IMB_BlendMode  mode 
)
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)
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)
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.

Attention:
Defined in imageprocess.c
void IMB_convert_profile ( struct ImBuf ibuf,
int  profile 
)
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.

Attention:
Defined in imageprocess.c

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)
Attention:
Defined in divers.c

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().

struct ImBuf* IMB_double_fast_x ( struct ImBuf ibuf1) [read]
Attention:
defined in scaling.c

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().

struct ImBuf* IMB_double_fast_y ( struct ImBuf ibuf1) [read]
Attention:
defined in scaling.c

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().

struct ImBuf* IMB_double_x ( struct ImBuf ibuf1) [read]
Attention:
defined in scaling.c

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().

struct ImBuf* IMB_double_y ( struct ImBuf ibuf1) [read]
Attention:
defined in scaling.c

Definition at line 284 of file scaling.c.

References IMB_double_fast_y(), IMB_filtery(), NULL, and ImBuf::rect.

Referenced by double_y().

struct ImBuf* IMB_dupImBuf ( struct ImBuf ibuf1) [read]
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 
)
void IMB_filterN ( struct ImBuf out,
struct ImBuf in 
)

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)
void IMB_flipx ( struct ImBuf ibuf)
Attention:
Defined in rotate.c

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)
void IMB_float_from_rect ( struct ImBuf ibuf)
void IMB_float_from_rect_simple ( struct ImBuf ibuf)
float* IMB_float_profile_ensure ( struct ImBuf ibuf,
int  profile,
int *  alloc 
)
void IMB_free_anim ( struct anim anim)
void IMB_free_anim_ibuf ( struct anim anim)
Attention:
Defined in anim.c

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)
Attention:
Defined in allocimbuf.c

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)
void imb_freerectfloatImBuf ( struct ImBuf ibuf)
void imb_freerectImBuf ( struct ImBuf ibuf)
void imb_freetilesImBuf ( struct ImBuf ibuf)
void IMB_freezbuffloatImBuf ( struct ImBuf ibuf)
void IMB_freezbufImBuf ( struct ImBuf ibuf)
int imb_get_anim_type ( const char *  name)
Attention:
Defined in util.c

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().

struct ImBuf* IMB_getmipmap ( struct ImBuf ibuf,
int  level 
) [read]

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.

struct ImBuf* IMB_half_x ( struct ImBuf ibuf1) [read]
Attention:
defined in scaling.c

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().

struct ImBuf* IMB_half_y ( struct ImBuf ibuf1) [read]
Attention:
defined in scaling.c

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]
void IMB_init ( void  )
Attention:
Defined in allocimbuf.c

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)
int IMB_isanim ( const char *  name)
int IMB_ispic ( const char *  name)
struct ImBuf* IMB_loadifffile ( int  file,
int  flags 
) [read]
Attention:
defined in readimage.c
Deprecated:

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]
Attention:
defined in readimage.c
Deprecated:

Only here for backwards compatibility of the

plugin system.

struct ImBuf* IMB_loadiffname ( const char *  naam,
int  flags 
) [read]
void IMB_makemipmap ( struct ImBuf ibuf,
int  use_filter 
)
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 
)
struct ImBuf* IMB_onehalf ( struct ImBuf ibuf1) [read]
struct anim* IMB_open_anim ( const char *  name,
int  ib_flags 
) [read]
Attention:
Defined in anim.c

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 
)
short IMB_png_encode ( struct ImBuf ibuf,
int  file,
int  flags 
)

Encodes a png image from an ImBuf

Attention:
Defined in png_encode.c
void IMB_premultiply_alpha ( struct ImBuf ibuf)
void IMB_rect_from_float ( struct ImBuf ibuf)
void IMB_rectblend ( struct ImBuf dbuf,
struct ImBuf sbuf,
int  destx,
int  desty,
int  srcx,
int  srcy,
int  width,
int  height,
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 
)

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] 
)
Attention:
Defined in rectop.c

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)

Attention:
Defined in allocimbuf.c

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 
)
short IMB_saveiff ( struct ImBuf ibuf,
const char *  filepath,
int  flags 
)
struct ImBuf* IMB_scalefastImBuf ( struct ImBuf ibuf,
unsigned int  newx,
unsigned int  newy 
) [read]
struct ImBuf* IMB_scaleImBuf ( struct ImBuf ibuf,
unsigned int  newx,
unsigned int  newy 
) [read]
struct ImBuf* IMB_testiffname ( char *  naam,
int  flags 
) [read]
void IMB_tile_cache_params ( int  totthread,
int  maxmem 
)
void IMB_tiles_to_rect ( struct ImBuf ibuf)
int ismovie ( const char *  name)
Attention:
Defined in anim.c

Referenced by imb_get_anim_type().

void neareast_interpolation ( struct ImBuf in,
struct ImBuf out,
float  u,
float  v,
int  xout,
int  yout 
)
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().