Mercurial > libavcodec.hg
comparison flicvideo.c @ 6237:b854bbb8ded9 libavcodec
const
author | michael |
---|---|
date | Fri, 01 Feb 2008 04:17:56 +0000 |
parents | cdc40afde7b8 |
children | ecbe9565dcae |
comparison
equal
deleted
inserted
replaced
6236:0ea69b824ce7 | 6237:b854bbb8ded9 |
---|---|
125 return 0; | 125 return 0; |
126 } | 126 } |
127 | 127 |
128 static int flic_decode_frame_8BPP(AVCodecContext *avctx, | 128 static int flic_decode_frame_8BPP(AVCodecContext *avctx, |
129 void *data, int *data_size, | 129 void *data, int *data_size, |
130 uint8_t *buf, int buf_size) | 130 const uint8_t *buf, int buf_size) |
131 { | 131 { |
132 FlicDecodeContext *s = avctx->priv_data; | 132 FlicDecodeContext *s = avctx->priv_data; |
133 | 133 |
134 int stream_ptr = 0; | 134 int stream_ptr = 0; |
135 int stream_ptr_after_color_chunk; | 135 int stream_ptr_after_color_chunk; |
425 return buf_size; | 425 return buf_size; |
426 } | 426 } |
427 | 427 |
428 static int flic_decode_frame_15_16BPP(AVCodecContext *avctx, | 428 static int flic_decode_frame_15_16BPP(AVCodecContext *avctx, |
429 void *data, int *data_size, | 429 void *data, int *data_size, |
430 uint8_t *buf, int buf_size) | 430 const uint8_t *buf, int buf_size) |
431 { | 431 { |
432 /* Note, the only difference between the 15Bpp and 16Bpp */ | 432 /* Note, the only difference between the 15Bpp and 16Bpp */ |
433 /* Format is the pixel format, the packets are processed the same. */ | 433 /* Format is the pixel format, the packets are processed the same. */ |
434 FlicDecodeContext *s = avctx->priv_data; | 434 FlicDecodeContext *s = avctx->priv_data; |
435 | 435 |
690 return buf_size; | 690 return buf_size; |
691 } | 691 } |
692 | 692 |
693 static int flic_decode_frame_24BPP(AVCodecContext *avctx, | 693 static int flic_decode_frame_24BPP(AVCodecContext *avctx, |
694 void *data, int *data_size, | 694 void *data, int *data_size, |
695 uint8_t *buf, int buf_size) | 695 const uint8_t *buf, int buf_size) |
696 { | 696 { |
697 av_log(avctx, AV_LOG_ERROR, "24Bpp FLC Unsupported due to lack of test files.\n"); | 697 av_log(avctx, AV_LOG_ERROR, "24Bpp FLC Unsupported due to lack of test files.\n"); |
698 return -1; | 698 return -1; |
699 } | 699 } |
700 | 700 |
701 static int flic_decode_frame(AVCodecContext *avctx, | 701 static int flic_decode_frame(AVCodecContext *avctx, |
702 void *data, int *data_size, | 702 void *data, int *data_size, |
703 uint8_t *buf, int buf_size) | 703 const uint8_t *buf, int buf_size) |
704 { | 704 { |
705 if (avctx->pix_fmt == PIX_FMT_PAL8) { | 705 if (avctx->pix_fmt == PIX_FMT_PAL8) { |
706 return flic_decode_frame_8BPP(avctx, data, data_size, | 706 return flic_decode_frame_8BPP(avctx, data, data_size, |
707 buf, buf_size); | 707 buf, buf_size); |
708 } | 708 } |