Mercurial > libavcodec.hg
comparison avcodec.h @ 1368:0fd38b711f06 libavcodec
AVCodec.flush()
ff_draw_horiz_band() in coded order / cleanup
author | michaelni |
---|---|
date | Thu, 17 Jul 2003 12:29:07 +0000 |
parents | cfc80b3a4ada |
children | 45d761c387cd |
comparison
equal
deleted
inserted
replaced
1367:b33c63b53cef | 1368:0fd38b711f06 |
---|---|
13 | 13 |
14 #include "common.h" | 14 #include "common.h" |
15 | 15 |
16 #define LIBAVCODEC_VERSION_INT 0x000406 | 16 #define LIBAVCODEC_VERSION_INT 0x000406 |
17 #define LIBAVCODEC_VERSION "0.4.6" | 17 #define LIBAVCODEC_VERSION "0.4.6" |
18 #define LIBAVCODEC_BUILD 4669 | 18 #define LIBAVCODEC_BUILD 4670 |
19 #define LIBAVCODEC_BUILD_STR "4669" | 19 #define LIBAVCODEC_BUILD_STR "4670" |
20 | 20 |
21 #define LIBAVCODEC_IDENT "FFmpeg" LIBAVCODEC_VERSION "b" LIBAVCODEC_BUILD_STR | 21 #define LIBAVCODEC_IDENT "FFmpeg" LIBAVCODEC_VERSION "b" LIBAVCODEC_BUILD_STR |
22 | 22 |
23 enum CodecID { | 23 enum CodecID { |
24 CODEC_ID_NONE, | 24 CODEC_ID_NONE, |
471 * before | 471 * before |
472 * - encoding: unused | 472 * - encoding: unused |
473 * - decoding: set by user. | 473 * - decoding: set by user. |
474 */ | 474 */ |
475 void (*draw_horiz_band)(struct AVCodecContext *s, | 475 void (*draw_horiz_band)(struct AVCodecContext *s, |
476 uint8_t **src_ptr, int linesize, | 476 AVFrame *src, int offset[4], |
477 int y, int width, int height); | 477 int y, int width, int height); |
478 | 478 |
479 /* audio only */ | 479 /* audio only */ |
480 int sample_rate; ///< samples per sec | 480 int sample_rate; ///< samples per sec |
481 int channels; | 481 int channels; |
1207 int (*decode)(AVCodecContext *, void *outdata, int *outdata_size, | 1207 int (*decode)(AVCodecContext *, void *outdata, int *outdata_size, |
1208 uint8_t *buf, int buf_size); | 1208 uint8_t *buf, int buf_size); |
1209 int capabilities; | 1209 int capabilities; |
1210 const AVOption *options; | 1210 const AVOption *options; |
1211 struct AVCodec *next; | 1211 struct AVCodec *next; |
1212 void (*flush)(AVCodecContext *); | |
1212 } AVCodec; | 1213 } AVCodec; |
1213 | 1214 |
1214 /** | 1215 /** |
1215 * four components are given, that's all. | 1216 * four components are given, that's all. |
1216 * the last component is alpha | 1217 * the last component is alpha |
1398 | 1399 |
1399 int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic); | 1400 int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic); |
1400 void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic); | 1401 void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic); |
1401 void avcodec_default_free_buffers(AVCodecContext *s); | 1402 void avcodec_default_free_buffers(AVCodecContext *s); |
1402 | 1403 |
1404 /** | |
1405 * opens / inits the AVCodecContext. | |
1406 * not thread save! | |
1407 */ | |
1403 int avcodec_open(AVCodecContext *avctx, AVCodec *codec); | 1408 int avcodec_open(AVCodecContext *avctx, AVCodec *codec); |
1409 | |
1404 int avcodec_decode_audio(AVCodecContext *avctx, int16_t *samples, | 1410 int avcodec_decode_audio(AVCodecContext *avctx, int16_t *samples, |
1405 int *frame_size_ptr, | 1411 int *frame_size_ptr, |
1406 uint8_t *buf, int buf_size); | 1412 uint8_t *buf, int buf_size); |
1407 int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture, | 1413 int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture, |
1408 int *got_picture_ptr, | 1414 int *got_picture_ptr, |