From 180b8f48ce6a0e1d059fbb8fea026dbc87793bd1 Mon Sep 17 00:00:00 2001 From: Rob Haarsma Date: Wed, 12 Jan 2005 10:34:05 +0000 Subject: Trying to make RGBA Quicktime movies on OSX, instead of ARGB. --- source/blender/quicktime/apple/quicktime_export.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'source/blender/quicktime') diff --git a/source/blender/quicktime/apple/quicktime_export.c b/source/blender/quicktime/apple/quicktime_export.c index 5df38519328..09dea4973dc 100644 --- a/source/blender/quicktime/apple/quicktime_export.c +++ b/source/blender/quicktime/apple/quicktime_export.c @@ -309,12 +309,7 @@ static void QT_StartAddVideoSamplesToMedia (const Rect *trackFrame) qtexport->ibuf = IMB_allocImBuf (R.rectx, R.recty, 32, IB_rect, 0); err = NewGWorldFromPtr( &qtexport->theGWorld, -#ifdef __APPLE__ - k32ARGBPixelFormat, -#endif -#ifdef _WIN32 k32RGBAPixelFormat, -#endif trackFrame, NULL, NULL, 0, (unsigned char *)qtexport->ibuf->rect, @@ -362,10 +357,8 @@ static void QT_DoAddVideoSamplesToMedia (int frame) //parse render bitmap into Quicktime's GWorld #ifdef __APPLE__ -// Swap alpha byte to the end, so ARGB become RGBA; note this is big endian-centric. for( index = 0; index < boxsize; index++, changePos++, readPos++ ) - *( changePos ) = ( ( *readPos & 0xFFFFFFFF ) >> 8 ) | - ( ( *readPos << 24 ) & 0xFF ); + *( changePos ) = *( readPos ); #endif #ifdef _WIN32 memcpy(changePos, readPos, boxsize*4); -- cgit v1.2.3