diff options
author | Anton Khirnov | 2011-10-18 19:53:25 +0200 |
---|---|---|
committer | Anton Khirnov | 2011-10-23 14:13:40 +0200 |
commit | acffe45732d5afc722c97a2736b62f84422c0778 (patch) | |
tree | a31457ca8cc37b142ce5269a4946432e0c426eeb /libavcodec | |
parent | e71ebb19722bd2b46831d0ec311b757a56340617 (diff) |
mpegvideo: remove some unused variables from MpegEncContext.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/arm/asm-offsets.h | 12 | ||||
-rw-r--r-- | libavcodec/h264.c | 1 | ||||
-rw-r--r-- | libavcodec/mpeg4videoenc.c | 1 | ||||
-rw-r--r-- | libavcodec/mpegvideo.h | 5 |
4 files changed, 6 insertions, 13 deletions
diff --git a/libavcodec/arm/asm-offsets.h b/libavcodec/arm/asm-offsets.h index 4864a9bdd9..89994569c1 100644 --- a/libavcodec/arm/asm-offsets.h +++ b/libavcodec/arm/asm-offsets.h @@ -29,11 +29,11 @@ #endif /* MpegEncContext */ -#define Y_DC_SCALE 0xac -#define C_DC_SCALE 0xb0 -#define AC_PRED 0xb4 -#define BLOCK_LAST_INDEX 0xb8 -#define H263_AIC 0xe8 -#define INTER_SCANTAB_RASTER_END 0x130 +#define Y_DC_SCALE 0xa8 +#define C_DC_SCALE 0xac +#define AC_PRED 0xb0 +#define BLOCK_LAST_INDEX 0xb4 +#define H263_AIC 0xe4 +#define INTER_SCANTAB_RASTER_END 0x12c #endif /* AVCODEC_ARM_ASM_OFFSETS_H */ diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 3f711c6ec7..880b5b7b58 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1033,7 +1033,6 @@ static av_cold void common_init(H264Context *h){ h->dequant_coeff_pps= -1; s->unrestricted_mv=1; - s->decode=1; //FIXME dsputil_init(&s->dsp, s->avctx); // needed so that idct permutation is known early diff --git a/libavcodec/mpeg4videoenc.c b/libavcodec/mpeg4videoenc.c index 2f3e1d7061..cbcd3ccf57 100644 --- a/libavcodec/mpeg4videoenc.c +++ b/libavcodec/mpeg4videoenc.c @@ -1203,7 +1203,6 @@ static av_cold int encode_init(AVCodecContext *avctx) s->inter_ac_vlc_length = uni_mpeg4_inter_rl_len; s->inter_ac_vlc_last_length= uni_mpeg4_inter_rl_len + 128*64; s->luma_dc_vlc_length= uni_DCtab_lum_len; - s->chroma_dc_vlc_length= uni_DCtab_chrom_len; s->ac_esc_length= 7+2+1+6+1+12+1; s->y_dc_scale_table= ff_mpeg4_y_dc_scale_table; s->c_dc_scale_table= ff_mpeg4_c_dc_scale_table; diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index f1627c463b..f00914c82c 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -234,7 +234,6 @@ typedef struct MpegEncContext { int coded_picture_number; ///< used to set pic->coded_picture_number, should not be used for/by anything else int picture_number; //FIXME remove, unclear definition int picture_in_gop_number; ///< 0-> first pic in gop, ... - int b_frames_since_non_b; ///< used for encoding, relative to not yet reordered input int mb_width, mb_height; ///< number of MBs horizontally & vertically int mb_stride; ///< mb_width+1 used for some arrays to allow simple addressing of left & top MBs without sig11 int b8_stride; ///< 2*mb_width+1 used for some 8x8 block arrays to allow simple addressing @@ -303,7 +302,6 @@ typedef struct MpegEncContext { int last_dc[3]; ///< last DC values for MPEG1 int16_t *dc_val_base; int16_t *dc_val[3]; ///< used for mpeg4 DC prediction, all 3 arrays must be continuous - int16_t dc_cache[4*5]; const uint8_t *y_dc_scale_table; ///< qscale -> y_dc_scale table const uint8_t *c_dc_scale_table; ///< qscale -> c_dc_scale table const uint8_t *chroma_qscale_table; ///< qscale -> chroma_qscale (h263) @@ -343,7 +341,6 @@ typedef struct MpegEncContext { /* motion compensation */ int unrestricted_mv; ///< mv can point outside of the coded picture int h263_long_vectors; ///< use horrible h263v1 long vector mode - int decode; ///< if 0 then decoding will be skipped (for encoding b frames for example) DSPContext dsp; ///< pointers for accelerated dsp functions int f_code; ///< forward MV resolution @@ -438,7 +435,6 @@ typedef struct MpegEncContext { uint8_t *inter_ac_vlc_length; uint8_t *inter_ac_vlc_last_length; uint8_t *luma_dc_vlc_length; - uint8_t *chroma_dc_vlc_length; #define UNI_AC_ENC_INDEX(run,level) ((run)*128 + (level)) int coded_score[8]; @@ -458,7 +454,6 @@ typedef struct MpegEncContext { void *opaque; ///< private data for the user /* bit rate control */ - int64_t wanted_bits; int64_t total_bits; int frame_bits; ///< bits used for the current frame int next_lambda; ///< next lambda used for retrying to encode a frame |