Mercurial > libavcodec.hg
diff ffv1.c @ 7782:6efb15a24e91 libavcodec
Replace generic CONFIG_ENCODERS preprocessor conditionals by more specific
CONFIG_FOO_ENCODER conditionals where appropriate.
author | diego |
---|---|
date | Wed, 03 Sep 2008 12:33:21 +0000 |
parents | d3a1ac3e227b |
children | 7a463923ecd1 |
line wrap: on
line diff
--- a/ffv1.c Wed Sep 03 04:45:01 2008 +0000 +++ b/ffv1.c Wed Sep 03 12:33:21 2008 +0000 @@ -350,7 +350,7 @@ return ret; } -#ifdef CONFIG_ENCODERS +#ifdef CONFIG_FFV1_ENCODER static inline int encode_line(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){ PlaneContext * const p= &s->plane[plane_index]; RangeCoder * const c= &s->c; @@ -524,7 +524,7 @@ for(i=0; i<5; i++) write_quant_table(c, f->quant_table[i]); } -#endif /* CONFIG_ENCODERS */ +#endif /* CONFIG_FFV1_ENCODER */ static av_cold int common_init(AVCodecContext *avctx){ FFV1Context *s = avctx->priv_data; @@ -543,7 +543,7 @@ return 0; } -#ifdef CONFIG_ENCODERS +#ifdef CONFIG_FFV1_ENCODER static av_cold int encode_init(AVCodecContext *avctx) { FFV1Context *s = avctx->priv_data; @@ -607,7 +607,7 @@ return 0; } -#endif /* CONFIG_ENCODERS */ +#endif /* CONFIG_FFV1_ENCODER */ static void clear_state(FFV1Context *f){ @@ -632,7 +632,7 @@ } } -#ifdef CONFIG_ENCODERS +#ifdef CONFIG_FFV1_ENCODER static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data){ FFV1Context *f = avctx->priv_data; RangeCoder * const c= &f->c; @@ -688,7 +688,7 @@ return used_count + (put_bits_count(&f->pb)+7)/8; } } -#endif /* CONFIG_ENCODERS */ +#endif /* CONFIG_FFV1_ENCODER */ static av_cold int common_end(AVCodecContext *avctx){ FFV1Context *s = avctx->priv_data; @@ -1025,7 +1025,7 @@ .long_name= NULL_IF_CONFIG_SMALL("FFmpeg codec #1"), }; -#ifdef CONFIG_ENCODERS +#ifdef CONFIG_FFV1_ENCODER AVCodec ffv1_encoder = { "ffv1", CODEC_TYPE_VIDEO,