Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-11-23 18:20:45 +0300
committerTon Roosendaal <ton@blender.org>2005-11-23 18:20:45 +0300
commit622f9147769a011a1fcff9b6aa683e674b111838 (patch)
tree22dca88f98c1c7191a2f8c0563c7dcb07048d77a /source/blender/imbuf
parent65a824879c86eeb265c21704ab773589c66aafd6 (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')
-rw-r--r--source/blender/imbuf/IMB_imbuf.h3
-rw-r--r--source/blender/imbuf/intern/dynlibtiff.c12
2 files changed, 9 insertions, 6 deletions
diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h
index c16f25a4492..3a0ebbd03ad 100644
--- a/source/blender/imbuf/IMB_imbuf.h
+++ b/source/blender/imbuf/IMB_imbuf.h
@@ -518,4 +518,7 @@ void quicktime_exit(void);
Called by schrijfplaatje() in toets.c */
short imb_savehdr_fromfloat(float *fbuf, char *name, int width, int height);
+/* intern/dynlibtiff.c */
+void libtiff_exit(void);
+
#endif
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");