|
Blender V2.27
|
IMage Buffer module. More...
Go to the source code of this file.
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_filter_extend (struct ImBuf *ibuf, char *mask) |
| 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_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_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, float col[4]) |
| void | IMB_rectfill_area (struct ImBuf *ibuf, float *col, int x1, int y1, int x2, int y2) |
| 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.
| typedef enum IMB_BlendMode IMB_BlendMode |
| enum IMB_BlendMode |
Definition at line 165 of file IMB_imbuf.h.
| short addzbufImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 179 of file allocimbuf.c.
References addzbufImBuf(), IB_zbuf, and IMB_freezbufImBuf().
Referenced by addzbufImBuf(), and IMB_allocImBuf().
| void bicubic_interpolation | ( | struct ImBuf * | in, |
| struct ImBuf * | out, | ||
| float | u, | ||
| float | v, | ||
| int | xout, | ||
| int | yout | ||
| ) |
Definition at line 223 of file imageprocess.c.
References bicubic_interpolation().
Referenced by bicubic_interpolation().
| struct ImBuf* IMB_allocImBuf | ( | unsigned int | x, |
| unsigned int | y, | ||
| unsigned char | d, | ||
| unsigned int | flags | ||
| ) | [read] |
Definition at line 332 of file allocimbuf.c.
References addzbufImBuf(), IB_rect, IB_rectfloat, IB_zbuf, IB_zbuffloat, IMB_allocImBuf(), IMB_freeImBuf(), and TGA.
Referenced by IMB_allocImBuf(), IMB_de_interlace(), IMB_double_fast_x(), IMB_double_fast_y(), IMB_dupImBuf(), IMB_half_x(), IMB_half_y(), and IMB_onehalf().
Definition at line 1106 of file anim_movie.c.
References IB_animdeinterlace, IB_rect, IMB_anim_absolute(), IMB_convert_rgba_to_abgr(), IMB_filtery(), IMB_freeImBuf(), and IMB_loadiffname().
Referenced by IMB_anim_absolute(), and IMB_anim_previewframe().
| int IMB_anim_get_duration | ( | struct anim * | anim | ) |
Return the length (in frames) of the given anim.
Definition at line 1185 of file anim_movie.c.
References IMB_anim_get_duration().
Referenced by IMB_anim_get_duration().
Definition at line 1093 of file anim_movie.c.
References IMB_anim_absolute(), IMB_anim_previewframe(), and IMB_freeImBuf().
Referenced by IMB_anim_previewframe().
| void IMB_cache_limiter_insert | ( | struct ImBuf * | i | ) |
Definition at line 467 of file allocimbuf.c.
References IMB_cache_limiter_insert().
Referenced by IMB_cache_limiter_insert().
| 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_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 51 of file imageprocess.c.
References IMB_convert_rgba_to_abgr().
Referenced by IMB_anim_absolute(), and IMB_convert_rgba_to_abgr().
| void IMB_de_interlace | ( | struct ImBuf * | ibuf | ) |
***** BEGIN GPL LICENSE BLOCK *****
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.
The Original Code is: all of this file.
Contributor(s): none yet.
***** END GPL LICENSE BLOCK ***** allocimbuf.c
Definition at line 46 of file divers.c.
References IB_fields, IB_rect, IMB_allocImBuf(), IMB_de_interlace(), and IMB_freeImBuf().
Referenced by IMB_de_interlace(), and IMB_loadiffname().
Definition at line 114 of file scaling.c.
References IMB_allocImBuf(), and IMB_double_fast_x().
Referenced by IMB_double_fast_x(), and IMB_double_x().
Definition at line 238 of file scaling.c.
References IMB_allocImBuf(), and IMB_double_fast_y().
Referenced by IMB_double_fast_y(), and IMB_double_y().
Definition at line 153 of file scaling.c.
References IMB_double_fast_x(), and IMB_double_x().
Referenced by IMB_double_x().
Definition at line 276 of file scaling.c.
References IMB_double_fast_y(), IMB_double_y(), and IMB_filtery().
Referenced by IMB_double_y().
Definition at line 377 of file allocimbuf.c.
References IB_fields, IB_rect, IB_rectfloat, IMB_allocImBuf(), IMB_dupImBuf(), and IMB_freeImBuf().
Referenced by IMB_dupImBuf(), IMB_half_x(), and IMB_half_y().
| void IMB_filter | ( | struct ImBuf * | ibuf | ) |
Definition at line 254 of file filter.c.
References IMB_filter(), and IMB_filtery().
Referenced by IMB_filter().
| void IMB_filtery | ( | struct ImBuf * | ibuf | ) |
Definition at line 131 of file filter.c.
References IMB_filtery().
Referenced by IMB_anim_absolute(), IMB_double_y(), IMB_filter(), and IMB_filtery().
| void IMB_flipx | ( | struct ImBuf * | ibuf | ) |
Definition at line 97 of file rotate.c.
References IMB_flipx().
Referenced by IMB_flipx().
| void IMB_flipy | ( | struct ImBuf * | ibuf | ) |
***** BEGIN GPL LICENSE BLOCK *****
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.
The Original Code is: all of this file.
Contributor(s): none yet.
***** END GPL LICENSE BLOCK ***** rotate.c
Definition at line 44 of file rotate.c.
References IMB_flipy().
Referenced by IMB_flipy().
| void IMB_free_anim | ( | struct anim * | anim | ) |
Definition at line 327 of file anim_movie.c.
References IMB_free_anim(), and IMB_free_anim_ibuf().
Referenced by IMB_free_anim().
| void IMB_free_anim_ibuf | ( | struct anim * | anim | ) |
Definition at line 311 of file anim_movie.c.
References IMB_free_anim_ibuf(), and IMB_freeImBuf().
Referenced by IMB_free_anim(), and IMB_free_anim_ibuf().
| void IMB_freeImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 154 of file allocimbuf.c.
References IMB_freeImBuf(), and IMB_freezbufImBuf().
Referenced by IMB_allocImBuf(), IMB_anim_absolute(), IMB_anim_previewframe(), IMB_de_interlace(), IMB_dupImBuf(), IMB_free_anim_ibuf(), and IMB_freeImBuf().
| void IMB_freezbufImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 132 of file allocimbuf.c.
References IB_zbuf, and IMB_freezbufImBuf().
Referenced by addzbufImBuf(), IMB_freeImBuf(), and IMB_freezbufImBuf().
| int imb_get_anim_type | ( | const char * | name | ) |
Definition at line 335 of file util.c.
References imb_get_anim_type(), IMB_ispic(), and ismovie().
Referenced by imb_get_anim_type(), and IMB_isanim().
***** BEGIN GPL LICENSE BLOCK *****
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.
The Original Code is: all of this file.
Contributor(s): none yet.
***** END GPL LICENSE BLOCK ***** allocimbuf.c
Definition at line 49 of file scaling.c.
References IMB_allocImBuf(), IMB_dupImBuf(), and IMB_half_x().
Referenced by IMB_half_x(), and IMB_onehalf().
Definition at line 167 of file scaling.c.
References IMB_allocImBuf(), IMB_dupImBuf(), and IMB_half_y().
Referenced by IMB_half_y(), and IMB_onehalf().
| struct ImBuf* IMB_ibImageFromMemory | ( | unsigned char * | mem, |
| size_t | size, | ||
| int | flags | ||
| ) | [read] |
***** BEGIN GPL LICENSE BLOCK *****
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.
The Original Code is: all of this file.
Contributor(s): none yet.
***** END GPL LICENSE BLOCK ***** allocimbuf.c
Definition at line 49 of file readimage.c.
References IB_premul, and IMB_ibImageFromMemory().
Referenced by IMB_ibImageFromMemory(), and IMB_loadifffile().
| void IMB_init | ( | void | ) |
Definition at line 29 of file module.c.
References IMB_init().
Referenced by IMB_init().
| int IMB_isanim | ( | const char * | name | ) |
Definition at line 376 of file util.c.
References imb_get_anim_type(), and IMB_isanim().
Referenced by IMB_isanim().
| int IMB_ispic | ( | const char * | name | ) |
Definition at line 180 of file util.c.
References IMB_ispic().
Referenced by imb_get_anim_type(), and IMB_ispic().
| struct ImBuf* IMB_loadifffile | ( | int | file, |
| int | flags | ||
| ) | [read] |
Only here for backwards compatibility of the
plugin system.
Definition at line 78 of file readimage.c.
References IMB_ibImageFromMemory(), and IMB_loadifffile().
Referenced by IMB_loadifffile(), IMB_loadiffname(), and IMB_testiffname().
| 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 117 of file readimage.c.
References IB_fields, IMB_de_interlace(), IMB_loadifffile(), and IMB_loadiffname().
Referenced by IMB_anim_absolute(), and IMB_loadiffname().
Definition at line 339 of file scaling.c.
References IMB_allocImBuf(), IMB_half_x(), IMB_half_y(), and IMB_onehalf().
Referenced by IMB_onehalf().
| struct anim* IMB_open_anim | ( | const char * | name, |
| int | ib_flags | ||
| ) | [read] |
Definition at line 357 of file anim_movie.c.
References IMB_open_anim().
Referenced by IMB_open_anim().
| short IMB_png_encode | ( | struct ImBuf * | ibuf, |
| int | file, | ||
| int | flags | ||
| ) |
Encodes a png image from an ImBuf
| void IMB_rectfill | ( | struct ImBuf * | drect, |
| float | col[4] | ||
| ) |
Definition at line 448 of file rectop.c.
References IMB_rectfill().
Referenced by IMB_rectfill().
| 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 174 of file allocimbuf.c.
References IMB_refImBuf().
Referenced by IMB_refImBuf().
| short IMB_saveiff | ( | struct ImBuf * | ibuf, |
| const char * | name, | ||
| int | flags | ||
| ) |
***** BEGIN GPL LICENSE BLOCK *****
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.
The Original Code is: all of this file.
Contributor(s): none yet.
***** END GPL LICENSE BLOCK ***** writeimage.c
Definition at line 40 of file writeimage.c.
References IMB_saveiff().
Referenced by IMB_saveiff().
| struct ImBuf* IMB_scalefastImBuf | ( | struct ImBuf * | ibuf, |
| unsigned int | newx, | ||
| unsigned int | newy | ||
| ) | [read] |
Definition at line 1478 of file scaling.c.
References IB_rect, IB_rectfloat, and IMB_scalefastImBuf().
Referenced by IMB_scalefastImBuf().
Definition at line 1449 of file scaling.c.
References IMB_scaleImBuf().
Referenced by IMB_scaleImBuf().
| struct ImBuf* IMB_testiffname | ( | char * | naam, |
| int | flags | ||
| ) | [read] |
Definition at line 143 of file readimage.c.
References IB_multilayer, IB_test, IMB_loadifffile(), and IMB_testiffname().
Referenced by IMB_testiffname().
| void IMB_tile_cache_params | ( | int | totthread, |
| int | maxmem | ||
| ) |
Definition at line 238 of file cache.c.
References IMB_tile_cache_params().
Referenced by IMB_tile_cache_params().
| int ismovie | ( | const char * | name | ) |
Referenced by imb_get_anim_type().
1.7.3