aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pnm.c
diff options
context:
space:
mode:
authorRoine Gustafsson <roine@users.sourceforge.net>2005-05-10 20:39:11 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-05-10 20:39:11 +0000
commit983ea0bc870abf651531d04f294e975cf837b8c2 (patch)
treeb8b183b7747fb92b9ab7870129ddb0ecb1a956ba /libavcodec/pnm.c
parent33f725723f525357861abb4b3be8de250b6a7393 (diff)
downloadffmpeg-983ea0bc870abf651531d04f294e975cf837b8c2.tar.gz
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
Diffstat (limited to 'libavcodec/pnm.c')
-rw-r--r--libavcodec/pnm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/pnm.c b/libavcodec/pnm.c
index 3751d114aa..30a6570169 100644
--- a/libavcodec/pnm.c
+++ b/libavcodec/pnm.c
@@ -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