Commit afff750b authored by michael's avatar michael

fixing bgr32 output on big-endian systems


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@4794 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 0efb2896
...@@ -294,6 +294,9 @@ static inline void yuv2rgbXinC(int16_t *lumFilter, int16_t **lumSrc, int lumFilt ...@@ -294,6 +294,9 @@ static inline void yuv2rgbXinC(int16_t *lumFilter, int16_t **lumSrc, int lumFilt
{ {
if(dstFormat==IMGFMT_BGR32) if(dstFormat==IMGFMT_BGR32)
{ {
#ifdef WORDS_BIGENDIAN
dest++;
#endif
int i; int i;
for(i=0; i<(dstW>>1); i++){ for(i=0; i<(dstW>>1); i++){
int j; int j;
......
...@@ -992,6 +992,9 @@ FULL_YSCALEYUV2RGB ...@@ -992,6 +992,9 @@ FULL_YSCALEYUV2RGB
#else #else
if(dstFormat==IMGFMT_BGR32) if(dstFormat==IMGFMT_BGR32)
{ {
#ifdef WORDS_BIGENDIAN
dest++;
#endif
int i; int i;
for(i=0;i<dstW;i++){ for(i=0;i<dstW;i++){
// vertical linear interpolation && yuv2rgb in a single step: // vertical linear interpolation && yuv2rgb in a single step:
...@@ -1115,6 +1118,9 @@ FULL_YSCALEYUV2RGB ...@@ -1115,6 +1118,9 @@ FULL_YSCALEYUV2RGB
#else #else
if(dstFormat==IMGFMT_BGR32) if(dstFormat==IMGFMT_BGR32)
{ {
#ifdef WORDS_BIGENDIAN
dest++;
#endif
int i; int i;
for(i=0; i<dstW-1; i+=2){ for(i=0; i<dstW-1; i+=2){
// vertical linear interpolation && yuv2rgb in a single step: // vertical linear interpolation && yuv2rgb in a single step:
...@@ -1393,6 +1399,9 @@ static inline void RENAME(yuv2rgb1)(uint16_t *buf0, uint16_t *uvbuf0, uint16_t * ...@@ -1393,6 +1399,9 @@ static inline void RENAME(yuv2rgb1)(uint16_t *buf0, uint16_t *uvbuf0, uint16_t *
if(dstFormat==IMGFMT_BGR32) if(dstFormat==IMGFMT_BGR32)
{ {
#ifdef WORDS_BIGENDIAN
dest++;
#endif
int i; int i;
for(i=0; i<dstW-1; i+=2){ for(i=0; i<dstW-1; i+=2){
// vertical linear interpolation && yuv2rgb in a single step: // vertical linear interpolation && yuv2rgb in a single step:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment