summaryrefslogtreecommitdiff
path: root/libavcodec/svq1.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-09-27 19:54:07 +0000
committerMåns Rullgård <mans@mansr.com>2006-09-27 19:54:07 +0000
commit62bb489b13c1f7967946bf538492dce0af1150fe (patch)
treef33797575ec10e2efe0b5b94b4251498fedd62e1 /libavcodec/svq1.c
parent191e8ca75279073699e0c0f25128b2b2088d1cbb (diff)
add some #ifdef CONFIG_ENCODERS/DECODERS
Originally committed as revision 6356 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/svq1.c')
-rw-r--r--libavcodec/svq1.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/svq1.c b/libavcodec/svq1.c
index caa6fcb4ef..4f6a53fda4 100644
--- a/libavcodec/svq1.c
+++ b/libavcodec/svq1.c
@@ -617,6 +617,7 @@ static uint16_t svq1_component_checksum (uint16_t *pixels, int pitch,
}
#endif
+#ifdef CONFIG_DECODERS
static void svq1_parse_string (GetBitContext *bitbuf, uint8_t *out) {
uint8_t seed;
int i;
@@ -879,7 +880,9 @@ static int svq1_decode_end(AVCodecContext *avctx)
MPV_common_end(s);
return 0;
}
+#endif /* CONFIG_DECODERS */
+#ifdef CONFIG_ENCODERS
static void svq1_write_header(SVQ1Context *s, int frame_type)
{
int i;
@@ -1081,7 +1084,6 @@ static int encode_block(SVQ1Context *s, uint8_t *src, uint8_t *ref, uint8_t *dec
return best_score;
}
-#ifdef CONFIG_ENCODERS
static int svq1_encode_plane(SVQ1Context *s, int plane, unsigned char *src_plane, unsigned char *ref_plane, unsigned char *decoded_plane,
int width, int height, int src_stride, int stride)
@@ -1395,6 +1397,7 @@ static int svq1_encode_end(AVCodecContext *avctx)
#endif //CONFIG_ENCODERS
+#ifdef CONFIG_DECODERS
AVCodec svq1_decoder = {
"svq1",
CODEC_TYPE_VIDEO,
@@ -1408,6 +1411,7 @@ AVCodec svq1_decoder = {
.flush= ff_mpeg_flush,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV410P, -1},
};
+#endif
#ifdef CONFIG_ENCODERS