1.1 --- a/src/pvr2/yuv.c Tue Jan 16 09:17:22 2007 +0000
1.2 +++ b/src/pvr2/yuv.c Wed Nov 07 11:45:53 2007 +0000
1.5 - * $Id: yuv.c,v 1.4 2007-01-16 09:17:22 nkeynes Exp $
1.6 + * $Id: yuv.c,v 1.5 2007-10-08 11:52:13 nkeynes Exp $
1.8 * YUV420 and YUV422 decoding
1.15 + unsigned char data[512];
1.20 * for a total of 384 bytes.
1.21 * Output is UVYV = 32 bits = 2 horizontal pixels, 8x16 = 512 bytes
1.23 -void pvr2_decode_yuv420( char *dest, char *src )
1.24 +void pvr2_decode_yuv420( unsigned char *dest, unsigned char *src )
1.27 for( i=0; i<512; i++ ) {
1.32 -void pvr2_decode_yuv422( char *dest, char *src )
1.33 +void pvr2_decode_yuv422( unsigned char *dest, unsigned char *src )
1.36 for( i=0; i<512; i++ ) {
1.38 * Process a single macroblock of YUV data and write it out to
1.41 -void pvr2_yuv_process_block( char *data )
1.42 +void pvr2_yuv_process_block( unsigned char *data )
1.45 + unsigned char output[512];
1.47 if( pvr2_yuv_state.input_format == FORMAT_YUV420 ) {
1.48 pvr2_decode_yuv420( output, data );
1.50 * for buffering the data into macroblock chunks and then passing it on to the
1.53 -void pvr2_yuv_write( char *data, uint32_t length )
1.54 +void pvr2_yuv_write( unsigned char *data, uint32_t length )
1.56 int block_size = yuv_block_size[pvr2_yuv_state.input_format];