Mercurial > libavcodec.hg
comparison avcodec.h @ 681:b3869ffff47a libavcodec
avcodec_alloc_context()
| author | michaelni |
|---|---|
| date | Thu, 19 Sep 2002 09:13:43 +0000 |
| parents | b4bddbde44f3 |
| children | 581678112a5d |
comparison
equal
deleted
inserted
replaced
| 680:79393a88c6e4 | 681:b3869ffff47a |
|---|---|
| 3 | 3 |
| 4 #include "common.h" | 4 #include "common.h" |
| 5 | 5 |
| 6 #define LIBAVCODEC_VERSION_INT 0x000406 | 6 #define LIBAVCODEC_VERSION_INT 0x000406 |
| 7 #define LIBAVCODEC_VERSION "0.4.6" | 7 #define LIBAVCODEC_VERSION "0.4.6" |
| 8 #define LIBAVCODEC_BUILD 4623 | 8 #define LIBAVCODEC_BUILD 4624 |
| 9 #define LIBAVCODEC_BUILD_STR "4623" | 9 #define LIBAVCODEC_BUILD_STR "4624" |
| 10 | 10 |
| 11 enum CodecID { | 11 enum CodecID { |
| 12 CODEC_ID_NONE, | 12 CODEC_ID_NONE, |
| 13 CODEC_ID_MPEG1VIDEO, | 13 CODEC_ID_MPEG1VIDEO, |
| 14 CODEC_ID_H263, | 14 CODEC_ID_H263, |
| 98 ME_X1, ME_EPZS, ME_FULL }; | 98 ME_X1, ME_EPZS, ME_FULL }; |
| 99 | 99 |
| 100 | 100 |
| 101 #define FF_MAX_B_FRAMES 4 | 101 #define FF_MAX_B_FRAMES 4 |
| 102 | 102 |
| 103 /* encoding support */ | 103 /* encoding support |
| 104 /* note not everything is supported yet */ | 104 these flags can be passed in AVCodecContext.flags before initing |
| 105 Note: note not everything is supported yet | |
| 106 */ | |
| 105 | 107 |
| 106 #define CODEC_FLAG_HQ 0x0001 /* high quality (non real time) encoding */ | 108 #define CODEC_FLAG_HQ 0x0001 /* high quality (non real time) encoding */ |
| 107 #define CODEC_FLAG_QSCALE 0x0002 /* use fixed qscale */ | 109 #define CODEC_FLAG_QSCALE 0x0002 /* use fixed qscale */ |
| 108 #define CODEC_FLAG_4MV 0x0004 /* 4 MV per MB allowed */ | 110 #define CODEC_FLAG_4MV 0x0004 /* 4 MV per MB allowed */ |
| 109 #define CODEC_FLAG_QPEL 0x0010 /* use qpel MC */ | 111 #define CODEC_FLAG_QPEL 0x0010 /* use qpel MC */ |
| 512 AVCodec *avcodec_find_encoder_by_name(const char *name); | 514 AVCodec *avcodec_find_encoder_by_name(const char *name); |
| 513 AVCodec *avcodec_find_decoder(enum CodecID id); | 515 AVCodec *avcodec_find_decoder(enum CodecID id); |
| 514 AVCodec *avcodec_find_decoder_by_name(const char *name); | 516 AVCodec *avcodec_find_decoder_by_name(const char *name); |
| 515 void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode); | 517 void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode); |
| 516 | 518 |
| 519 AVCodecContext *avcodec_alloc_context(); | |
| 517 int avcodec_open(AVCodecContext *avctx, AVCodec *codec); | 520 int avcodec_open(AVCodecContext *avctx, AVCodec *codec); |
| 518 int avcodec_decode_audio(AVCodecContext *avctx, INT16 *samples, | 521 int avcodec_decode_audio(AVCodecContext *avctx, INT16 *samples, |
| 519 int *frame_size_ptr, | 522 int *frame_size_ptr, |
| 520 UINT8 *buf, int buf_size); | 523 UINT8 *buf, int buf_size); |
| 521 int avcodec_decode_video(AVCodecContext *avctx, AVPicture *picture, | 524 int avcodec_decode_video(AVCodecContext *avctx, AVPicture *picture, |
