diff options
author | Ton Roosendaal <ton@blender.org> | 2005-11-23 18:20:45 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-11-23 18:20:45 +0300 |
commit | 622f9147769a011a1fcff9b6aa683e674b111838 (patch) | |
tree | 22dca88f98c1c7191a2f8c0563c7dcb07048d77a /source/blender/imbuf/intern/dynlibtiff.c | |
parent | 65a824879c86eeb265c21704ab773589c66aafd6 (diff) |
New stuff & fixes in Blender OSA filtering.
While investigating alternative filters (Mitchell), I found two small
errors in the Gauss code, it clipped wrong and multiplied wrong, causing
settings other than filter size 1.0 to not work properly.
Took the last-minute liberty to add more filter types in Blender too.
Also wrote an extensive log about how sampling & filtering in Blender
works.
http://www.blender3d.org/cms/Samples_and_Filtering.723.0.html
Diffstat (limited to 'source/blender/imbuf/intern/dynlibtiff.c')
-rw-r--r-- | source/blender/imbuf/intern/dynlibtiff.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/imbuf/intern/dynlibtiff.c b/source/blender/imbuf/intern/dynlibtiff.c index 1246b639cb1..17aa0dfbf4f 100644 --- a/source/blender/imbuf/intern/dynlibtiff.c +++ b/source/blender/imbuf/intern/dynlibtiff.c @@ -62,16 +62,16 @@ * LOCAL DEFINITIONS * *********************/ PILdynlib *libtiff = NULL; -void libtiff_loadlibtiff(); +void libtiff_loadlibtiff(void); void* libtiff_findsymbol(char*); -int libtiff_load_symbols(); +int libtiff_load_symbols(void); /************************** * LIBRARY INITIALIZATION * **************************/ -void libtiff_loadlibtiff() +void libtiff_loadlibtiff(void) { char *filename; libtiff = NULL; @@ -111,7 +111,7 @@ void *libtiff_findsymbol(char *name) return symbol; } -void libtiff_init() +void libtiff_init(void) { if (libtiff != NULL) { printf("libtiff_init: Attempted to load libtiff twice!\n"); @@ -121,7 +121,7 @@ void libtiff_init() G.have_libtiff = ((libtiff != NULL) && (libtiff_load_symbols())); } -void libtiff_exit() +void libtiff_exit(void) { if (libtiff != NULL) { PIL_dynlib_close(libtiff); @@ -130,7 +130,7 @@ void libtiff_exit() } -int libtiff_load_symbols() +int libtiff_load_symbols(void) { /* Attempt to load TIFFClientOpen */ libtiff_TIFFClientOpen = libtiff_findsymbol("TIFFClientOpen"); |