summaryrefslogtreecommitdiffstats
path: root/postproc/swscale_template.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-02-06 20:52:14 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-02-06 20:52:14 +0000
commit370799068d1735fcc564c1e5861affe8217a79a3 (patch)
tree9a0ae1d229987f7c05571ed48eb2ca022e1626c7 /postproc/swscale_template.c
parent6fe84b4327a281d44efbb3d77528f0b77b641009 (diff)
downloadffmpeg-streaming-370799068d1735fcc564c1e5861affe8217a79a3.zip
ffmpeg-streaming-370799068d1735fcc564c1e5861affe8217a79a3.tar.gz
swScale internally uses yuv2rgb now if possible
Originally committed as revision 4555 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/swscale_template.c')
-rw-r--r--postproc/swscale_template.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c
index ba8a8c1..b56d414 100644
--- a/postproc/swscale_template.c
+++ b/postproc/swscale_template.c
@@ -2192,7 +2192,7 @@ static void RENAME(swScale)(SwsContext *c, uint8_t* srcParam[], int srcStridePar
uint8_t *src[3];
uint8_t *dst[3];
- if((c->srcFormat == IMGFMT_IYUV) || (c->srcFormat == IMGFMT_I420)){
+ if(c->srcFormat == IMGFMT_I420){
src[0]= srcParam[0];
src[1]= srcParam[2];
src[2]= srcParam[1];
@@ -2225,7 +2225,7 @@ static void RENAME(swScale)(SwsContext *c, uint8_t* srcParam[], int srcStridePar
srcStride[2]= 0;
}
- if((c->dstFormat == IMGFMT_IYUV) || (c->dstFormat == IMGFMT_I420)){
+ if(c->dstFormat == IMGFMT_I420){
dst[0]= dstParam[0];
dst[1]= dstParam[2];
dst[2]= dstParam[1];
@@ -2235,7 +2235,9 @@ static void RENAME(swScale)(SwsContext *c, uint8_t* srcParam[], int srcStridePar
dst[1]= dstParam[1];
dst[2]= dstParam[2];
}
-
+
+//printf("sws Strides:%d %d %d -> %d %d %d\n", srcStride[0],srcStride[1],srcStride[2],
+//dstStride[0],dstStride[1],dstStride[2]);
if(dstStride[0]%8 !=0 || dstStride[1]%8 !=0 || dstStride[2]%8 !=0)
{
OpenPOWER on IntegriCloud