a few #ifdef CONFIG_X_ENCODER, patch by (Roine Gustafsson <roine users.sourceforge net]

Originally committed as revision 4213 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Roine Gustafsson 2005-05-10 20:39:11 +00:00 committed by Michael Niedermayer
parent 33f725723f
commit 983ea0bc87
5 changed files with 18 additions and 0 deletions

View File

@ -942,6 +942,7 @@ static int dvvideo_encode_frame(AVCodecContext *c, uint8_t *buf, int buf_size,
return s->sys->frame_size;
}
#ifdef CONFIG_DVVIDEO_ENCODER
AVCodec dvvideo_encoder = {
"dvvideo",
CODEC_TYPE_VIDEO,
@ -954,6 +955,7 @@ AVCodec dvvideo_encoder = {
CODEC_CAP_DR1,
NULL
};
#endif // CONFIG_DVVIDEO_ENCODER
AVCodec dvvideo_decoder = {
"dvvideo",

View File

@ -785,6 +785,7 @@ static int MPA_encode_close(AVCodecContext *avctx)
return 0;
}
#ifdef CONFIG_MP2_ENCODER
AVCodec mp2_encoder = {
"mp2",
CODEC_TYPE_AUDIO,
@ -795,5 +796,6 @@ AVCodec mp2_encoder = {
MPA_encode_close,
NULL,
};
#endif // CONFIG_MP2_ENCODER
#undef FIX

View File

@ -934,6 +934,7 @@ AVCodec png_decoder = {
NULL
};
#ifdef CONFIG_PNG_ENCODER
AVCodec png_encoder = {
"png",
CODEC_TYPE_VIDEO,
@ -944,4 +945,5 @@ AVCodec png_encoder = {
NULL, //encode_end,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGBA32, PIX_FMT_PAL8, PIX_FMT_GRAY8, PIX_FMT_MONOBLACK, -1},
};
#endif // CONFIG_PNG_ENCODER
#endif

View File

@ -517,6 +517,7 @@ AVCodecParser pnm_parser = {
ff_parse_close,
};
#ifdef CONFIG_PGM_ENCODER
AVCodec pgm_encoder = {
"pgm",
CODEC_TYPE_VIDEO,
@ -528,7 +529,9 @@ AVCodec pgm_encoder = {
pnm_decode_frame,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_GRAY8, -1},
};
#endif // CONFIG_PGM_ENCODER
#ifdef CONFIG_PGMYUV_ENCODER
AVCodec pgmyuv_encoder = {
"pgmyuv",
CODEC_TYPE_VIDEO,
@ -540,7 +543,9 @@ AVCodec pgmyuv_encoder = {
pnm_decode_frame,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
};
#endif // CONFIG_PGMYUV_ENCODER
#ifdef CONFIG_PPM_ENCODER
AVCodec ppm_encoder = {
"ppm",
CODEC_TYPE_VIDEO,
@ -552,7 +557,9 @@ AVCodec ppm_encoder = {
pnm_decode_frame,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, -1},
};
#endif // CONFIG_PPM_ENCODER
#ifdef CONFIG_PBM_ENCODER
AVCodec pbm_encoder = {
"pbm",
CODEC_TYPE_VIDEO,
@ -564,7 +571,9 @@ AVCodec pbm_encoder = {
pnm_decode_frame,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_MONOWHITE, -1},
};
#endif // CONFIG_PBM_ENCODER
#ifdef CONFIG_PAM_ENCODER
AVCodec pam_encoder = {
"pam",
CODEC_TYPE_VIDEO,
@ -576,3 +585,4 @@ AVCodec pam_encoder = {
pnm_decode_frame,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGBA32, PIX_FMT_GRAY8, PIX_FMT_MONOWHITE, -1},
};
#endif // CONFIG_PAM_ENCODER

View File

@ -172,6 +172,7 @@ static int raw_encode(AVCodecContext *avctx,
avctx->height, frame, buf_size);
}
#ifdef CONFIG_RAWVIDEO_ENCODER
AVCodec rawvideo_encoder = {
"rawvideo",
CODEC_TYPE_VIDEO,
@ -180,6 +181,7 @@ AVCodec rawvideo_encoder = {
raw_init_encoder,
raw_encode,
};
#endif // CONFIG_RAWVIDEO_ENCODER
AVCodec rawvideo_decoder = {
"rawvideo",