Mercurial > libavcodec.hg
comparison cyuv.c @ 6231:6d95434fa51a libavcodec
const
author | michael |
---|---|
date | Fri, 01 Feb 2008 04:04:44 +0000 |
parents | 470601203f44 |
children | c32be43b52b2 |
comparison
equal
deleted
inserted
replaced
6230:612fc0c37427 | 6231:6d95434fa51a |
---|---|
59 return 0; | 59 return 0; |
60 } | 60 } |
61 | 61 |
62 static int cyuv_decode_frame(AVCodecContext *avctx, | 62 static int cyuv_decode_frame(AVCodecContext *avctx, |
63 void *data, int *data_size, | 63 void *data, int *data_size, |
64 uint8_t *buf, int buf_size) | 64 const uint8_t *buf, int buf_size) |
65 { | 65 { |
66 CyuvDecodeContext *s=avctx->priv_data; | 66 CyuvDecodeContext *s=avctx->priv_data; |
67 | 67 |
68 unsigned char *y_plane; | 68 unsigned char *y_plane; |
69 unsigned char *u_plane; | 69 unsigned char *u_plane; |
71 int y_ptr; | 71 int y_ptr; |
72 int u_ptr; | 72 int u_ptr; |
73 int v_ptr; | 73 int v_ptr; |
74 | 74 |
75 /* prediction error tables (make it clear that they are signed values) */ | 75 /* prediction error tables (make it clear that they are signed values) */ |
76 signed char *y_table = (signed char*)buf + 0; | 76 const signed char *y_table = (const signed char*)buf + 0; |
77 signed char *u_table = (signed char*)buf + 16; | 77 const signed char *u_table = (const signed char*)buf + 16; |
78 signed char *v_table = (signed char*)buf + 32; | 78 const signed char *v_table = (const signed char*)buf + 32; |
79 | 79 |
80 unsigned char y_pred, u_pred, v_pred; | 80 unsigned char y_pred, u_pred, v_pred; |
81 int stream_ptr; | 81 int stream_ptr; |
82 unsigned char cur_byte; | 82 unsigned char cur_byte; |
83 int pixel_groups; | 83 int pixel_groups; |