Blender V2.61 - r43446
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
typedef enum IMB_Timecode_Type IMB_Timecode_Type
typedef enum IMB_Proxy_Size IMB_Proxy_Size

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
}
enum  IMB_Timecode_Type {
  IMB_TC_NONE = 0, IMB_TC_RECORD_RUN = 1, IMB_TC_FREE_RUN = 2, IMB_TC_INTERPOLATED_REC_DATE_FREE_RUN = 4,
  IMB_TC_RECORD_RUN_NO_GAPS = 8, IMB_TC_MAX_SLOT = 8
}
enum  IMB_Proxy_Size {
  IMB_PROXY_NONE = 0, IMB_PROXY_25 = 1, IMB_PROXY_50 = 2, IMB_PROXY_75 = 4,
  IMB_PROXY_100 = 8, IMB_PROXY_MAX_SLOT = 4
}

Functions

void IMB_init (void)
void IMB_exit (void)
struct ImBufIMB_ibImageFromMemory (unsigned char *mem, size_t size, int flags, const char *descr)
struct ImBufIMB_testiffname (const char *filepath, int flags)
struct ImBufIMB_loadiffname (const char *filepath, 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)
struct ImBufIMB_makeSingleUser (struct ImBuf *ibuf)
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)
void IMB_anim_set_index_dir (struct anim *anim, const char *dir)
int IMB_anim_index_get_frame_index (struct anim *anim, IMB_Timecode_Type tc, int position)
void IMB_anim_index_rebuild (struct anim *anim, IMB_Timecode_Type build_tcs, IMB_Proxy_Size build_preview_sizes, int build_quality, short *stop, short *do_update, float *progress)
int IMB_anim_get_duration (struct anim *anim, IMB_Timecode_Type tc)
int IMB_anim_get_fps (struct anim *anim, short *frs_sec, float *frs_sec_base)
struct animIMB_open_anim (const char *name, int ib_flags, int streamindex)
void IMB_close_anim (struct anim *anim)
int ismovie (const char *filepath)
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, IMB_Timecode_Type tc, IMB_Proxy_Size preview_size)
struct ImBufIMB_anim_previewframe (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_buffer_byte_from_float (unsigned char *rect_to, const float *rect_from, int channels_from, float dither, int profile_to, int profile_from, int predivide, int width, int height, int stride_to, int stride_from)
void IMB_buffer_float_from_byte (float *rect_to, const unsigned char *rect_from, int profile_to, int profile_from, int predivide, int width, int height, int stride_to, int stride_from)
void IMB_buffer_float_from_float (float *rect_to, const float *rect_from, int channels_from, int profile_to, int profile_from, int predivide, int width, int height, int stride_to, int stride_from)
void IMB_buffer_byte_from_byte (unsigned char *rect_to, const unsigned char *rect_from, int profile_to, int profile_from, int predivide, int width, int height, int stride_to, int stride_from)
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_loadifffile (int file, int flags, const char *descr)
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, const float col[4], 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 286 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 285 of file IMB_imbuf.h.

#define FILTER_MASK_USED   2

Definition at line 287 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
Attention:
Defined in indexer.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 155 of file IMB_imbuf.h.

Enumerator:
IMB_PROXY_NONE 
IMB_PROXY_25 
IMB_PROXY_50 
IMB_PROXY_75 
IMB_PROXY_100 
IMB_PROXY_MAX_SLOT 

Definition at line 205 of file IMB_imbuf.h.

Attention:
Defined in indexer.c
Enumerator:
IMB_TC_NONE 
IMB_TC_RECORD_RUN 
IMB_TC_FREE_RUN 
IMB_TC_INTERPOLATED_REC_DATE_FREE_RUN 
IMB_TC_RECORD_RUN_NO_GAPS 
IMB_TC_MAX_SLOT 

Definition at line 187 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 188 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 
)
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,
const float  col[4],
int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 483 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)

Definition at line 330 of file allocimbuf.c.

