Mercurial > libavcodec.hg
comparison allcodecs.c @ 5692:d639d661129a libavcodec
remove last dependencies on allformats.h and allcodecs.h
author | aurel |
---|---|
date | Thu, 20 Sep 2007 20:36:15 +0000 |
parents | 9810f0bbacb2 |
children | 314be1cfdcb0 |
comparison
equal
deleted
inserted
replaced
5691:fc98cdbe29b8 | 5692:d639d661129a |
---|---|
22 /** | 22 /** |
23 * @file allcodecs.c | 23 * @file allcodecs.c |
24 * Provides registration of all codecs, parsers and bitstream filters for libavcodec. | 24 * Provides registration of all codecs, parsers and bitstream filters for libavcodec. |
25 */ | 25 */ |
26 | 26 |
27 #include "allcodecs.h" | 27 #include "avcodec.h" |
28 | 28 |
29 #define REGISTER_ENCODER(X,x) \ | 29 #define REGISTER_ENCODER(X,x) { \ |
30 if(ENABLE_##X##_ENCODER) register_avcodec(&x##_encoder) | 30 extern AVCodec x##_encoder; \ |
31 #define REGISTER_DECODER(X,x) \ | 31 if(ENABLE_##X##_ENCODER) register_avcodec(&x##_encoder); } |
32 if(ENABLE_##X##_DECODER) register_avcodec(&x##_decoder) | 32 #define REGISTER_DECODER(X,x) { \ |
33 extern AVCodec x##_decoder; \ | |
34 if(ENABLE_##X##_DECODER) register_avcodec(&x##_decoder); } | |
33 #define REGISTER_ENCDEC(X,x) REGISTER_ENCODER(X,x); REGISTER_DECODER(X,x) | 35 #define REGISTER_ENCDEC(X,x) REGISTER_ENCODER(X,x); REGISTER_DECODER(X,x) |
34 | 36 |
35 #define REGISTER_PARSER(X,x) \ | 37 #define REGISTER_PARSER(X,x) { \ |
36 if(ENABLE_##X##_PARSER) av_register_codec_parser(&x##_parser) | 38 extern AVCodecParser x##_parser; \ |
37 #define REGISTER_BSF(X,x) \ | 39 if(ENABLE_##X##_PARSER) av_register_codec_parser(&x##_parser); } |
38 if(ENABLE_##X##_BSF) av_register_bitstream_filter(&x##_bsf) | 40 #define REGISTER_BSF(X,x) { \ |
41 extern AVBitStreamFilter x##_bsf; \ | |
42 if(ENABLE_##X##_BSF) av_register_bitstream_filter(&x##_bsf); } | |
39 | 43 |
40 /** | 44 /** |
41 * Register all the codecs, parsers and bitstream filters which were enabled at | 45 * Register all the codecs, parsers and bitstream filters which were enabled at |
42 * configuration time. If you do not call this function you can select exactly | 46 * configuration time. If you do not call this function you can select exactly |
43 * which formats you want to support, by using the individual registration | 47 * which formats you want to support, by using the individual registration |