2011-02-17 05:57:18 +00:00
|
|
|
/*
|
|
|
|
* ***** 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 *****
|
|
|
|
*/
|
2011-02-27 20:23:21 +00:00
|
|
|
|
|
|
|
/** \file blender/imbuf/IMB_imbuf.h
|
|
|
|
* \ingroup imbuf
|
|
|
|
*/
|
|
|
|
|
2002-10-12 11:37:38 +00:00
|
|
|
/**
|
2012-03-02 16:05:54 +00:00
|
|
|
* \brief IMage Buffer module.
|
2003-05-24 20:49:29 +00:00
|
|
|
*
|
|
|
|
* This module offers import/export of several graphical file formats.
|
2012-03-02 16:05:54 +00:00
|
|
|
* \ingroup imbuf
|
2003-05-24 20:49:29 +00:00
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \page IMB Imbuf module external interface
|
2003-05-24 20:49:29 +00:00
|
|
|
*
|
2002-10-12 11:37:38 +00:00
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \section about About the IMB module
|
2002-10-12 11:37:38 +00:00
|
|
|
*
|
|
|
|
* External interface of the IMage Buffer module. This module offers
|
|
|
|
* import/export of several graphical file formats. It offers the
|
|
|
|
* ImBuf type as a common structure to refer to different graphical
|
|
|
|
* file formats, and to enable a uniform way of handling them.
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \section issues Known issues with IMB
|
2002-10-12 11:37:38 +00:00
|
|
|
*
|
|
|
|
* - imbuf is written in C.
|
|
|
|
* - Endianness issues are dealt with internally.
|
|
|
|
* - File I/O must be done externally. The module uses FILE*'s to
|
|
|
|
* direct input/output.
|
|
|
|
* - Platform dependency is limited. Some minor patches for
|
|
|
|
* amiga and Irix are present. A 'posix-compliancy-patch'
|
|
|
|
* provides the interface to windows.
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \section dependencies Dependencies
|
2002-10-12 11:37:38 +00:00
|
|
|
*
|
|
|
|
* IMB needs:
|
2011-02-17 05:57:18 +00:00
|
|
|
* - \ref DNA module
|
2002-10-12 11:37:38 +00:00
|
|
|
* The listbase types are used for handling the memory
|
|
|
|
* management.
|
2011-02-17 05:57:18 +00:00
|
|
|
* - \ref blenlib module
|
2002-10-12 11:37:38 +00:00
|
|
|
* blenlib handles guarded memory management in blender-style.
|
|
|
|
* BLI_winstuff.h makes a few windows specific behaviours
|
|
|
|
* posix-compliant.
|
2003-05-24 20:49:29 +00:00
|
|
|
*/
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
|
2012-02-17 18:59:41 +00:00
|
|
|
#ifndef __IMB_IMBUF_H__
|
|
|
|
#define __IMB_IMBUF_H__
|
2002-10-12 11:37:38 +00:00
|
|
|
|
2003-05-24 20:49:29 +00:00
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention defined in ???
|
2003-05-24 20:49:29 +00:00
|
|
|
*/
|
2002-10-12 11:37:38 +00:00
|
|
|
struct ImBuf;
|
2003-05-24 20:49:29 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention defined in ???
|
2003-05-24 20:49:29 +00:00
|
|
|
*/
|
2002-10-12 11:37:38 +00:00
|
|
|
struct anim;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in allocimbuf.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
void IMB_init(void);
|
|
|
|
void IMB_exit(void);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in readimage.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
2011-10-27 04:24:34 +00:00
|
|
|
struct ImBuf *IMB_ibImageFromMemory(unsigned char *mem, size_t size,
|
|
|
|
int flags, const char *descr);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in readimage.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
2011-10-27 04:24:34 +00:00
|
|
|
struct ImBuf *IMB_testiffname(const char *filepath, int flags);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in readimage.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
2011-10-27 04:24:34 +00:00
|
|
|
struct ImBuf *IMB_loadiffname(const char *filepath, int flags);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in allocimbuf.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
void IMB_freeImBuf(struct ImBuf *ibuf);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in allocimbuf.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
2010-09-28 10:03:56 +00:00
|
|
|
struct ImBuf *IMB_allocImBuf(unsigned int x, unsigned int y,
|
2011-10-27 04:24:34 +00:00
|
|
|
unsigned char d, unsigned int flags);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
2006-02-05 19:23:34 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Increase reference count to imbuf
|
|
|
|
* (to delete an imbuf you have to call freeImBuf as many times as it
|
|
|
|
* is referenced)
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in allocimbuf.c
|
2006-02-05 19:23:34 +00:00
|
|
|
*/
|
|
|
|
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
void IMB_refImBuf(struct ImBuf *ibuf);
|
== Sequencer ==
This patch adds:
* support for proxy building again (missing feature from Blender 2.49)
additionally to the way, Blender 2.49 worked, you can select several
strips at once and make Blender build proxies in the background (using
the job system)
Also a new thing: movie proxies are now build into AVI files, and
the proxy system is moved into ImBuf-library, so that other parts
of blender can also benefit from it.
* Timecode support: to fix seeking issues with files, that have
a) varying frame rates
b) very large GOP lengths
c) are broken inbetween
d) use different time code tracks
the proxy builder can now also build timecode indices, which are
used (optionally) for seeking.
For the first time, it is possible, to do frame exact seeking on
all file types.
* Support for different video-streams in one video file (can be
selected in sequencer, other parts of blender can also use it,
but UI has to be added accordingly)
* IMPORTANT: this patch *requires* ffmpeg 0.7 or newer, since
older versions don't support the pkt_pts field, that is essential
for building timecode indices.
Windows and Mac libs are already updated, Linux-users have to build
their own ffmpeg verions until distros keep up.
2011-08-28 14:46:03 +00:00
|
|
|
struct ImBuf * IMB_makeSingleUser(struct ImBuf *ibuf);
|
2006-02-05 19:23:34 +00:00
|
|
|
|
2002-10-12 11:37:38 +00:00
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in allocimbuf.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
struct ImBuf *IMB_dupImBuf(struct ImBuf *ibuf1);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in allocimbuf.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
short addzbufImBuf(struct ImBuf *ibuf);
|
|
|
|
short addzbuffloatImBuf(struct ImBuf *ibuf);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in rectop.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
2006-07-31 15:53:03 +00:00
|
|
|
|
|
|
|
typedef 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,
|
2006-11-07 00:10:37 +00:00
|
|
|
IMB_BLEND_ERASE_ALPHA = 6,
|
|
|
|
IMB_BLEND_ADD_ALPHA = 7,
|
2006-07-31 15:53:03 +00:00
|
|
|
|
|
|
|
IMB_BLEND_COPY = 1000,
|
|
|
|
IMB_BLEND_COPY_RGB = 1001,
|
|
|
|
IMB_BLEND_COPY_ALPHA = 1002
|
|
|
|
} IMB_BlendMode;
|
|
|
|
|
|
|
|
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);
|
Orange branch: OpenEXR finally in Blender!
Credits go to Gernot Ziegler, who originally coded EXR support, and to
Austin Benesh for bringing it further. Kent Mein provided a lot of code
for integrating float buffers in Blender imbuf and ImBuf API cleanup,
and provided Make and Scons and static linking.
At this moment; the EXR libraries are a *dependency*, so you cannot get
the Orange branch compiled without having OpenEXR installed. Get the
(precompiled or sources) stuff from www.openexr.com. Current default is
that the headers and lib resides in /user/local/
Several changes/additions/fixes were added:
- EXR code only supported 'half' format (16 bits per channel). I've added
float writing, but for reading it I need tomorrow. :)
- Quite some clumsy copying of data happened in EXR code.
- cleaned up the api calls already a bit, preparing for more advanced
support
- Zbuffers were saved 16 bits, now 32 bits
- automatic adding of .exr extensions went wrong
Imbuf:
- added proper imbuf->flags and imbuf->mall support for float buffers, it
was created for *each* imbuf. :)
- found bugs for float buffers in scaling and flipping. Code there will
need more checks still
- imbuf also needs to be verified to behave properly when no 32 bits
rect exists (for saving for example)
TODO:
- support internal float images for textures, backbuf, AO probes, and
display in Image window
Hope this commit won't screwup syncing with bf-blender... :/
2006-01-09 00:40:35 +00:00
|
|
|
void IMB_rectcpy(struct ImBuf *drect, struct ImBuf *srect, int destx,
|
|
|
|
int desty, int srcx, int srcy, int width, int height);
|
2006-07-31 15:53:03 +00:00
|
|
|
void IMB_rectblend(struct ImBuf *dbuf, struct ImBuf *sbuf, int destx,
|
|
|
|
int desty, int srcx, int srcy, int width, int height, IMB_BlendMode mode);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
== Sequencer ==
This patch adds:
* support for proxy building again (missing feature from Blender 2.49)
additionally to the way, Blender 2.49 worked, you can select several
strips at once and make Blender build proxies in the background (using
the job system)
Also a new thing: movie proxies are now build into AVI files, and
the proxy system is moved into ImBuf-library, so that other parts
of blender can also benefit from it.
* Timecode support: to fix seeking issues with files, that have
a) varying frame rates
b) very large GOP lengths
c) are broken inbetween
d) use different time code tracks
the proxy builder can now also build timecode indices, which are
used (optionally) for seeking.
For the first time, it is possible, to do frame exact seeking on
all file types.
* Support for different video-streams in one video file (can be
selected in sequencer, other parts of blender can also use it,
but UI has to be added accordingly)
* IMPORTANT: this patch *requires* ffmpeg 0.7 or newer, since
older versions don't support the pkt_pts field, that is essential
for building timecode indices.
Windows and Mac libs are already updated, Linux-users have to build
their own ffmpeg verions until distros keep up.
2011-08-28 14:46:03 +00:00
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in indexer.c
|
== Sequencer ==
This patch adds:
* support for proxy building again (missing feature from Blender 2.49)
additionally to the way, Blender 2.49 worked, you can select several
strips at once and make Blender build proxies in the background (using
the job system)
Also a new thing: movie proxies are now build into AVI files, and
the proxy system is moved into ImBuf-library, so that other parts
of blender can also benefit from it.
* Timecode support: to fix seeking issues with files, that have
a) varying frame rates
b) very large GOP lengths
c) are broken inbetween
d) use different time code tracks
the proxy builder can now also build timecode indices, which are
used (optionally) for seeking.
For the first time, it is possible, to do frame exact seeking on
all file types.
* Support for different video-streams in one video file (can be
selected in sequencer, other parts of blender can also use it,
but UI has to be added accordingly)
* IMPORTANT: this patch *requires* ffmpeg 0.7 or newer, since
older versions don't support the pkt_pts field, that is essential
for building timecode indices.
Windows and Mac libs are already updated, Linux-users have to build
their own ffmpeg verions until distros keep up.
2011-08-28 14:46:03 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
typedef enum IMB_Timecode_Type {
|
|
|
|
IMB_TC_NONE = 0, /* don't use timecode files at all */
|
|
|
|
IMB_TC_RECORD_RUN = 1, /* use images in the order as they are recorded
|
|
|
|
(currently, this is the only one implemented
|
|
|
|
and is a sane default)
|
|
|
|
*/
|
|
|
|
IMB_TC_FREE_RUN = 2, /* use global timestamp written by recording
|
|
|
|
device (prosumer camcorders e.g. can do
|
|
|
|
that) */
|
|
|
|
IMB_TC_INTERPOLATED_REC_DATE_FREE_RUN = 4,
|
|
|
|
/* interpolate a global timestamp using the
|
|
|
|
record date and time written by recording
|
|
|
|
device (*every* consumer camcorder can do
|
|
|
|
that :) )*/
|
2011-12-15 12:18:09 +00:00
|
|
|
IMB_TC_RECORD_RUN_NO_GAPS = 8,
|
2012-02-23 10:18:10 +00:00
|
|
|
IMB_TC_MAX_SLOT = 4
|
== Sequencer ==
This patch adds:
* support for proxy building again (missing feature from Blender 2.49)
additionally to the way, Blender 2.49 worked, you can select several
strips at once and make Blender build proxies in the background (using
the job system)
Also a new thing: movie proxies are now build into AVI files, and
the proxy system is moved into ImBuf-library, so that other parts
of blender can also benefit from it.
* Timecode support: to fix seeking issues with files, that have
a) varying frame rates
b) very large GOP lengths
c) are broken inbetween
d) use different time code tracks
the proxy builder can now also build timecode indices, which are
used (optionally) for seeking.
For the first time, it is possible, to do frame exact seeking on
all file types.
* Support for different video-streams in one video file (can be
selected in sequencer, other parts of blender can also use it,
but UI has to be added accordingly)
* IMPORTANT: this patch *requires* ffmpeg 0.7 or newer, since
older versions don't support the pkt_pts field, that is essential
for building timecode indices.
Windows and Mac libs are already updated, Linux-users have to build
their own ffmpeg verions until distros keep up.
2011-08-28 14:46:03 +00:00
|
|
|
} IMB_Timecode_Type;
|
|
|
|
|
|
|
|
typedef 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
|
|
|
|
} IMB_Proxy_Size;
|
|
|
|
|
|
|
|
/* defaults to BL_proxy within the directory of the animation */
|
|
|
|
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,
|
2011-11-11 13:09:14 +00:00
|
|
|
int position);
|
== Sequencer ==
This patch adds:
* support for proxy building again (missing feature from Blender 2.49)
additionally to the way, Blender 2.49 worked, you can select several
strips at once and make Blender build proxies in the background (using
the job system)
Also a new thing: movie proxies are now build into AVI files, and
the proxy system is moved into ImBuf-library, so that other parts
of blender can also benefit from it.
* Timecode support: to fix seeking issues with files, that have
a) varying frame rates
b) very large GOP lengths
c) are broken inbetween
d) use different time code tracks
the proxy builder can now also build timecode indices, which are
used (optionally) for seeking.
For the first time, it is possible, to do frame exact seeking on
all file types.
* Support for different video-streams in one video file (can be
selected in sequencer, other parts of blender can also use it,
but UI has to be added accordingly)
* IMPORTANT: this patch *requires* ffmpeg 0.7 or newer, since
older versions don't support the pkt_pts field, that is essential
for building timecode indices.
Windows and Mac libs are already updated, Linux-users have to build
their own ffmpeg verions until distros keep up.
2011-08-28 14:46:03 +00:00
|
|
|
|
2012-02-29 12:08:26 +00:00
|
|
|
struct IndexBuildContext;
|
|
|
|
|
|
|
|
/* prepare context for proxies/imecodes builder */
|
|
|
|
struct IndexBuildContext *IMB_anim_index_rebuild_context(struct anim *anim, IMB_Timecode_Type tcs_in_use,
|
|
|
|
IMB_Proxy_Size proxy_sizes_in_use, int quality);
|
|
|
|
|
== Sequencer ==
This patch adds:
* support for proxy building again (missing feature from Blender 2.49)
additionally to the way, Blender 2.49 worked, you can select several
strips at once and make Blender build proxies in the background (using
the job system)
Also a new thing: movie proxies are now build into AVI files, and
the proxy system is moved into ImBuf-library, so that other parts
of blender can also benefit from it.
* Timecode support: to fix seeking issues with files, that have
a) varying frame rates
b) very large GOP lengths
c) are broken inbetween
d) use different time code tracks
the proxy builder can now also build timecode indices, which are
used (optionally) for seeking.
For the first time, it is possible, to do frame exact seeking on
all file types.
* Support for different video-streams in one video file (can be
selected in sequencer, other parts of blender can also use it,
but UI has to be added accordingly)
* IMPORTANT: this patch *requires* ffmpeg 0.7 or newer, since
older versions don't support the pkt_pts field, that is essential
for building timecode indices.
Windows and Mac libs are already updated, Linux-users have to build
their own ffmpeg verions until distros keep up.
2011-08-28 14:46:03 +00:00
|
|
|
/* will rebuild all used indices and proxies at once */
|
2012-02-29 12:08:26 +00:00
|
|
|
void IMB_anim_index_rebuild(struct IndexBuildContext *context,
|
2011-11-11 13:09:14 +00:00
|
|
|
short *stop, short *do_update, float *progress);
|
== Sequencer ==
This patch adds:
* support for proxy building again (missing feature from Blender 2.49)
additionally to the way, Blender 2.49 worked, you can select several
strips at once and make Blender build proxies in the background (using
the job system)
Also a new thing: movie proxies are now build into AVI files, and
the proxy system is moved into ImBuf-library, so that other parts
of blender can also benefit from it.
* Timecode support: to fix seeking issues with files, that have
a) varying frame rates
b) very large GOP lengths
c) are broken inbetween
d) use different time code tracks
the proxy builder can now also build timecode indices, which are
used (optionally) for seeking.
For the first time, it is possible, to do frame exact seeking on
all file types.
* Support for different video-streams in one video file (can be
selected in sequencer, other parts of blender can also use it,
but UI has to be added accordingly)
* IMPORTANT: this patch *requires* ffmpeg 0.7 or newer, since
older versions don't support the pkt_pts field, that is essential
for building timecode indices.
Windows and Mac libs are already updated, Linux-users have to build
their own ffmpeg verions until distros keep up.
2011-08-28 14:46:03 +00:00
|
|
|
|
2012-02-29 12:08:26 +00:00
|
|
|
/* finish rebuilding proxises/timecodes and free temporary contexts used */
|
|
|
|
void IMB_anim_index_rebuild_finish(struct IndexBuildContext *context, short stop);
|
|
|
|
|
2002-10-12 11:37:38 +00:00
|
|
|
/**
|
2012-03-02 16:05:54 +00:00
|
|
|
* Return the length (in frames) of the given \a anim.
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
== Sequencer ==
This patch adds:
* support for proxy building again (missing feature from Blender 2.49)
additionally to the way, Blender 2.49 worked, you can select several
strips at once and make Blender build proxies in the background (using
the job system)
Also a new thing: movie proxies are now build into AVI files, and
the proxy system is moved into ImBuf-library, so that other parts
of blender can also benefit from it.
* Timecode support: to fix seeking issues with files, that have
a) varying frame rates
b) very large GOP lengths
c) are broken inbetween
d) use different time code tracks
the proxy builder can now also build timecode indices, which are
used (optionally) for seeking.
For the first time, it is possible, to do frame exact seeking on
all file types.
* Support for different video-streams in one video file (can be
selected in sequencer, other parts of blender can also use it,
but UI has to be added accordingly)
* IMPORTANT: this patch *requires* ffmpeg 0.7 or newer, since
older versions don't support the pkt_pts field, that is essential
for building timecode indices.
Windows and Mac libs are already updated, Linux-users have to build
their own ffmpeg verions until distros keep up.
2011-08-28 14:46:03 +00:00
|
|
|
int IMB_anim_get_duration(struct anim *anim, IMB_Timecode_Type tc);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the fps contained in movie files (function rval is FALSE,
|
|
|
|
* and frs_sec and frs_sec_base untouched if none available!)
|
|
|
|
*/
|
|
|
|
int IMB_anim_get_fps(struct anim * anim,
|
2011-11-11 13:09:14 +00:00
|
|
|
short * frs_sec, float * frs_sec_base);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in anim_movie.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
== Sequencer ==
This patch adds:
* support for proxy building again (missing feature from Blender 2.49)
additionally to the way, Blender 2.49 worked, you can select several
strips at once and make Blender build proxies in the background (using
the job system)
Also a new thing: movie proxies are now build into AVI files, and
the proxy system is moved into ImBuf-library, so that other parts
of blender can also benefit from it.
* Timecode support: to fix seeking issues with files, that have
a) varying frame rates
b) very large GOP lengths
c) are broken inbetween
d) use different time code tracks
the proxy builder can now also build timecode indices, which are
used (optionally) for seeking.
For the first time, it is possible, to do frame exact seeking on
all file types.
* Support for different video-streams in one video file (can be
selected in sequencer, other parts of blender can also use it,
but UI has to be added accordingly)
* IMPORTANT: this patch *requires* ffmpeg 0.7 or newer, since
older versions don't support the pkt_pts field, that is essential
for building timecode indices.
Windows and Mac libs are already updated, Linux-users have to build
their own ffmpeg verions until distros keep up.
2011-08-28 14:46:03 +00:00
|
|
|
struct anim *IMB_open_anim(const char *name, int ib_flags, int streamindex);
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
void IMB_close_anim(struct anim *anim);
|
2012-02-29 12:08:26 +00:00
|
|
|
void IMB_close_anim_proxies(struct anim *anim);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
== Sequencer ==
This patch adds:
* support for proxy building again (missing feature from Blender 2.49)
additionally to the way, Blender 2.49 worked, you can select several
strips at once and make Blender build proxies in the background (using
the job system)
Also a new thing: movie proxies are now build into AVI files, and
the proxy system is moved into ImBuf-library, so that other parts
of blender can also benefit from it.
* Timecode support: to fix seeking issues with files, that have
a) varying frame rates
b) very large GOP lengths
c) are broken inbetween
d) use different time code tracks
the proxy builder can now also build timecode indices, which are
used (optionally) for seeking.
For the first time, it is possible, to do frame exact seeking on
all file types.
* Support for different video-streams in one video file (can be
selected in sequencer, other parts of blender can also use it,
but UI has to be added accordingly)
* IMPORTANT: this patch *requires* ffmpeg 0.7 or newer, since
older versions don't support the pkt_pts field, that is essential
for building timecode indices.
Windows and Mac libs are already updated, Linux-users have to build
their own ffmpeg verions until distros keep up.
2011-08-28 14:46:03 +00:00
|
|
|
|
2002-10-12 11:37:38 +00:00
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in anim_movie.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
2003-04-28 02:15:46 +00:00
|
|
|
|
2011-10-27 04:24:34 +00:00
|
|
|
int ismovie(const char *filepath);
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
void IMB_anim_set_preseek(struct anim *anim, int preseek);
|
|
|
|
int IMB_anim_get_preseek(struct anim *anim);
|
2003-04-28 02:15:46 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in anim_movie.c
|
2003-04-28 02:15:46 +00:00
|
|
|
*/
|
|
|
|
|
== Sequencer ==
This patch adds:
* support for proxy building again (missing feature from Blender 2.49)
additionally to the way, Blender 2.49 worked, you can select several
strips at once and make Blender build proxies in the background (using
the job system)
Also a new thing: movie proxies are now build into AVI files, and
the proxy system is moved into ImBuf-library, so that other parts
of blender can also benefit from it.
* Timecode support: to fix seeking issues with files, that have
a) varying frame rates
b) very large GOP lengths
c) are broken inbetween
d) use different time code tracks
the proxy builder can now also build timecode indices, which are
used (optionally) for seeking.
For the first time, it is possible, to do frame exact seeking on
all file types.
* Support for different video-streams in one video file (can be
selected in sequencer, other parts of blender can also use it,
but UI has to be added accordingly)
* IMPORTANT: this patch *requires* ffmpeg 0.7 or newer, since
older versions don't support the pkt_pts field, that is essential
for building timecode indices.
Windows and Mac libs are already updated, Linux-users have to build
their own ffmpeg verions until distros keep up.
2011-08-28 14:46:03 +00:00
|
|
|
struct ImBuf *IMB_anim_absolute(
|
|
|
|
struct anim *anim, int position,
|
|
|
|
IMB_Timecode_Type tc /* = 1 = IMB_TC_RECORD_RUN */,
|
|
|
|
IMB_Proxy_Size preview_size /* = 0 = IMB_PROXY_NONE */);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
2007-09-02 17:25:03 +00:00
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in anim_movie.c
|
2007-09-02 17:25:03 +00:00
|
|
|
* fetches a define previewframe, usually half way into the movie
|
|
|
|
*/
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
struct ImBuf *IMB_anim_previewframe(struct anim *anim);
|
2007-09-02 17:25:03 +00:00
|
|
|
|
2002-10-12 11:37:38 +00:00
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in anim_movie.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
void IMB_free_anim(struct anim *anim);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in filter.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
2011-06-05 20:54:04 +00:00
|
|
|
|
|
|
|
#define FILTER_MASK_NULL 0
|
|
|
|
#define FILTER_MASK_MARGIN 1
|
|
|
|
#define FILTER_MASK_USED 2
|
|
|
|
|
2002-10-12 11:37:38 +00:00
|
|
|
void IMB_filter(struct ImBuf *ibuf);
|
2006-02-10 18:57:52 +00:00
|
|
|
void IMB_filterN(struct ImBuf *out, struct ImBuf *in);
|
2011-06-05 20:54:04 +00:00
|
|
|
void IMB_mask_filter_extend(char *mask, int width, int height);
|
|
|
|
void IMB_mask_clear(struct ImBuf *ibuf, char *mask, int val);
|
2011-07-24 10:26:22 +00:00
|
|
|
void IMB_filter_extend(struct ImBuf *ibuf, char *mask, int filter);
|
2010-03-14 18:22:04 +00:00
|
|
|
void IMB_makemipmap(struct ImBuf *ibuf, int use_filter);
|
2010-12-14 18:02:41 +00:00
|
|
|
void IMB_remakemipmap(struct ImBuf *ibuf, int use_filter);
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
struct ImBuf *IMB_getmipmap(struct ImBuf *ibuf, int level);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in cache.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
|
|
|
|
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);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in filter.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
void IMB_filtery(struct ImBuf *ibuf);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in scaling.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
struct ImBuf *IMB_onehalf(struct ImBuf *ibuf1);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in scaling.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
2010-09-28 10:03:56 +00:00
|
|
|
struct ImBuf *IMB_scaleImBuf(struct ImBuf *ibuf, unsigned int newx, unsigned int newy);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in scaling.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
2010-09-28 10:03:56 +00:00
|
|
|
struct ImBuf *IMB_scalefastImBuf(struct ImBuf *ibuf, unsigned int newx, unsigned int newy);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in writeimage.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
2010-11-17 09:45:45 +00:00
|
|
|
short IMB_saveiff(struct ImBuf *ibuf, const char *filepath, int flags);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in util.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
2010-11-19 02:14:18 +00:00
|
|
|
int IMB_ispic(const char *name);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
2003-04-28 02:15:46 +00:00
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in util.c
|
2003-04-28 02:15:46 +00:00
|
|
|
*/
|
2010-11-19 02:14:18 +00:00
|
|
|
int IMB_isanim(const char *name);
|
2003-04-28 02:15:46 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in util.c
|
2003-04-28 02:15:46 +00:00
|
|
|
*/
|
2010-11-19 02:14:18 +00:00
|
|
|
int imb_get_anim_type(const char *name);
|
2003-04-28 02:15:46 +00:00
|
|
|
|
2002-10-12 11:37:38 +00:00
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in divers.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
|
|
|
void IMB_de_interlace(struct ImBuf *ibuf);
|
2003-04-30 18:38:50 +00:00
|
|
|
void IMB_interlace(struct ImBuf *ibuf);
|
2011-06-06 22:10:05 +00:00
|
|
|
|
|
|
|
/* create char buffer, color corrected if necessary, for ImBufs that lack one */
|
2006-01-09 19:17:37 +00:00
|
|
|
void IMB_rect_from_float(struct ImBuf *ibuf);
|
2011-06-06 22:10:05 +00:00
|
|
|
/* create char buffer for part of the image, color corrected if necessary,
|
|
|
|
Changed part will be stored in buffer. This is expected to be used for texture painting updates */
|
|
|
|
void IMB_partial_rect_from_float(struct ImBuf *ibuf, float *buffer, int x, int y, int w, int h);
|
2006-01-12 15:46:29 +00:00
|
|
|
void IMB_float_from_rect(struct ImBuf *ibuf);
|
2010-07-12 14:57:24 +00:00
|
|
|
void IMB_float_from_rect_simple(struct ImBuf *ibuf); /* no profile conversion */
|
|
|
|
/* note, check that the conversion exists, only some are supported */
|
|
|
|
void IMB_convert_profile(struct ImBuf *ibuf, int profile);
|
2010-12-01 02:54:10 +00:00
|
|
|
float *IMB_float_profile_ensure(struct ImBuf *ibuf, int profile, int *alloc);
|
2011-06-24 03:49:56 +00:00
|
|
|
void IMB_color_to_bw(struct ImBuf *ibuf);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
2011-12-28 13:29:33 +00:00
|
|
|
/* converting pixel buffers */
|
|
|
|
void IMB_buffer_byte_from_float(unsigned char *rect_to, const float *rect_from,
|
2012-01-05 17:50:34 +00:00
|
|
|
int channels_from, float dither, int profile_to, int profile_from, int predivide,
|
2011-12-28 13:29:33 +00:00
|
|
|
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);
|
2012-02-14 13:25:23 +00:00
|
|
|
void IMB_buffer_float_clamp(float *buf, int width, int height);
|
2011-12-28 13:29:33 +00:00
|
|
|
|
2002-10-12 11:37:38 +00:00
|
|
|
/**
|
2007-04-04 13:18:41 +00:00
|
|
|
* Change the ordering of the color bytes pointed to by rect from
|
|
|
|
* rgba to abgr. size * 4 color bytes are reordered.
|
2002-10-12 11:37:38 +00:00
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in imageprocess.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
Orange branch: OpenEXR finally in Blender!
Credits go to Gernot Ziegler, who originally coded EXR support, and to
Austin Benesh for bringing it further. Kent Mein provided a lot of code
for integrating float buffers in Blender imbuf and ImBuf API cleanup,
and provided Make and Scons and static linking.
At this moment; the EXR libraries are a *dependency*, so you cannot get
the Orange branch compiled without having OpenEXR installed. Get the
(precompiled or sources) stuff from www.openexr.com. Current default is
that the headers and lib resides in /user/local/
Several changes/additions/fixes were added:
- EXR code only supported 'half' format (16 bits per channel). I've added
float writing, but for reading it I need tomorrow. :)
- Quite some clumsy copying of data happened in EXR code.
- cleaned up the api calls already a bit, preparing for more advanced
support
- Zbuffers were saved 16 bits, now 32 bits
- automatic adding of .exr extensions went wrong
Imbuf:
- added proper imbuf->flags and imbuf->mall support for float buffers, it
was created for *each* imbuf. :)
- found bugs for float buffers in scaling and flipping. Code there will
need more checks still
- imbuf also needs to be verified to behave properly when no 32 bits
rect exists (for saving for example)
TODO:
- support internal float images for textures, backbuf, AO probes, and
display in Image window
Hope this commit won't screwup syncing with bf-blender... :/
2006-01-09 00:40:35 +00:00
|
|
|
void IMB_convert_rgba_to_abgr(struct ImBuf *ibuf);
|
2008-12-14 17:32:24 +00:00
|
|
|
|
2002-10-12 11:37:38 +00:00
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention defined in imageprocess.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
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);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention defined in readimage.c
|
|
|
|
* \deprecated Only here for backwards compatibility of the
|
|
|
|
* \deprecated plugin system.
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
2011-10-27 04:24:34 +00:00
|
|
|
struct ImBuf *IMB_loadifffile(int file, int flags, const char *descr);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention defined in scaling.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
|
|
|
struct ImBuf *IMB_half_x(struct ImBuf *ibuf1);
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention defined in scaling.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
|
|
|
struct ImBuf *IMB_double_fast_x(struct ImBuf *ibuf1);
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention defined in scaling.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
|
|
|
struct ImBuf *IMB_double_x(struct ImBuf *ibuf1);
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention defined in scaling.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
|
|
|
struct ImBuf *IMB_half_y(struct ImBuf *ibuf1);
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention defined in scaling.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
|
|
|
struct ImBuf *IMB_double_fast_y(struct ImBuf *ibuf1);
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention defined in scaling.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
|
|
|
struct ImBuf *IMB_double_y(struct ImBuf *ibuf1);
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in rotate.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
2007-10-12 06:37:20 +00:00
|
|
|
void IMB_flipx(struct ImBuf *ibuf);
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
void IMB_flipy(struct ImBuf *ibuf);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
/* Premultiply alpha */
|
|
|
|
|
|
|
|
void IMB_premultiply_alpha(struct ImBuf *ibuf);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in allocimbuf.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
void IMB_freezbufImBuf(struct ImBuf *ibuf);
|
|
|
|
void IMB_freezbuffloatImBuf(struct ImBuf *ibuf);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2012-03-02 16:05:54 +00:00
|
|
|
* \attention Defined in rectop.c
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
2011-06-15 01:56:49 +00:00
|
|
|
void IMB_rectfill(struct ImBuf *drect, const float col[4]);
|
2007-10-20 16:17:27 +00:00
|
|
|
void IMB_rectfill_area(struct ImBuf *ibuf, float *col, int x1, int y1, int x2, int y2);
|
2011-06-15 01:56:49 +00:00
|
|
|
void IMB_rectfill_alpha(struct ImBuf *ibuf, const float value);
|
2007-10-20 16:17:27 +00:00
|
|
|
|
2007-10-28 22:27:07 +00:00
|
|
|
/* this should not be here, really, we needed it for operating on render data, IMB_rectfill_area calls it */
|
2011-08-31 01:05:40 +00:00
|
|
|
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);
|
2007-10-28 22:27:07 +00:00
|
|
|
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
/* defined in metadata.c */
|
|
|
|
int IMB_metadata_change_field(struct ImBuf *img, const char *key, const char *field);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
2006-01-24 10:35:43 +00:00
|
|
|
/* exported for image tools in blender, to quickly allocate 32 bits rect */
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
short imb_addrectImBuf(struct ImBuf *ibuf);
|
|
|
|
void imb_freerectImBuf(struct ImBuf *ibuf);
|
2003-09-09 21:26:34 +00:00
|
|
|
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
short imb_addrectfloatImBuf(struct ImBuf *ibuf);
|
|
|
|
void imb_freerectfloatImBuf(struct ImBuf *ibuf);
|
|
|
|
void imb_freemipmapImBuf(struct ImBuf *ibuf);
|
2006-02-10 21:10:58 +00:00
|
|
|
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
short imb_addtilesImBuf(struct ImBuf *ibuf);
|
|
|
|
void imb_freetilesImBuf(struct ImBuf *ibuf);
|
2005-11-23 15:20:45 +00:00
|
|
|
|
2002-10-12 11:37:38 +00:00
|
|
|
#endif
|
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.
Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).
* Added a ImFileType struct with callbacks to make adding an file format type,
or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
editing the code directly.
* Functions removed that were only used for sequencer plugin API:
IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
line utility 'exrheader'
For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-05-07 15:18:04 +00:00
|
|
|
|