comparison targa.c @ 6281:56d2853cd7c3 libavcodec

const
author michael
date Fri, 01 Feb 2008 15:54:04 +0000
parents 2b72f9bc4f06
children 48759bfbd073
comparison
equal deleted inserted replaced
6280:b79673718ed8 6281:56d2853cd7c3
35 int bpp; 35 int bpp;
36 int color_type; 36 int color_type;
37 int compression_type; 37 int compression_type;
38 } TargaContext; 38 } TargaContext;
39 39
40 static void targa_decode_rle(AVCodecContext *avctx, TargaContext *s, uint8_t *src, uint8_t *dst, int w, int h, int stride, int bpp) 40 static void targa_decode_rle(AVCodecContext *avctx, TargaContext *s, const uint8_t *src, uint8_t *dst, int w, int h, int stride, int bpp)
41 { 41 {
42 int i, x, y; 42 int i, x, y;
43 int depth = (bpp + 1) >> 3; 43 int depth = (bpp + 1) >> 3;
44 int type, count; 44 int type, count;
45 int diff; 45 int diff;
87 } 87 }
88 } 88 }
89 89
90 static int decode_frame(AVCodecContext *avctx, 90 static int decode_frame(AVCodecContext *avctx,
91 void *data, int *data_size, 91 void *data, int *data_size,
92 uint8_t *buf, int buf_size) 92 const uint8_t *buf, int buf_size)
93 { 93 {
94 TargaContext * const s = avctx->priv_data; 94 TargaContext * const s = avctx->priv_data;
95 AVFrame *picture = data; 95 AVFrame *picture = data;
96 AVFrame * const p= (AVFrame*)&s->picture; 96 AVFrame * const p= (AVFrame*)&s->picture;
97 uint8_t *dst; 97 uint8_t *dst;