References FALSE, IB_tiles, ImBuf::mall, MEM_callocN(), NULL, ImBuf::tiles, ImBuf::xtiles, and ImBuf::ytiles.

Referenced by imb_loadtiff().

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 341 of file allocimbuf.c.

References addzbuffloatImBuf(), addzbufImBuf(), ImBuf::channels, FALSE, ImBuf::ftype, IB_rect, IB_rectfloat, IB_zbuf, IB_zbuffloat, imb_addrectfloatImBuf(), imb_addrectImBuf(), IMB_freeImBuf(), MEM_callocN(), NULL, ImBuf::planes, 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_paintvert_box_select(), dynamicPaint_outputSurfaceImage(), ED_view3d_draw_offscreen_imbuf(), envmap_split_ima(), exec(), filelist_from_library(), filelist_init_icons(), get_area_imbuf(), 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_jp2_decode(), imb_load_dds(), imb_load_dpx_cineon(), imb_load_openexr(), imb_loadhdr(), imb_loadiris(), imb_loadpng(), imb_loadtarga(), imb_loadtiff(), IMB_makemipmap(), IMB_onehalf(), imb_read_tiff_pixels(), 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(), node_composit_transform(), ImageBuff::plot(), prepare_effect_imbufs(), RE_layer_load_from_file(), RE_WriteEnvmapResult(), render_envmap(), render_result_rect_to_ibuf(), save_jstjpeg(), scale_trackpreview_ibuf(), 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(), stabilize_alloc_ibuf(), and view3d_read_backbuf().

struct ImBuf* IMB_anim_absolute ( struct anim anim,
int  position,
IMB_Timecode_Type  tc,
IMB_Proxy_Size  preview_size 
) [read]
int IMB_anim_get_duration ( struct anim anim,
IMB_Timecode_Type  tc 
)
int IMB_anim_get_fps ( struct anim anim,
short *  frs_sec,
float *  frs_sec_base 
)

Return the fps contained in movie files (function rval is FALSE, and frs_sec and frs_sec_base untouched if none available!)

Definition at line 1315 of file anim_movie.c.

References FALSE, anim::frs_sec, anim::frs_sec_base, and TRUE.

Referenced by alloc_proxy_output_avi().

int IMB_anim_get_preseek ( struct anim anim)

Definition at line 1331 of file anim_movie.c.

References anim::preseek.

Referenced by reload_sequence_new_file(), and sequencer_add_movie_strip().

int IMB_anim_index_get_frame_index ( struct anim anim,
IMB_Timecode_Type  tc,
int  position 
)

Definition at line 1147 of file indexer.c.

Referenced by IMB_anim_absolute(), and seq_proxy_fetch().

void IMB_anim_index_rebuild ( struct anim anim,
IMB_Timecode_Type  build_tcs,
IMB_Proxy_Size  build_preview_sizes,
int  build_quality,
short *  stop,
short *  do_update,
float *  progress 
)

Definition at line 1049 of file indexer.c.

References ANIM_FFMPEG, anim::curtype, and index_rebuild_fallback().

Referenced by proxy_startjob(), and seq_proxy_rebuild().

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

Definition at line 1192 of file anim_movie.c.

References anim::duration, IMB_anim_absolute(), IMB_freeImBuf(), IMB_PROXY_NONE, IMB_TC_NONE, and NULL.

Referenced by IMB_thumb_create().

void IMB_anim_set_index_dir ( struct anim anim,
const char *  dir 
)

Definition at line 1091 of file indexer.c.

References BLI_strncpy(), IMB_free_indices(), and anim::index_dir.

Referenced by movieclip_load_movie_file(), and seq_open_anim_file().

void IMB_anim_set_preseek ( struct anim anim,
int  preseek 
)

