summaryrefslogtreecommitdiffstats
path: root/postproc
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-21 19:41:50 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-21 19:41:50 +0000
commitd42410163154e4b3413d18409826145d63a5a254 (patch)
treef3991d693124f2e5d5230f8e7fdc7c4dd8973ea8 /postproc
parentd0b24c83623a25832c3c4e857805a58b3e732cb7 (diff)
downloadmpv-d42410163154e4b3413d18409826145d63a5a254.tar.bz2
mpv-d42410163154e4b3413d18409826145d63a5a254.tar.xz
101++
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4795 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc')
-rw-r--r--postproc/swscale.c3
-rw-r--r--postproc/swscale_template.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/postproc/swscale.c b/postproc/swscale.c
index 9de8ab1a3d..67b1c40034 100644
--- a/postproc/swscale.c
+++ b/postproc/swscale.c
@@ -68,6 +68,7 @@ untested special converters
//#define HAVE_3DNOW
//#undef HAVE_MMX
//#undef ARCH_X86
+//#define WORDS_BIGENDIAN
#define DITHER1XBPP
#define FAST_BGR2YV12 // use 7 bit coeffs instead of 15bit
@@ -294,10 +295,10 @@ static inline void yuv2rgbXinC(int16_t *lumFilter, int16_t **lumSrc, int lumFilt
{
if(dstFormat==IMGFMT_BGR32)
{
+ int i;
#ifdef WORDS_BIGENDIAN
dest++;
#endif
- int i;
for(i=0; i<(dstW>>1); i++){
int j;
int Y1=0;
diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c
index a14bc97d54..aca4d1f0fa 100644
--- a/postproc/swscale_template.c
+++ b/postproc/swscale_template.c
@@ -992,10 +992,10 @@ FULL_YSCALEYUV2RGB
#else
if(dstFormat==IMGFMT_BGR32)
{
+ int i;
#ifdef WORDS_BIGENDIAN
dest++;
#endif
- int i;
for(i=0;i<dstW;i++){
// vertical linear interpolation && yuv2rgb in a single step:
int Y=yuvtab_2568[((buf0[i]*yalpha1+buf1[i]*yalpha)>>19)];
@@ -1118,10 +1118,10 @@ FULL_YSCALEYUV2RGB
#else
if(dstFormat==IMGFMT_BGR32)
{
+ int i;
#ifdef WORDS_BIGENDIAN
dest++;
#endif
- int i;
for(i=0; i<dstW-1; i+=2){
// vertical linear interpolation && yuv2rgb in a single step:
int Y1=yuvtab_2568[((buf0[i]*yalpha1+buf1[i]*yalpha)>>19)];
@@ -1399,10 +1399,10 @@ static inline void RENAME(yuv2rgb1)(uint16_t *buf0, uint16_t *uvbuf0, uint16_t *
if(dstFormat==IMGFMT_BGR32)
{
+ int i;
#ifdef WORDS_BIGENDIAN
dest++;
#endif
- int i;
for(i=0; i<dstW-1; i+=2){
// vertical linear interpolation && yuv2rgb in a single step:
int Y1=yuvtab_2568[buf0[i]>>7];