comparison ra144.c @ 6277:2bd174b8d32e libavcodec

const
author michael
date Fri, 01 Feb 2008 15:43:38 +0000
parents bc4791868c52
children 5b3acf9fd50a
comparison
equal deleted inserted replaced
6276:e9cff14a5ae5 6277:2bd174b8d32e
249 memcpy(out,ptr+10-len,len*2); 249 memcpy(out,ptr+10-len,len*2);
250 memcpy(statbuf,ptr,20); 250 memcpy(statbuf,ptr,20);
251 } 251 }
252 252
253 /* Decode 20-byte input */ 253 /* Decode 20-byte input */
254 static void unpack_input(unsigned char *input, unsigned int *output) 254 static void unpack_input(const unsigned char *input, unsigned int *output)
255 { 255 {
256 unsigned int outbuffer[28]; 256 unsigned int outbuffer[28];
257 unsigned short inbuffer[10]; 257 unsigned short inbuffer[10];
258 unsigned int x; 258 unsigned int x;
259 unsigned int *ptr; 259 unsigned int *ptr;
425 } 425 }
426 426
427 /* Uncompress one block (20 bytes -> 160*2 bytes) */ 427 /* Uncompress one block (20 bytes -> 160*2 bytes) */
428 static int ra144_decode_frame(AVCodecContext * avctx, 428 static int ra144_decode_frame(AVCodecContext * avctx,
429 void *vdata, int *data_size, 429 void *vdata, int *data_size,
430 uint8_t * buf, int buf_size) 430 const uint8_t * buf, int buf_size)
431 { 431 {
432 unsigned int a,b,c; 432 unsigned int a,b,c;
433 signed short *shptr; 433 signed short *shptr;
434 unsigned int *lptr,*temp; 434 unsigned int *lptr,*temp;
435 const short **dptr; 435 const short **dptr;