1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 23:02:37 +00:00

fixing bgr32 output on big-endian systems

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4794 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2002-02-21 17:48:00 +00:00
parent 64f2fee0a9
commit d0b24c8362
2 changed files with 12 additions and 0 deletions

View File

@ -294,6 +294,9 @@ static inline void yuv2rgbXinC(int16_t *lumFilter, int16_t **lumSrc, int lumFilt
{
if(dstFormat==IMGFMT_BGR32)
{
#ifdef WORDS_BIGENDIAN
dest++;
#endif
int i;
for(i=0; i<(dstW>>1); i++){
int j;

View File

@ -992,6 +992,9 @@ FULL_YSCALEYUV2RGB
#else
if(dstFormat==IMGFMT_BGR32)
{
#ifdef WORDS_BIGENDIAN
dest++;
#endif
int i;
for(i=0;i<dstW;i++){
// vertical linear interpolation && yuv2rgb in a single step:
@ -1115,6 +1118,9 @@ FULL_YSCALEYUV2RGB
#else
if(dstFormat==IMGFMT_BGR32)
{
#ifdef WORDS_BIGENDIAN
dest++;
#endif
int i;
for(i=0; i<dstW-1; i+=2){
// 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 *
if(dstFormat==IMGFMT_BGR32)
{
#ifdef WORDS_BIGENDIAN
dest++;
#endif
int i;
for(i=0; i<dstW-1; i+=2){
// vertical linear interpolation && yuv2rgb in a single step: