diff options
author | Diego Biurrun <diego@biurrun.de> | 2009-12-27 17:28:43 +0300 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-12-27 17:28:43 +0300 |
commit | 5ddd075daf15f631ce6607701e6925bea907ca1e (patch) | |
tree | ad795937da3a22540247c7480bfedb1d84c3fda0 /libavcodec/h263.c | |
parent | da937668583afbb7af9b8fa0713797226eda485c (diff) |
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.
Originally committed as revision 20937 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r-- | libavcodec/h263.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index de76792139..4f90e047a2 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -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_dc(MpegEncContext * s, int n, int *dir_ptr); 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]; |