Definition at line 1326 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 
)
void IMB_buffer_byte_from_byte ( unsigned char *  rect_to,
const unsigned char *  rect_from,
int  profile_to,
int  profile_from,
int  predivide,
int  width,
int  height,
int  stride_to,
int  stride_from 
)
void IMB_buffer_byte_from_float ( unsigned char *  rect_to,
const float *  rect_from,
int  channels_from,
float  dither,
int  profile_to,
int  profile_from,
int  predivide,
int  width,
int  height,
int  stride_to,
int  stride_from 
)
void IMB_buffer_float_from_byte ( float *  rect_to,
const unsigned char *  rect_from,
int  profile_to,
int  profile_from,
int  predivide,
int  width,
int  height,
int  stride_to,
int  stride_from 
)
void IMB_buffer_float_from_float ( float *  rect_to,
const float *  rect_from,
int  channels_from,
int  profile_to,
int  profile_from,
int  predivide,
int  width,
int  height,
int  stride_to,
int  stride_from 
)
void IMB_close_anim ( struct anim anim)

Definition at line 237 of file anim_movie.c.

References IMB_free_anim(), and NULL.

Referenced by IMB_free_indices().

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 54 of file imageprocess.c.

References if(), ImBuf::rect, ImBuf::rect_float, size(), ImBuf::x, and ImBuf::y.

Referenced by do_paintface_box_select(), do_paintvert_box_select(), do_plugin_effect(), IMB_anim_absolute(), imb_cocoaLoadImage(), imb_loadiris(), imb_loadtarga(), imb_read_tiff_pixels(), imb_saveiris(), index_rebuild_fallback(), and view3d_read_backbuf().

void IMB_de_interlace ( struct ImBuf ibuf)
Attention:
Defined in divers.c

Definition at line 49 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 119 of file scaling.c.

References ImBuf::flags, i, IMB_allocImBuf(), NULL, ImBuf::planes, 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 244 of file scaling.c.

References ImBuf::flags, IMB_allocImBuf(), NULL, ImBuf::planes, 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 158 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 282 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 38 of file module.c.

References imb_filetypes_exit(), 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 100 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_freeImBuf ( struct ImBuf ibuf)
Attention:
Defined in allocimbuf.c

Definition at line 151 of file allocimbuf.c.

References freeencodedbufferImBuf(), 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(), BKE_movieclip_build_proxy_frame(), BKE_movieclip_get_size(), BKE_movieclip_get_stable_ibuf(), BKE_movieclip_has_frame(), BKE_movieclip_update_scopes(), BKE_tracking_free(), BKE_tracking_next(), BL_MakeScreenShot(), brush_painter_fixed_tex_partial_update(), brush_painter_free(), brush_painter_refresh_cache(), brush_painter_require_imbuf(), ImageBuff::clear(), clip_draw_grease_pencil(), clip_draw_main(), clip_free(), clip_main_area_draw(), copy_from_ibuf_still(), copy_to_ibuf_still(), curvemapping_do_ibuf(), de_interlace_ng(), de_interlace_st(), detect_features_exec(), do_adjustment(), do_displace(), do_mapuv(), do_multicam(), do_paintface_box_select(), do_paintvert_box_select(), do_plugin_effect(), do_render_seq(), do_write_image_or_movie(), draw_bgpic(), draw_image_seq(), dynamicPaint_outputSurfaceImage(), ED_space_clip_get_buffer(), ED_space_clip_get_stable_buffer(), EM_init_backbuf_border(), EM_init_backbuf_circle(), EM_mask_init_backbuf_border(), exec(), filelist_free(), filelist_free_icons(), filelist_init_icons(), free_brush(), free_buffers(), freeImBuf(), 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_freemipmapImBuf(), IMB_interlace(), imb_load_openexr(), imb_loadpng(), IMB_makemipmap(), IMB_makeSingleUser(), IMB_moviecache_destructor(), imb_read_tiff_pixels(), IMB_remakemipmap(), IMB_thumb_create(), IMB_thumb_manage(), index_rebuild_fallback(), init_iconfile_list(), init_internal_icons(), input_preprocess(), ImageBuff::load(), loadblend_thumb(), moviecache_valfree(), movieclip_build_proxy_ibuf(), movieclip_get_postprocessed_ibuf(), my_free_envmapdata(), node_composit_exec_output_file(), node_composit_exec_rotate(), node_composit_exec_scale(), node_composit_get_movieclip(), node_composit_transform(), openanim(), ImageBuff::plot(), project_paint_end(), put_postprocessed_frame_to_cache(), put_stabilized_frame_to_cache(), RE_layer_load_from_file(), RE_WriteEnvmapResult(), render_result_rect_to_ibuf(), sample_backbuf_area(), save_jstjpeg(), screen_opengl_render_anim_step(), screen_opengl_render_apply(), screenshot_exec(), screenshot_startjob(), seq_proxy_build_frame(), seq_render_effect_strip_impl(), seq_render_strip(), seq_render_strip_stack(), stabilize_alloc_ibuf(), thumbnail_joblist_free(), ui_draw_but_TRACKPREVIEW(), ui_free_but(), 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)
Attention:
Defined in allocimbuf.c

