mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/mpeg12enc: Reindentation
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
bf5bfcdbd3
commit
3de3d2f5e2
@ -1037,14 +1037,10 @@ void ff_mpeg1_encode_mb(MpegEncContext *s, int16_t block[8][64],
|
||||
|
||||
static av_cold void mpeg12_encode_init_static(void)
|
||||
{
|
||||
int f_code;
|
||||
int mv;
|
||||
int i;
|
||||
|
||||
ff_rl_init(&ff_rl_mpeg1, ff_mpeg12_static_rl_table_store[0]);
|
||||
ff_rl_init(&ff_rl_mpeg2, ff_mpeg12_static_rl_table_store[1]);
|
||||
|
||||
for (i = 0; i < 64; i++) {
|
||||
for (int i = 0; i < 64; i++) {
|
||||
mpeg1_max_level[0][i] = ff_rl_mpeg1.max_level[0][i];
|
||||
mpeg1_index_run[0][i] = ff_rl_mpeg1.index_run[0][i];
|
||||
}
|
||||
@ -1053,7 +1049,7 @@ static av_cold void mpeg12_encode_init_static(void)
|
||||
init_uni_ac_vlc(&ff_rl_mpeg2, uni_mpeg2_ac_vlc_len);
|
||||
|
||||
/* build unified dc encoding tables */
|
||||
for (i = -255; i < 256; i++) {
|
||||
for (int i = -255; i < 256; i++) {
|
||||
int adiff, index;
|
||||
int bits, code;
|
||||
int diff = i;
|
||||
@ -1074,8 +1070,8 @@ static av_cold void mpeg12_encode_init_static(void)
|
||||
mpeg1_chr_dc_uni[i + 255] = bits + (code << 8);
|
||||
}
|
||||
|
||||
for (f_code = 1; f_code <= MAX_FCODE; f_code++)
|
||||
for (mv = -MAX_DMV; mv <= MAX_DMV; mv++) {
|
||||
for (int f_code = 1; f_code <= MAX_FCODE; f_code++)
|
||||
for (int mv = -MAX_DMV; mv <= MAX_DMV; mv++) {
|
||||
int len;
|
||||
|
||||
if (mv == 0) {
|
||||
@ -1102,8 +1098,8 @@ static av_cold void mpeg12_encode_init_static(void)
|
||||
}
|
||||
|
||||
|
||||
for (f_code = MAX_FCODE; f_code > 0; f_code--)
|
||||
for (mv = -(8 << f_code); mv < (8 << f_code); mv++)
|
||||
for (int f_code = MAX_FCODE; f_code > 0; f_code--)
|
||||
for (int mv = -(8 << f_code); mv < (8 << f_code); mv++)
|
||||
fcode_tab[mv + MAX_MV] = f_code;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user