[FFmpeg-cvslog] r20937 - trunk/libavcodec/h263.c
diego
subversion
Sun Dec 27 15:28:43 CET 2009
Author: diego
Date: Sun Dec 27 15:28:43 2009
New Revision: 20937
Log:
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.
Modified:
trunk/libavcodec/h263.c
Modified: trunk/libavcodec/h263.c
==============================================================================
--- trunk/libavcodec/h263.c Sun Dec 27 15:07:21 2009 (r20936)
+++ trunk/libavcodec/h263.c Sun Dec 27 15:28:43 2009 (r20937)
@@ -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(MpegEn
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];
More information about the ffmpeg-cvslog
mailing list