Definition at line 129 of file allocimbuf.c.

References IB_zbuf, ImBuf::mall, MEM_freeN(), NULL, and ImBuf::zbuf.

Referenced by addzbufImBuf(), IMB_freeImBuf(), save_image_doit(), and scalefast_Z_ImBuf().

int imb_get_anim_type ( const char *  name)
Attention:
Defined in util.c

Definition at line 329 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 526 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 403 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 53 of file scaling.c.

References ImBuf::flags, g, IMB_allocImBuf(), IMB_dupImBuf(), NULL, ImBuf::planes, 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 172 of file scaling.c.

References ImBuf::flags, g, IMB_allocImBuf(), IMB_dupImBuf(), NULL, ImBuf::planes, 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,
const char *  descr 
) [read]
void IMB_init ( void  )
Attention:
Defined in allocimbuf.c

Definition at line 32 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)
Attention:
Defined in util.c

Definition at line 371 of file source/blender/imbuf/intern/util.c.

References ANIM_SEQUENCE, BLI_testextensie(), FALSE, G, imb_get_anim_type(), U, UserDef::uiflag, and USER_FILTERFILEEXTS.

int IMB_ispic ( const char *  name)
struct ImBuf* IMB_loadifffile ( int  file,
int  flags,
const char *  descr 
) [read]
Attention:
defined in readimage.c
Deprecated:

Only here for backwards compatibility of the

plugin system.

Definition at line 82 of file readimage.c.

References BLI_file_descriptor_size(), IMB_ibImageFromMemory(), MAP_SHARED, mmap(), munmap(), NULL, PROT_READ, and size().

Referenced by IMB_loadiffname(), IMB_testiffname(), and loadifffile().

struct ImBuf* IMB_loadiffname ( const char *  filepath,
int  flags 
) [read]
void IMB_makemipmap ( struct ImBuf ibuf,
int  use_filter 
)
struct ImBuf* IMB_makeSingleUser ( struct ImBuf ibuf) [read]

Definition at line 175 of file allocimbuf.c.

References IMB_dupImBuf(), IMB_freeImBuf(), and ImBuf::refcounter.

Referenced by image_load_movie_file(), and input_preprocess().

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,
int  streamindex 
) [read]
Attention:
Defined in anim_movie.c

Definition at line 245 of file anim_movie.c.

References BLI_strncpy(), anim::ib_flags, MEM_callocN(), anim::name, NULL, and anim::streamindex.

Referenced by IMB_anim_open_proxy(), 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 317 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 451 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 572 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 565 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 170 of file allocimbuf.c.

References ImBuf::refcounter.

Referenced by avi_fetchibuf(), get_postprocessed_cached_frame(), get_stable_cached_frame(), IMB_moviecache_get(), IMB_moviecache_put(), put_postprocessed_frame_to_cache(), put_stabilized_frame_to_cache(), and seq_render_effect_strip_impl().

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 ( const char *  filepath,
int  flags 
) [read]
void IMB_tile_cache_params ( int  totthread,
int  maxmem 
)
void IMB_tiles_to_rect ( struct ImBuf ibuf)
int ismovie ( const char *  filepath)
Attention:
Defined in anim_movie.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().