Search
lxdream.org :: lxdream/src/pvr2/yuv.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/yuv.c
changeset 429:e581b90c3fb3
prev293:fe191b6381b5
next561:533f6b478071
author nkeynes
date Mon Oct 08 11:52:13 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Fix compilation warnings
file annotate diff log raw
1.1 --- a/src/pvr2/yuv.c Tue Jan 16 09:17:22 2007 +0000
1.2 +++ b/src/pvr2/yuv.c Mon Oct 08 11:52:13 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
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.7 *
1.8 * YUV420 and YUV422 decoding
1.9 *
1.10 @@ -33,7 +33,7 @@
1.11 int width;
1.12 int height;
1.13 int input_format;
1.14 - char data[512];
1.15 + unsigned char data[512];
1.16 int data_length;
1.17 int x, y;
1.18 } pvr2_yuv_state;
1.19 @@ -83,7 +83,7 @@
1.20 * for a total of 384 bytes.
1.21 * Output is UVYV = 32 bits = 2 horizontal pixels, 8x16 = 512 bytes
1.22 */
1.23 -void pvr2_decode_yuv420( char *dest, char *src )
1.24 +void pvr2_decode_yuv420( unsigned char *dest, unsigned char *src )
1.25 {
1.26 int i;
1.27 for( i=0; i<512; i++ ) {
1.28 @@ -91,7 +91,7 @@
1.29 }
1.30 }
1.31
1.32 -void pvr2_decode_yuv422( char *dest, char *src )
1.33 +void pvr2_decode_yuv422( unsigned char *dest, unsigned char *src )
1.34 {
1.35 int i;
1.36 for( i=0; i<512; i++ ) {
1.37 @@ -103,9 +103,9 @@
1.38 * Process a single macroblock of YUV data and write it out to
1.39 * texture vram.
1.40 */
1.41 -void pvr2_yuv_process_block( char *data )
1.42 +void pvr2_yuv_process_block( unsigned char *data )
1.43 {
1.44 - char output[512];
1.45 + unsigned char output[512];
1.46
1.47 if( pvr2_yuv_state.input_format == FORMAT_YUV420 ) {
1.48 pvr2_decode_yuv420( output, data );
1.49 @@ -135,7 +135,7 @@
1.50 * for buffering the data into macroblock chunks and then passing it on to the
1.51 * real processing
1.52 */
1.53 -void pvr2_yuv_write( char *data, uint32_t length )
1.54 +void pvr2_yuv_write( unsigned char *data, uint32_t length )
1.55 {
1.56 int block_size = yuv_block_size[pvr2_yuv_state.input_format];
1.57
.