Mercurial > libavcodec.hg
changeset 2661:b2846918585c libavcodec
a few #ifdef CONFIG_X_ENCODER, patch by (Roine Gustafsson <roine users.sourceforge net]
author | michael |
---|---|
date | Tue, 10 May 2005 20:39:11 +0000 |
parents | e26dc8cf7069 |
children | 2fe9599170f6 |
files | dv.c mpegaudio.c png.c pnm.c raw.c |
diffstat | 5 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dv.c Tue May 10 19:54:38 2005 +0000 +++ b/dv.c Tue May 10 20:39:11 2005 +0000 @@ -942,6 +942,7 @@ return s->sys->frame_size; } +#ifdef CONFIG_DVVIDEO_ENCODER AVCodec dvvideo_encoder = { "dvvideo", CODEC_TYPE_VIDEO, @@ -954,6 +955,7 @@ CODEC_CAP_DR1, NULL }; +#endif // CONFIG_DVVIDEO_ENCODER AVCodec dvvideo_decoder = { "dvvideo",
--- a/mpegaudio.c Tue May 10 19:54:38 2005 +0000 +++ b/mpegaudio.c Tue May 10 20:39:11 2005 +0000 @@ -785,6 +785,7 @@ return 0; } +#ifdef CONFIG_MP2_ENCODER AVCodec mp2_encoder = { "mp2", CODEC_TYPE_AUDIO, @@ -795,5 +796,6 @@ MPA_encode_close, NULL, }; +#endif // CONFIG_MP2_ENCODER #undef FIX
--- a/png.c Tue May 10 19:54:38 2005 +0000 +++ b/png.c Tue May 10 20:39:11 2005 +0000 @@ -934,6 +934,7 @@ NULL }; +#ifdef CONFIG_PNG_ENCODER AVCodec png_encoder = { "png", CODEC_TYPE_VIDEO, @@ -944,4 +945,5 @@ 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
--- a/pnm.c Tue May 10 19:54:38 2005 +0000 +++ b/pnm.c Tue May 10 20:39:11 2005 +0000 @@ -517,6 +517,7 @@ ff_parse_close, }; +#ifdef CONFIG_PGM_ENCODER AVCodec pgm_encoder = { "pgm", CODEC_TYPE_VIDEO, @@ -528,7 +529,9 @@ 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 @@ 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 @@ 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 @@ 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 @@ pnm_decode_frame, .pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGBA32, PIX_FMT_GRAY8, PIX_FMT_MONOWHITE, -1}, }; +#endif // CONFIG_PAM_ENCODER
--- a/raw.c Tue May 10 19:54:38 2005 +0000 +++ b/raw.c Tue May 10 20:39:11 2005 +0000 @@ -172,6 +172,7 @@ avctx->height, frame, buf_size); } +#ifdef CONFIG_RAWVIDEO_ENCODER AVCodec rawvideo_encoder = { "rawvideo", CODEC_TYPE_VIDEO, @@ -180,6 +181,7 @@ raw_init_encoder, raw_encode, }; +#endif // CONFIG_RAWVIDEO_ENCODER AVCodec rawvideo_decoder = { "rawvideo",