Mercurial > mplayer.hg
comparison libswscale/swscale-example.c @ 30325:49e0dd1be4ab
Convert int -> enum PixelFormat in doTest().
author | stefano |
---|---|
date | Mon, 18 Jan 2010 23:33:17 +0000 |
parents | 8833a311a140 |
children | 63f2871ba1b3 |
comparison
equal
deleted
inserted
replaced
30324:749d2b746cc0 | 30325:49e0dd1be4ab |
---|---|
68 return ssd; | 68 return ssd; |
69 } | 69 } |
70 | 70 |
71 // test by ref -> src -> dst -> out & compare out against ref | 71 // test by ref -> src -> dst -> out & compare out against ref |
72 // ref & out are YV12 | 72 // ref & out are YV12 |
73 static int doTest(uint8_t *ref[4], int refStride[4], int w, int h, int srcFormat, int dstFormat, | 73 static int doTest(uint8_t *ref[4], int refStride[4], int w, int h, enum PixelFormat srcFormat, enum PixelFormat dstFormat, |
74 int srcW, int srcH, int dstW, int dstH, int flags) | 74 int srcW, int srcH, int dstW, int dstH, int flags) |
75 { | 75 { |
76 uint8_t *src[4] = {0}; | 76 uint8_t *src[4] = {0}; |
77 uint8_t *dst[4] = {0}; | 77 uint8_t *dst[4] = {0}; |
78 uint8_t *out[4] = {0}; | 78 uint8_t *out[4] = {0}; |