From 459f147da7429c3cec909ece30ed9f0f3943c3f5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 29 Jun 2006 10:06:27 +0000 Subject: [PATCH] From Eric Wing, updates to QuickTime plugin --- src/osgPlugins/quicktime/ReaderWriterQT.cpp | 55 ++++++++++++--------- 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/src/osgPlugins/quicktime/ReaderWriterQT.cpp b/src/osgPlugins/quicktime/ReaderWriterQT.cpp index eef5170e2..c6e922860 100644 --- a/src/osgPlugins/quicktime/ReaderWriterQT.cpp +++ b/src/osgPlugins/quicktime/ReaderWriterQT.cpp @@ -235,11 +235,10 @@ class ReaderWriterQT : public osgDB::ReaderWriter return WriteResult::FILE_NOT_HANDLED; } - GWorldPtr gw = NULL; - - // we are converting the images back to 32bit, it seems, that quicktime can't handle others + CGContextRef cg_context = NULL; - unsigned long desiredPixelFormat = k32ARGBPixelFormat; + // we are converting the images back to 32bit, it seems, that quicktime can't handle others +// unsigned long desiredPixelFormat = k32ARGBPixelFormat; @@ -259,7 +258,7 @@ class ReaderWriterQT : public osgDB::ReaderWriter switch (numBytes) { case 1 : - dstp[0] = 0; + dstp[0] = 0xFFFFFFFF; dstp[1] = srcp[0]; dstp[2] = srcp[0]; dstp[3] = srcp[0]; @@ -269,7 +268,7 @@ class ReaderWriterQT : public osgDB::ReaderWriter break; case 3 : for (j=0; j