changeset 10721:07c893df0334 libavcodec

cosmetics: Move a bunch of forward declarations below a CONFIG_ENCODERS #ifdef. This avoids a bunch of "¡Æfoo¡Ç declared ¡Æstatic¡Ç but never defined" warnings when compiling with encoders disabled.
author diego
date Sun, 27 Dec 2009 14:28:43 +0000
parents bcc62edd9b41
children de2a496db0e5
files h263.c
diffstat 1 files changed, 14 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Sun Dec 27 14:07:21 2009 +0000
+++ b/h263.c	Sun Dec 27 14:28:43 2009 +0000
@@ -56,15 +56,6 @@
 #define H263_MBTYPE_B_VLC_BITS 6
 #define CBPC_B_VLC_BITS 3
 
-static void h263_encode_block(MpegEncContext * s, DCTELEM * block,
-                              int n);
-static void h263p_encode_umotion(MpegEncContext * s, int val);
-static inline void mpeg4_encode_block(MpegEncContext * s, DCTELEM * block,
-                               int n, int dc, uint8_t *scan_table,
-                               PutBitContext *dc_pb, PutBitContext *ac_pb);
-static int mpeg4_get_block_length(MpegEncContext * s, DCTELEM * block, int n, int intra_dc,
-                                  uint8_t *scan_table);
-
 static int h263_decode_motion(MpegEncContext * s, int pred, int fcode);
 static int h263p_decode_umotion(MpegEncContext * s, int pred);
 static int h263_decode_block(MpegEncContext * s, DCTELEM * block,
@@ -73,14 +64,24 @@
 static inline int mpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
                               int n, int coded, int intra, int rvlc);
 
-static int h263_pred_dc(MpegEncContext * s, int n, int16_t **dc_val_ptr);
-static void mpeg4_encode_visual_object_header(MpegEncContext * s);
-static void mpeg4_encode_vol_header(MpegEncContext * s, int vo_number, int vol_number);
-
 static void mpeg4_decode_sprite_trajectory(MpegEncContext * s, GetBitContext *gb);
 static inline int ff_mpeg4_pred_dc(MpegEncContext * s, int n, int level, int *dir_ptr, int encoding);
 
 #if CONFIG_ENCODERS
+static void h263_encode_block(MpegEncContext *s, DCTELEM *block, int n);
+static void h263p_encode_umotion(MpegEncContext *s, int val);
+static int h263_pred_dc(MpegEncContext *s, int n, int16_t **dc_val_ptr);
+
+static void mpeg4_encode_visual_object_header(MpegEncContext *s);
+static void mpeg4_encode_vol_header(MpegEncContext *s, int vo_number,
+                                    int vol_number);
+static inline void mpeg4_encode_block(MpegEncContext *s, DCTELEM *block,
+                                      int n, int dc, uint8_t *scan_table,
+                                      PutBitContext *dc_pb,
+                                      PutBitContext *ac_pb);
+static int mpeg4_get_block_length(MpegEncContext *s, DCTELEM *block, int n,
+                                  int intra_dc, uint8_t *scan_table);
+
 static uint8_t uni_DCtab_lum_len[512];
 static uint8_t uni_DCtab_chrom_len[512];
 static uint16_t uni_DCtab_lum_bits[512];