diff options
author | Rob Haarsma <phaseIV@zonnet.nl> | 2005-01-12 13:34:05 +0300 |
---|---|---|
committer | Rob Haarsma <phaseIV@zonnet.nl> | 2005-01-12 13:34:05 +0300 |
commit | 180b8f48ce6a0e1d059fbb8fea026dbc87793bd1 (patch) | |
tree | 117967bf13b69c4776be6c804b7e5e10ad385cfc /source/blender | |
parent | 98488007994108d3dad5e5dc67f7afb3cc34ea95 (diff) |
Trying to make RGBA Quicktime movies on OSX, instead of ARGB.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/quicktime/apple/quicktime_export.c | 9 |
1 files changed, 1 insertions, 8 deletions
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); |