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:
authorRob Haarsma <phaseIV@zonnet.nl>2004-04-09 18:09:56 +0400
committerRob Haarsma <phaseIV@zonnet.nl>2004-04-09 18:09:56 +0400
commita7354ea007aab2e1017940cad3d7aa634fe31bde (patch)
tree696f460bf0f4e28006e9f55ec01e6f44c8e849a1 /source/blender/quicktime
parentc9d7d11215a5638bd1112320def6de7cc9f8e318 (diff)
Fix for bug #1100
Under Windows, Quicktime images with a depth < 32 didn't show up in the sequence editor. To fix this a non transparent layer was added to them. (bf227-bf232) I now have disabled this trick for GIF images, so the transparency is preserved. But this is a quick fix and should be replaced by a transparency check function.
Diffstat (limited to 'source/blender/quicktime')
-rw-r--r--source/blender/quicktime/apple/quicktime_import.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/quicktime/apple/quicktime_import.c b/source/blender/quicktime/apple/quicktime_import.c
index 27270e56ee3..4530921aefe 100644
--- a/source/blender/quicktime/apple/quicktime_import.c
+++ b/source/blender/quicktime/apple/quicktime_import.c
@@ -51,6 +51,7 @@
#endif /* _WIN32 */
#include "quicktime_import.h"
+#include "quicktime_export.h"
#define RECT_WIDTH(r) (r.right-r.left)
@@ -652,16 +653,21 @@ bail:
}
if(ibuf) {
+
#ifdef _WIN32
- // add alpha layer, might also be nescessary for OSX
+// add non transparent alpha layer, so images without alpha show up in the sequence editor
+// exception for GIF images since these can be transparent without being 32 bit
+// (might also be nescessary for OSX)
int i;
int box = x * y;
unsigned char *arect = (unsigned char *) ibuf->rect;
- if(depth < 32)
+ if( depth < 32 && (**desc).cType != kGIFCodecType) {
for(i = 0; i < box; i++, arect+=4)
arect[3] = 0xFF;
+ }
#endif
+
IMB_flipy(ibuf);
ibuf->ftype = QUICKTIME;
}