Mercurial > libavcodec.hg
comparison kmvc.c @ 6218:dfdff1ca78a7 libavcodec
consts
I have underestimated this a little, and these are just some ...
| author | michael |
|---|---|
| date | Fri, 01 Feb 2008 03:26:31 +0000 |
| parents | 2b72f9bc4f06 |
| children | 48759bfbd073 |
comparison
equal
deleted
inserted
replaced
| 6217:f838213ca91b | 6218:dfdff1ca78a7 |
|---|---|
| 65 bb.bitbuf = *src++; \ | 65 bb.bitbuf = *src++; \ |
| 66 bb.bits = 7; \ | 66 bb.bits = 7; \ |
| 67 } \ | 67 } \ |
| 68 } | 68 } |
| 69 | 69 |
| 70 static void kmvc_decode_intra_8x8(KmvcContext * ctx, uint8_t * src, int w, int h) | 70 static void kmvc_decode_intra_8x8(KmvcContext * ctx, const uint8_t * src, int w, int h) |
| 71 { | 71 { |
| 72 BitBuf bb; | 72 BitBuf bb; |
| 73 int res, val; | 73 int res, val; |
| 74 int i, j; | 74 int i, j; |
| 75 int bx, by; | 75 int bx, by; |
| 140 } | 140 } |
| 141 } | 141 } |
| 142 } | 142 } |
| 143 } | 143 } |
| 144 | 144 |
| 145 static void kmvc_decode_inter_8x8(KmvcContext * ctx, uint8_t * src, int w, int h) | 145 static void kmvc_decode_inter_8x8(KmvcContext * ctx, const uint8_t * src, int w, int h) |
| 146 { | 146 { |
| 147 BitBuf bb; | 147 BitBuf bb; |
| 148 int res, val; | 148 int res, val; |
| 149 int i, j; | 149 int i, j; |
| 150 int bx, by; | 150 int bx, by; |
| 222 } | 222 } |
| 223 } | 223 } |
| 224 } | 224 } |
| 225 } | 225 } |
| 226 | 226 |
| 227 static int decode_frame(AVCodecContext * avctx, void *data, int *data_size, uint8_t * buf, | 227 static int decode_frame(AVCodecContext * avctx, void *data, int *data_size, const uint8_t * buf, |
| 228 int buf_size) | 228 int buf_size) |
| 229 { | 229 { |
| 230 KmvcContext *const ctx = avctx->priv_data; | 230 KmvcContext *const ctx = avctx->priv_data; |
| 231 uint8_t *out, *src; | 231 uint8_t *out, *src; |
| 232 int i; | 232 int i; |
