diff asv1.c @ 1325:1cbc2380d172 libavcodec

CONFIG_ENCODERS cleanup
author michaelni
date Sun, 22 Jun 2003 11:08:22 +0000
parents f78341ab5fba
children 46d3fa8501cd
line wrap: on
line diff
--- a/asv1.c	Sat Jun 21 01:11:31 2003 +0000
+++ b/asv1.c	Sun Jun 22 11:08:22 2003 +0000
@@ -95,8 +95,6 @@
     else        return code - 3;
 }
 
-#ifdef CONFIG_ENCODERS
-
 static inline void put_level(PutBitContext *pb, int level){
     unsigned int index= level + 3;
 
@@ -107,8 +105,6 @@
     }
 }
 
-#endif //CONFIG_ENCODERS
-
 static inline int decode_block(ASV1Context *a, DCTELEM block[64]){
     int i;
 
@@ -134,8 +130,6 @@
     return 0;
 }
 
-#ifdef CONFIG_ENCODERS
-
 static inline void encode_block(ASV1Context *a, DCTELEM block[64]){
     int i;
     int nc_count=0;
@@ -169,8 +163,6 @@
     put_bits(&a->pb, ccp_tab[16][1], ccp_tab[16][0]);
 }
 
-#endif //CONFIG_ENCODERS
-
 static inline int decode_mb(ASV1Context *a, DCTELEM block[6][64]){
     int i;
 
@@ -183,8 +175,6 @@
     return 0;
 }
 
-#ifdef CONFIG_ENCODERS
-
 static inline void encode_mb(ASV1Context *a, DCTELEM block[6][64]){
     int i;
 
@@ -192,8 +182,6 @@
         encode_block(a, block[i]);
     }
 }
-        
-#endif //CONFIG_ENCODERS
 
 static inline void idct_put(ASV1Context *a, int mb_x, int mb_y){
     DCTELEM (*block)[64]= a->block;
@@ -214,8 +202,6 @@
     }
 }
 
-#ifdef CONFIG_ENCODERS
-
 static inline void dct_get(ASV1Context *a, int mb_x, int mb_y){
     DCTELEM (*block)[64]= a->block;
     int linesize= a->picture.linesize[0];
@@ -240,8 +226,6 @@
     }
 }
 
-#endif //CONFIG_ENCODERS
-
 static int decode_frame(AVCodecContext *avctx, 
                         void *data, int *data_size,
                         uint8_t *buf, int buf_size)
@@ -324,8 +308,6 @@
     return (get_bits_count(&a->gb)+31)/32*4;
 }
 
-#ifdef CONFIG_ENCODERS
-
 static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data){
     ASV1Context * const a = avctx->priv_data;
     AVFrame *pict = data;
@@ -374,8 +356,6 @@
     return size*4;
 }
 
-#endif //CONFIG_ENCODERS
-
 static void common_init(AVCodecContext *avctx){
     ASV1Context * const a = avctx->priv_data;
 
@@ -416,8 +396,6 @@
     return 0;
 }
 
-#ifdef CONFIG_ENCODERS
-
 static int encode_init(AVCodecContext *avctx){
     ASV1Context * const a = avctx->priv_data;
     int i;
@@ -441,8 +419,6 @@
     return 0;
 }
 
-#endif //CONFIG_ENCODERS
-
 static int decode_end(AVCodecContext *avctx){
     ASV1Context * const a = avctx->priv_data;