echo " --disable-codec=codec disables codec"
echo " --disable-encoders disables all encoders"
echo " --disable-decoders disables all decoders"
+echo " --disable-muxers disables all muxers"
+echo " --disable-demuxers disables all demuxers"
echo ""
echo "NOTE: The object files are build at the place where configure is launched"
exit 1
pthreads="no"
gpl="no"
memalignhack="no"
+muxers="yes"
+demuxers="yes"
# OS specific
targetos=`uname -s`
;;
--disable-decoders) CODEC_LIST="`echo $CODEC_LIST | sed 's/[-_a-zA-Z0-9]*decoder//g'`"
;;
+ --disable-muxers) muxers="no"
+ ;;
+ --disable-demuxers) demuxers="no"
+ ;;
esac
done
echo "#define CONFIG_DECODERS 1" >> $TMPH
echo "CONFIG_DECODERS=yes" >> config.mak
+# muxers
+if test "$muxers" = "yes" ; then
+ echo "#define CONFIG_MUXERS 1" >> $TMPH
+ echo "CONFIG_MUXERS=yes" >> config.mak
+fi
+
+# demuxers
+if test "$demuxers" = "yes" ; then
+ echo "#define CONFIG_DEMUXERS 1" >> $TMPH
+ echo "CONFIG_DEMUXERS=yes" >> config.mak
+fi
+
# AC3
if test "$a52" = "yes" ; then
echo "#define CONFIG_AC3 1" >> $TMPH
mpegps_init();
mpegts_init();
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
crc_init();
img_init();
img2_init();
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
raw_init();
mp3_init();
rm_init();
asf_init();
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
avienc_init();
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
avidec_init();
ff_wav_init();
ff_mmf_init();
swf_init();
au_init();
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
gif_init();
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
mov_init();
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
movenc_init();
jpeg_init();
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
ff_dv_init();
fourxm_init();
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
flvenc_init();
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
flvdec_init();
str_init();
roq_init();
nsvdec_init();
daud_init();
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
/* image formats */
#if 0
av_register_image_format(&pnm_image_format);
#endif
av_register_image_format(&gif_image_format);
// av_register_image_format(&sgi_image_format); heap corruption, dont enable
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
/* file protocols */
register_protocol(&file_protocol);
#undef NDEBUG
#include <assert.h>
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
#define ASF_INDEXED_INTERVAL 10000000
asf_write_trailer,
.flags = AVFMT_GLOBALHEADER,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
asf_read_pts,
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
extern AVOutputFormat asf_oformat;
extern AVOutputFormat asf_stream_oformat;
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
int asf_init(void)
{
av_register_input_format(&asf_iformat);
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
av_register_output_format(&asf_oformat);
av_register_output_format(&asf_stream_oformat);
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
return 0;
}
{ 0, 0 },
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
/* AUDIO_FILE header */
static int put_au_header(ByteIOContext *pb, AVCodecContext *enc)
{
return 0;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
static int au_probe(AVProbeData *p)
{
pcm_read_seek,
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static AVOutputFormat au_oformat = {
"au",
"SUN AU Format",
au_write_packet,
au_write_trailer,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
int au_init(void)
{
av_register_input_format(&au_iformat);
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
av_register_output_format(&au_oformat);
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
return 0;
}
* - fill all fields if non streamed (nb_frames for example)
*/
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
typedef struct AVIIentry {
unsigned int flags, pos, len;
} AVIIentry;
put_le32(pb, (uint32_t)(pos - start));
url_fseek(pb, pos, SEEK_SET);
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
/* Note: when encoding, the first matching tag is used, so order is
important if multiple tags possible for a given codec. */
return codec_get_id(codec_wav_tags, tag);
}
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
/* BITMAPINFOHEADER header */
void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const CodecTag *tags, int for_asf)
{
av_register_output_format(&avi_oformat);
return 0;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
return ret;
}
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
int url_write(URLContext *h, unsigned char *buf, int size)
{
int ret;
ret = h->prot->url_write(h, buf, size);
return ret;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
offset_t url_seek(URLContext *h, offset_t pos, int whence)
{
}
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static void flush_buffer(ByteIOContext *s)
{
if (s->buf_ptr > s->buffer) {
flush_buffer(s);
s->must_flush = 0;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
offset_t url_fseek(ByteIOContext *s, offset_t offset, int whence)
{
if (whence != SEEK_CUR && whence != SEEK_SET)
return -EINVAL;
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
if (s->write_flag) {
if (whence == SEEK_CUR) {
offset1 = s->pos + (s->buf_ptr - s->buffer);
s->pos = offset;
}
} else
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
{
if (whence == SEEK_CUR) {
offset1 = s->pos - (s->buf_end - s->buffer) + (s->buf_ptr - s->buffer);
return s->error;
}
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
void put_le32(ByteIOContext *s, unsigned int val)
{
put_byte(s, val);
put_byte(s, *tag++);
}
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
/* Input stream */
/* link with avio functions */
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static int url_write_packet(void *opaque, uint8_t *buf, int buf_size)
{
URLContext *h = opaque;
}
#else
#define url_write_packet NULL
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
static int url_read_packet(void *opaque, uint8_t *buf, int buf_size)
{
return s->opaque;
}
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
/* XXX: currently size is limited */
int url_fprintf(ByteIOContext *s, const char *fmt, ...)
{
put_buffer(s, buf, strlen(buf));
return ret;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
/* note: unlike fgets, the EOL character is not returned and a whole
line is parsed. return NULL if first char read was EOF */
return s->max_packet_size;
}
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
/* buffer handling */
int url_open_buf(ByteIOContext *s, uint8_t *buf, int buf_size, int flags)
{
av_free(d);
return size;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
/* disable pts hack for testing */
int ffm_nopts = 0;
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static void flush_packet(AVFormatContext *s)
{
FFMContext *ffm = s->priv_data;
return 0;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
/* ffm demux */
ffm_seek,
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static AVOutputFormat ffm_oformat = {
"ffm",
"ffm format",
ffm_write_packet,
ffm_write_trailer,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
int ffm_init(void)
{
av_register_input_format(&ffm_iformat);
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
av_register_output_format(&ffm_oformat);
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
return 0;
}
return jctx.ret_code;
}
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static int jpeg_write(ByteIOContext *pb, AVImageInfo *info)
{
AVCodecContext *c;
av_free(c);
return ret;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
AVImageFormat jpeg_image_format = {
"jpeg",
jpeg_probe,
jpeg_read,
(1 << PIX_FMT_YUVJ420P) | (1 << PIX_FMT_YUVJ422P) | (1 << PIX_FMT_YUVJ444P),
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
jpeg_write,
#else
NULL,
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
};
offset_t data_size;
} MMFContext;
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static int mmf_rates[] = { 4000, 8000, 11025, 22050, 44100 };
static int mmf_rate_code(int rate)
}
return 0;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
static int mmf_probe(AVProbeData *p)
{
mmf_read_seek,
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static AVOutputFormat mmf_oformat = {
"mmf",
"mmf format",
mmf_write_packet,
mmf_write_trailer,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
int ff_mmf_init(void)
{
av_register_input_format(&mmf_iformat);
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
av_register_output_format(&mmf_oformat);
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
return 0;
}
return 0;
}
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
/* simple formats */
static int mp3_write_header(struct AVFormatContext *s)
{
}
return 0;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
AVInputFormat mp3_iformat = {
"mp3",
.extensions = "mp2,mp3,m2a", /* XXX: use probe */
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
AVOutputFormat mp2_oformat = {
"mp2",
"MPEG audio layer 2",
mp3_write_trailer,
};
#endif
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
int mp3_init(void)
{
av_register_input_format(&mp3_iformat);
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
av_register_output_format(&mp2_oformat);
#ifdef CONFIG_MP3LAME
av_register_output_format(&mp3_oformat);
#endif
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
return 0;
}
static const int lpcm_freq_tab[4] = { 48000, 96000, 44100, 32000 };
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static AVOutputFormat mpeg1system_mux;
static AVOutputFormat mpeg1vcd_mux;
static AVOutputFormat mpeg2vob_mux;
}
return 0;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
/*********************************************/
/* demux code */
return dts;
}
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static AVOutputFormat mpeg1system_mux = {
"mpeg",
"MPEG1 System format",
mpeg_mux_end,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
AVInputFormat mpegps_demux = {
"mpeg",
int mpegps_init(void)
{
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
av_register_output_format(&mpeg1system_mux);
av_register_output_format(&mpeg1vcd_mux);
av_register_output_format(&mpeg2vob_mux);
av_register_output_format(&mpeg2svcd_mux);
av_register_output_format(&mpeg2dvd_mux);
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
av_register_input_format(&mpegps_demux);
return 0;
}
int mpegts_init(void)
{
av_register_input_format(&mpegts_demux);
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
av_register_output_format(&mpegts_mux);
#endif
return 0;
#define BOUNDARY_TAG "ffserver"
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static int mpjpeg_write_header(AVFormatContext *s)
{
uint8_t buf1[256];
av_register_output_format(&mpjpeg_format);
return 0;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
}
}
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static void put_v(ByteIOContext *bc, uint64_t val)
{
return 0;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
static int nut_probe(AVProbeData *p)
{
.extensions = "nut",
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static AVOutputFormat nut_oformat = {
"nut",
"nut format",
nut_write_trailer,
.flags = AVFMT_GLOBALHEADER,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
int nut_init(void)
{
av_register_input_format(&nut_iformat);
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
av_register_output_format(&nut_oformat);
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
return 0;
}
} OggContext ;
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static int ogg_write_header(AVFormatContext *avfcontext)
{
OggContext *context = avfcontext->priv_data;
ogg_write_packet,
ogg_write_trailer,
} ;
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
#if 0
static int next_packet(AVFormatContext *avfcontext, ogg_packet *op) {
#endif
int libogg_init(void) {
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
av_register_output_format(&ogg_oformat) ;
#endif
/* av_register_input_format(&ogg_iformat); */
NULL
};
-#if 0 // CONFIG_ENCODERS
+#if 0 // CONFIG_MUXERS
static int
ogg_write_header (AVFormatContext * avfcontext)
{
ogg_write_packet,
ogg_write_trailer,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
//FIXME We could avoid some structure duplication
static int
int
ogg_init (void)
{
-#if 0 // CONFIG_ENCODERS
+#if 0 // CONFIG_MUXERS
av_register_output_format (&ogg_oformat);
#endif
av_register_input_format (&ogg_iformat);
*/
#include "avformat.h"
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
/* simple formats */
static int raw_write_header(struct AVFormatContext *s)
{
{
return 0;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
/* raw input */
static int raw_read_header(AVFormatContext *s, AVFormatParameters *ap)
.extensions = "ac3",
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
AVOutputFormat ac3_oformat = {
"ac3",
"raw ac3",
raw_write_packet,
raw_write_trailer,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
AVInputFormat dts_iformat = {
"dts",
.value = CODEC_ID_H261,
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
AVOutputFormat h261_oformat = {
"h261",
"raw h261",
raw_write_packet,
raw_write_trailer,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
AVInputFormat h263_iformat = {
"h263",
.value = CODEC_ID_H263,
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
AVOutputFormat h263_oformat = {
"h263",
"raw h263",
raw_write_packet,
raw_write_trailer,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
AVInputFormat m4v_iformat = {
"m4v",
.value = CODEC_ID_MPEG4,
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
AVOutputFormat m4v_oformat = {
"m4v",
"raw MPEG4 video format",
raw_write_packet,
raw_write_trailer,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
AVInputFormat h264_iformat = {
"h264",
.value = CODEC_ID_H264,
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
AVOutputFormat h264_oformat = {
"h264",
"raw H264 video format",
raw_write_packet,
raw_write_trailer,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
AVInputFormat mpegvideo_iformat = {
"mpegvideo",
.value = CODEC_ID_MPEG1VIDEO,
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
AVOutputFormat mpeg1video_oformat = {
"mpeg1video",
"MPEG video",
raw_write_packet,
raw_write_trailer,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
AVOutputFormat mpeg2video_oformat = {
"mpeg2video",
"MPEG2 video",
raw_write_packet,
raw_write_trailer,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
AVInputFormat mjpeg_iformat = {
"mjpeg",
.value = CODEC_ID_MJPEG,
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
AVOutputFormat mjpeg_oformat = {
"mjpeg",
"MJPEG video",
raw_write_packet,
raw_write_trailer,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
/* pcm formats */
.value = codec,\
};
-#if !defined(CONFIG_ENCODERS) && defined(CONFIG_DECODERS)
+#if !defined(CONFIG_MUXERS) && defined(CONFIG_DEMUXERS)
#define PCMDEF(name, long_name, ext, codec) \
PCMINPUTDEF(name, long_name, ext, codec)
raw_write_packet,\
raw_write_trailer,\
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
#ifdef WORDS_BIGENDIAN
#define BE_DEF(s) s
.value = CODEC_ID_RAWVIDEO,
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
AVOutputFormat rawvideo_oformat = {
"rawvideo",
"raw video format",
raw_write_packet,
raw_write_trailer,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static int null_write_packet(struct AVFormatContext *s, AVPacket *pkt)
{
return 0;
raw_write_trailer,
.flags = AVFMT_NOFILE | AVFMT_RAWPICTURE,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
-#ifndef CONFIG_ENCODERS
+#ifndef CONFIG_MUXERS
#define av_register_output_format(format)
#endif
-#ifndef CONFIG_DECODERS
+#ifndef CONFIG_DEMUXERS
#define av_register_input_format(format)
#endif
int remaining_len;
} RMContext;
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static void put_str(ByteIOContext *s, const char *tag)
{
put_be16(s,strlen(tag));
put_flush_packet(pb);
return 0;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
/***************************************************/
rm_read_dts,
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static AVOutputFormat rm_oformat = {
"rm",
"rm format",
rm_write_packet,
rm_write_trailer,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
int rm_init(void)
{
av_register_input_format(&rm_iformat);
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
av_register_output_format(&rm_oformat);
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
return 0;
}
return 0; /* not reached */
}
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static void write_sgi_header(ByteIOContext *f, const SGIInfo *info)
{
int i;
return 0;
}
-#endif // CONFIG_ENCODERS
+#endif // CONFIG_MUXERS
AVImageFormat sgi_image_format = {
"sgi",
sgi_probe,
sgi_read,
(1 << PIX_FMT_GRAY8) | (1 << PIX_FMT_RGB24) | (1 << PIX_FMT_RGBA32),
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
sgi_write,
#else
NULL,
-#endif // CONFIG_ENCODERS
+#endif // CONFIG_MUXERS
};
return 1;
}
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static void put_swf_tag(AVFormatContext *s, int tag)
{
SWFContext *swf = s->priv_data;
return 0;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
/*********************************************/
/* Extract FLV encoded frame and MP3 from swf
swf_read_close,
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static AVOutputFormat swf_oformat = {
"swf",
"Flash format",
swf_write_packet,
swf_write_trailer,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
int swf_init(void)
{
av_register_input_format(&swf_iformat);
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
av_register_output_format(&swf_oformat);
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
return 0;
}
{ 0, 0 },
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
/* WAVEFORMATEX header */
/* returns the size or -1 on error */
int put_wav_header(ByteIOContext *pb, AVCodecContext *enc)
return hdrsize;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
/* We could be given one of the three possible structures here:
* WAVEFORMAT, PCMWAVEFORMAT or WAVEFORMATEX. Each structure
return id;
}
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
typedef struct {
offset_t data;
} WAVContext;
}
return 0;
}
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
/* return the size of the found tag */
/* XXX: > 2GB ? */
wav_read_seek,
};
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static AVOutputFormat wav_oformat = {
"wav",
"wav format",
wav_write_packet,
wav_write_trailer,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
int ff_wav_init(void)
{
av_register_input_format(&wav_iformat);
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
av_register_output_format(&wav_oformat);
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
return 0;
}
#define Y4M_FRAME_MAGIC "FRAME"
#define Y4M_LINE_MAX 256
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
static int yuv4_generate_header(AVFormatContext *s, char* buf)
{
yuv4_write_trailer,
.flags = AVFMT_RAWPICTURE,
};
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
/* Header size increased to allow room for optional flags */
#define MAX_YUV4_HEADER 80
int yuv4mpeg_init(void)
{
av_register_input_format(&yuv4mpegpipe_iformat);
-#ifdef CONFIG_ENCODERS
+#ifdef CONFIG_MUXERS
av_register_output_format(&yuv4mpegpipe_oformat);
-#endif //CONFIG_ENCODERS
+#endif //CONFIG_MUXERS
return 0;
}