diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-05-07 19:18:04 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-05-07 19:18:04 +0400 |
commit | 008863daec1249d1f17bc69e1105e336db690d63 (patch) | |
tree | 78a4001857b26a287125a3f5fa31496052f6ebdd /source/blender/blenpluginapi/intern | |
parent | 1613829e8e821321da99cad4790b7e6a1d90cea8 (diff) |
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
Diffstat (limited to 'source/blender/blenpluginapi/intern')
-rw-r--r-- | source/blender/blenpluginapi/intern/pluginapi.c | 65 |
1 files changed, 1 insertions, 64 deletions
diff --git a/source/blender/blenpluginapi/intern/pluginapi.c b/source/blender/blenpluginapi/intern/pluginapi.c index 28bc06eaea0..9e739f7927d 100644 --- a/source/blender/blenpluginapi/intern/pluginapi.c +++ b/source/blender/blenpluginapi/intern/pluginapi.c @@ -118,11 +118,6 @@ LIBEXPORT void freeImBuf(struct ImBuf* ib) IMB_freeImBuf(ib); } -LIBEXPORT short converttocmap(struct ImBuf* ibuf) -{ - return IMB_converttocmap(ibuf); -} - LIBEXPORT short saveiff(struct ImBuf *ib, char *c, int i) @@ -130,11 +125,6 @@ LIBEXPORT short saveiff(struct ImBuf *ib, return IMB_saveiff(ib, c, i); } -LIBEXPORT struct ImBuf *loadiffmem(int *mem,int flags) -{ - return IMB_loadiffmem(mem, flags); -} - LIBEXPORT struct ImBuf *loadifffile(int a, int b) { @@ -158,16 +148,6 @@ LIBEXPORT struct ImBuf *onehalf(struct ImBuf *ib) return IMB_onehalf(ib); } -LIBEXPORT struct ImBuf *onethird(struct ImBuf *ib) -{ - return IMB_onethird(ib); -} - -LIBEXPORT struct ImBuf *halflace(struct ImBuf *ib) -{ - return IMB_halflace(ib); -} - LIBEXPORT struct ImBuf *half_x(struct ImBuf *ib) { return IMB_half_x(ib); @@ -203,20 +183,6 @@ LIBEXPORT int ispic(char * name) return IMB_ispic(name); } -LIBEXPORT void dit2(struct ImBuf *ib, - short a, - short b) -{ - IMB_dit2(ib, a, b); -} - -LIBEXPORT void dit0(struct ImBuf *ib, - short a, - short b) -{ - IMB_dit0(ib, a, b); -} - /* still the same name */ /* void (*ditherfunc)(struct ImBuf *, short, short){} */ @@ -234,21 +200,6 @@ LIBEXPORT struct ImBuf *scalefastImBuf(struct ImBuf *ib, return IMB_scalefastImBuf(ib, x, y); } - -LIBEXPORT struct ImBuf *scalefieldImBuf(struct ImBuf *ib, - short x, - short y) -{ - return IMB_scalefieldImBuf(ib, x, y); -} - -LIBEXPORT struct ImBuf *scalefastfieldImBuf(struct ImBuf *ib, - short x, - short y) -{ - return IMB_scalefastfieldImBuf(ib, x, y); -} - /* Extra ones that some NaN (read Ton) plugins use, * even though they aren't in the header */ @@ -258,11 +209,6 @@ LIBEXPORT void interlace(struct ImBuf *ibuf) IMB_interlace(ibuf); } -LIBEXPORT void gamwarp(struct ImBuf *ibuf, double gamma) -{ - IMB_gamwarp(ibuf,gamma); -} - LIBEXPORT void de_interlace(struct ImBuf *ib) { IMB_de_interlace(ib); @@ -334,15 +280,11 @@ int pluginapi_force_ref(void) GET_INT_FROM_POINTER( allocImBuf ) + GET_INT_FROM_POINTER( dupImBuf ) + GET_INT_FROM_POINTER( freeImBuf ) + - GET_INT_FROM_POINTER( converttocmap ) + GET_INT_FROM_POINTER( saveiff ) + - GET_INT_FROM_POINTER( loadiffmem ) + GET_INT_FROM_POINTER( loadifffile ) + GET_INT_FROM_POINTER( loadiffname ) + GET_INT_FROM_POINTER( testiffname ) + GET_INT_FROM_POINTER( onehalf ) + - GET_INT_FROM_POINTER( onethird ) + - GET_INT_FROM_POINTER( halflace ) + GET_INT_FROM_POINTER( half_x ) + GET_INT_FROM_POINTER( half_y ) + GET_INT_FROM_POINTER( double_x ) + @@ -350,17 +292,12 @@ int pluginapi_force_ref(void) GET_INT_FROM_POINTER( double_fast_x ) + GET_INT_FROM_POINTER( double_fast_y ) + GET_INT_FROM_POINTER( ispic ) + - GET_INT_FROM_POINTER( dit2 ) + - GET_INT_FROM_POINTER( dit0 ) + GET_INT_FROM_POINTER( scaleImBuf ) + GET_INT_FROM_POINTER( scalefastImBuf ) + - GET_INT_FROM_POINTER( scalefieldImBuf ) + - GET_INT_FROM_POINTER( scalefastfieldImBuf ) + GET_INT_FROM_POINTER( hnoise ) + GET_INT_FROM_POINTER( hnoisep ) + GET_INT_FROM_POINTER( turbulence ) + GET_INT_FROM_POINTER( turbulence1 ) + GET_INT_FROM_POINTER( de_interlace ) + - GET_INT_FROM_POINTER( interlace ) + - GET_INT_FROM_POINTER( gamwarp ); + GET_INT_FROM_POINTER( interlace ); } |