mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: cosmetics: Prettyprint codec/format/filter registration files Conflicts: libavcodec/allcodecs.c libavdevice/alldevices.c libavfilter/allfilters.c libavformat/allformats.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
83d4a8442c
@ -27,24 +27,44 @@
|
||||
#include "avcodec.h"
|
||||
#include "config.h"
|
||||
|
||||
#define REGISTER_HWACCEL(X,x) { \
|
||||
#define REGISTER_HWACCEL(X, x) \
|
||||
{ \
|
||||
extern AVHWAccel ff_##x##_hwaccel; \
|
||||
if(CONFIG_##X##_HWACCEL) av_register_hwaccel(&ff_##x##_hwaccel); }
|
||||
if (CONFIG_##X##_HWACCEL) \
|
||||
av_register_hwaccel(&ff_##x##_hwaccel); \
|
||||
}
|
||||
|
||||
#define REGISTER_ENCODER(X,x) { \
|
||||
#define REGISTER_ENCODER(X, x) \
|
||||
{ \
|
||||
extern AVCodec ff_##x##_encoder; \
|
||||
if(CONFIG_##X##_ENCODER) avcodec_register(&ff_##x##_encoder); }
|
||||
#define REGISTER_DECODER(X,x) { \
|
||||
extern AVCodec ff_##x##_decoder; \
|
||||
if(CONFIG_##X##_DECODER) avcodec_register(&ff_##x##_decoder); }
|
||||
#define REGISTER_ENCDEC(X,x) REGISTER_ENCODER(X,x); REGISTER_DECODER(X,x)
|
||||
if (CONFIG_##X##_ENCODER) \
|
||||
avcodec_register(&ff_##x##_encoder); \
|
||||
}
|
||||
|
||||
#define REGISTER_PARSER(X,x) { \
|
||||
#define REGISTER_DECODER(X, x) \
|
||||
{ \
|
||||
extern AVCodec ff_##x##_decoder; \
|
||||
if (CONFIG_##X##_DECODER) \
|
||||
avcodec_register(&ff_##x##_decoder); \
|
||||
}
|
||||
|
||||
#define REGISTER_ENCDEC(X, x) \
|
||||
REGISTER_ENCODER(X, x); \
|
||||
REGISTER_DECODER(X,x)
|
||||
|
||||
#define REGISTER_PARSER(X, x) \
|
||||
{ \
|
||||
extern AVCodecParser ff_##x##_parser; \
|
||||
if(CONFIG_##X##_PARSER) av_register_codec_parser(&ff_##x##_parser); }
|
||||
#define REGISTER_BSF(X,x) { \
|
||||
if (CONFIG_##X##_PARSER) \
|
||||
av_register_codec_parser(&ff_##x##_parser); \
|
||||
}
|
||||
|
||||
#define REGISTER_BSF(X, x) \
|
||||
{ \
|
||||
extern AVBitStreamFilter ff_##x##_bsf; \
|
||||
if(CONFIG_##X##_BSF) av_register_bitstream_filter(&ff_##x##_bsf); }
|
||||
if (CONFIG_##X##_BSF) \
|
||||
av_register_bitstream_filter(&ff_##x##_bsf); \
|
||||
}
|
||||
|
||||
void avcodec_register_all(void)
|
||||
{
|
||||
|
@ -21,13 +21,23 @@
|
||||
#include "config.h"
|
||||
#include "avdevice.h"
|
||||
|
||||
#define REGISTER_OUTDEV(X,x) { \
|
||||
#define REGISTER_OUTDEV(X, x) \
|
||||
{ \
|
||||
extern AVOutputFormat ff_##x##_muxer; \
|
||||
if(CONFIG_##X##_OUTDEV) av_register_output_format(&ff_##x##_muxer); }
|
||||
#define REGISTER_INDEV(X,x) { \
|
||||
if (CONFIG_##X##_OUTDEV) \
|
||||
av_register_output_format(&ff_##x##_muxer); \
|
||||
}
|
||||
|
||||
#define REGISTER_INDEV(X, x) \
|
||||
{ \
|
||||
extern AVInputFormat ff_##x##_demuxer; \
|
||||
if(CONFIG_##X##_INDEV) av_register_input_format(&ff_##x##_demuxer); }
|
||||
#define REGISTER_INOUTDEV(X,x) REGISTER_OUTDEV(X,x); REGISTER_INDEV(X,x)
|
||||
if (CONFIG_##X##_INDEV) \
|
||||
av_register_input_format(&ff_##x##_demuxer); \
|
||||
}
|
||||
|
||||
#define REGISTER_INOUTDEV(X, x) \
|
||||
REGISTER_OUTDEV(X, x); \
|
||||
REGISTER_INDEV(X, x)
|
||||
|
||||
void avdevice_register_all(void)
|
||||
{
|
||||
|
@ -23,9 +23,12 @@
|
||||
#include "config.h"
|
||||
|
||||
|
||||
#define REGISTER_FILTER(X,x,y) { \
|
||||
#define REGISTER_FILTER(X, x, y) \
|
||||
{ \
|
||||
extern AVFilter avfilter_##y##_##x; \
|
||||
if(CONFIG_##X##_FILTER ) avfilter_register(&avfilter_##y##_##x ); }
|
||||
if (CONFIG_##X##_FILTER) \
|
||||
avfilter_register(&avfilter_##y##_##x); \
|
||||
}
|
||||
|
||||
#define REGISTER_BUILTIN_FILTER(x,y) { \
|
||||
extern AVFilter avfilter_##y##_##x ; \
|
||||
|
@ -18,25 +18,38 @@
|
||||
* License along with FFmpeg; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "avformat.h"
|
||||
#include "rtp.h"
|
||||
#include "rdt.h"
|
||||
#include "url.h"
|
||||
#include "version.h"
|
||||
|
||||
#define REGISTER_MUXER(X,x) { \
|
||||
#define REGISTER_MUXER(X, x) \
|
||||
{ \
|
||||
extern AVOutputFormat ff_##x##_muxer; \
|
||||
if(CONFIG_##X##_MUXER) av_register_output_format(&ff_##x##_muxer); }
|
||||
if (CONFIG_##X##_MUXER) \
|
||||
av_register_output_format(&ff_##x##_muxer); \
|
||||
}
|
||||
|
||||
#define REGISTER_DEMUXER(X,x) { \
|
||||
#define REGISTER_DEMUXER(X, x) \
|
||||
{ \
|
||||
extern AVInputFormat ff_##x##_demuxer; \
|
||||
if(CONFIG_##X##_DEMUXER) av_register_input_format(&ff_##x##_demuxer); }
|
||||
if (CONFIG_##X##_DEMUXER) \
|
||||
av_register_input_format(&ff_##x##_demuxer); \
|
||||
}
|
||||
|
||||
#define REGISTER_MUXDEMUX(X,x) REGISTER_MUXER(X,x); REGISTER_DEMUXER(X,x)
|
||||
#define REGISTER_MUXDEMUX(X, x) \
|
||||
REGISTER_MUXER(X, x); \
|
||||
REGISTER_DEMUXER(X,x)
|
||||
|
||||
#define REGISTER_PROTOCOL(X,x) { \
|
||||
#define REGISTER_PROTOCOL(X, x) \
|
||||
{ \
|
||||
extern URLProtocol ff_##x##_protocol; \
|
||||
if(CONFIG_##X##_PROTOCOL) ffurl_register_protocol(&ff_##x##_protocol, sizeof(ff_##x##_protocol)); }
|
||||
if (CONFIG_##X##_PROTOCOL) \
|
||||
ffurl_register_protocol(&ff_##x##_protocol, \
|
||||
sizeof(ff_##x##_protocol)); \
|
||||
}
|
||||
|
||||
void av_register_all(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user