summaryrefslogtreecommitdiff
path: root/libavcodec/huffyuv.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-09-02 23:25:57 +0000
committerDiego Biurrun <diego@biurrun.de>2008-09-02 23:25:57 +0000
commit2a43a093edd8e717cc14d3cf14a8562f7f711f02 (patch)
tree59dc488953ba5ec2ea06299af99a0923f04c5b99 /libavcodec/huffyuv.c
parentab210908692a979834c59661c6d4ed0fff2370f5 (diff)
Replace generic CONFIG_DECODERS preprocessor conditionals by more specific
CONFIG_FOO_DECODER conditionals where appropriate. Originally committed as revision 15162 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/huffyuv.c')
-rw-r--r--libavcodec/huffyuv.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c
index 83b1053fad..b262cd66f1 100644
--- a/libavcodec/huffyuv.c
+++ b/libavcodec/huffyuv.c
@@ -477,7 +477,7 @@ static int common_init(AVCodecContext *avctx){
return 0;
}
-#ifdef CONFIG_DECODERS
+#if defined(CONFIG_HUFFYUV_DECODER) || defined(CONFIG_FFVHUFF_DECODER)
static av_cold int decode_init(AVCodecContext *avctx)
{
HYuvContext *s = avctx->priv_data;
@@ -573,7 +573,7 @@ s->bgr32=1;
return 0;
}
-#endif
+#endif /* defined(CONFIG_HUFFYUV_DECODER) || defined(CONFIG_FFVHUFF_DECODER) */
#ifdef CONFIG_ENCODERS
static int store_table(HYuvContext *s, uint8_t *len, uint8_t *buf){
@@ -931,7 +931,7 @@ static int encode_bgr_bitstream(HYuvContext *s, int count){
return 0;
}
-#ifdef CONFIG_DECODERS
+#if defined(CONFIG_HUFFYUV_DECODER) || defined(CONFIG_FFVHUFF_DECODER)
static void draw_slice(HYuvContext *s, int y){
int h, cy;
int offset[4];
@@ -1198,7 +1198,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const
return (get_bits_count(&s->gb)+31)/32*4 + table_size;
}
-#endif
+#endif /* defined(CONFIG_HUFFYUV_DECODER) || defined(CONFIG_FFVHUFF_DECODER) */
static int common_end(HYuvContext *s){
int i;
@@ -1209,7 +1209,7 @@ static int common_end(HYuvContext *s){
return 0;
}
-#ifdef CONFIG_DECODERS
+#if defined(CONFIG_HUFFYUV_DECODER) || defined(CONFIG_FFVHUFF_DECODER)
static av_cold int decode_end(AVCodecContext *avctx)
{
HYuvContext *s = avctx->priv_data;
@@ -1224,7 +1224,7 @@ static av_cold int decode_end(AVCodecContext *avctx)
return 0;
}
-#endif
+#endif /* defined(CONFIG_HUFFYUV_DECODER) || defined(CONFIG_FFVHUFF_DECODER) */
#ifdef CONFIG_ENCODERS
static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data){
@@ -1433,7 +1433,7 @@ static av_cold int encode_end(AVCodecContext *avctx)
}
#endif /* CONFIG_ENCODERS */
-#ifdef CONFIG_DECODERS
+#ifdef CONFIG_HUFFYUV_DECODER
AVCodec huffyuv_decoder = {
"huffyuv",
CODEC_TYPE_VIDEO,
@@ -1447,7 +1447,9 @@ AVCodec huffyuv_decoder = {
NULL,
.long_name = NULL_IF_CONFIG_SMALL("Huffyuv / HuffYUV"),
};
+#endif
+#ifdef CONFIG_FFVHUFF_DECODER
AVCodec ffvhuff_decoder = {
"ffvhuff",
CODEC_TYPE_VIDEO,