Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
acffe457
Commit
acffe457
authored
Oct 18, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegvideo: remove some unused variables from MpegEncContext.
parent
e71ebb19
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
13 deletions
+6
-13
asm-offsets.h
libavcodec/arm/asm-offsets.h
+6
-6
h264.c
libavcodec/h264.c
+0
-1
mpeg4videoenc.c
libavcodec/mpeg4videoenc.c
+0
-1
mpegvideo.h
libavcodec/mpegvideo.h
+0
-5
No files found.
libavcodec/arm/asm-offsets.h
View file @
acffe457
...
...
@@ -29,11 +29,11 @@
#endif
/* MpegEncContext */
#define Y_DC_SCALE 0xa
c
#define C_DC_SCALE 0x
b0
#define AC_PRED 0xb
4
#define BLOCK_LAST_INDEX 0xb
8
#define H263_AIC 0xe
8
#define INTER_SCANTAB_RASTER_END 0x1
30
#define Y_DC_SCALE 0xa
8
#define C_DC_SCALE 0x
ac
#define AC_PRED 0xb
0
#define BLOCK_LAST_INDEX 0xb
4
#define H263_AIC 0xe
4
#define INTER_SCANTAB_RASTER_END 0x1
2c
#endif
/* AVCODEC_ARM_ASM_OFFSETS_H */
libavcodec/h264.c
View file @
acffe457
...
...
@@ -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
...
...
libavcodec/mpeg4videoenc.c
View file @
acffe457
...
...
@@ -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
;
...
...
libavcodec/mpegvideo.h
View file @
acffe457
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment