Commit 8c7ce13b authored by kostya's avatar kostya

Testing RGB48 variants requires bigger stride in swscale-example.c

git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@29343 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 05ed5711
...@@ -66,11 +66,15 @@ static int doTest(uint8_t *ref[4], int refStride[4], int w, int h, int srcFormat ...@@ -66,11 +66,15 @@ static int doTest(uint8_t *ref[4], int refStride[4], int w, int h, int srcFormat
// avoid stride % bpp != 0 // avoid stride % bpp != 0
if (srcFormat==PIX_FMT_RGB24 || srcFormat==PIX_FMT_BGR24) if (srcFormat==PIX_FMT_RGB24 || srcFormat==PIX_FMT_BGR24)
srcStride[i]= srcW*3; srcStride[i]= srcW*3;
else if (srcFormat==PIX_FMT_RGB48BE || srcFormat==PIX_FMT_RGB48LE)
srcStride[i]= srcW*6;
else else
srcStride[i]= srcW*4; srcStride[i]= srcW*4;
if (dstFormat==PIX_FMT_RGB24 || dstFormat==PIX_FMT_BGR24) if (dstFormat==PIX_FMT_RGB24 || dstFormat==PIX_FMT_BGR24)
dstStride[i]= dstW*3; dstStride[i]= dstW*3;
else if (dstFormat==PIX_FMT_RGB48BE || dstFormat==PIX_FMT_RGB48LE)
dstStride[i]= dstW*6;
else else
dstStride[i]= dstW*4; dstStride[i]= dstW*4;
......
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