diff options
author | Arpi <arpi@thot.banki.hu> | 2002-06-22 08:49:45 +0000 |
---|---|---|
committer | Arpi <arpi@thot.banki.hu> | 2002-06-22 08:49:45 +0000 |
commit | 0d9f3d85f648779f4fcc630c593f0322f5fd9ef2 (patch) | |
tree | 90ea952ffa7cad8eac00cc23912fea25c72157d1 /postproc/yuv2rgb.c | |
parent | d661d18d894ada5f315291cdf327507faa65440e (diff) | |
download | ffmpeg-0d9f3d85f648779f4fcc630c593f0322f5fd9ef2.tar.gz |
sync with mplayer xp
- partial yvu9 support (copy only)
- rgb 15/16 -> 24/32 converters
- int->unsigned changes
Originally committed as revision 6493 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/yuv2rgb.c')
-rw-r--r-- | postproc/yuv2rgb.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/postproc/yuv2rgb.c b/postproc/yuv2rgb.c index 08ebc1a778..e1248bafa0 100644 --- a/postproc/yuv2rgb.c +++ b/postproc/yuv2rgb.c @@ -156,7 +156,7 @@ const int32_t Inverse_Table_6_9[8][4] = { {117579, 136230, 16907, 35559} /* SMPTE 240M (1987) */ }; -static void yuv2rgb_c_init (int bpp, int mode); +static void yuv2rgb_c_init (unsigned bpp, int mode); yuv2rgb_fun yuv2rgb; @@ -166,11 +166,11 @@ static void (* yuv2rgb_c_internal) (uint8_t *, uint8_t *, static void yuv2rgb_c (void * dst, uint8_t * py, uint8_t * pu, uint8_t * pv, - int h_size, int v_size, - int rgb_stride, int y_stride, int uv_stride) + unsigned h_size, unsigned v_size, + unsigned rgb_stride, unsigned y_stride, unsigned uv_stride) { v_size >>= 1; - + while (v_size--) { yuv2rgb_c_internal (py, py + y_stride, pu, pv, dst, dst + rgb_stride, h_size, v_size<<1); @@ -182,7 +182,7 @@ static void yuv2rgb_c (void * dst, uint8_t * py, } } -void yuv2rgb_init (int bpp, int mode) +void yuv2rgb_init (unsigned bpp, int mode) { yuv2rgb = NULL; #ifdef CAN_COMPILE_X86_ASM @@ -676,7 +676,7 @@ static int div_round (int dividend, int divisor) return -((-dividend + (divisor>>1)) / divisor); } -static void yuv2rgb_c_init (int bpp, int mode) +static void yuv2rgb_c_init (unsigned bpp, int mode) { int i; uint8_t table_Y[1024]; |