mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/h264_cavlc: Reindent after the previous commit
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
b41e4f6187
commit
a581370f54
@ -324,8 +324,8 @@ static av_cold void init_cavlc_level_tab(void){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
av_cold void ff_h264_decode_init_vlc(void){
|
av_cold void ff_h264_decode_init_vlc(void)
|
||||||
int i;
|
{
|
||||||
int offset;
|
int offset;
|
||||||
|
|
||||||
chroma_dc_coeff_token_vlc.table = chroma_dc_coeff_token_vlc_table;
|
chroma_dc_coeff_token_vlc.table = chroma_dc_coeff_token_vlc_table;
|
||||||
@ -343,8 +343,8 @@ av_cold void ff_h264_decode_init_vlc(void){
|
|||||||
INIT_VLC_USE_NEW_STATIC);
|
INIT_VLC_USE_NEW_STATIC);
|
||||||
|
|
||||||
offset = 0;
|
offset = 0;
|
||||||
for(i=0; i<4; i++){
|
for (int i = 0; i < 4; i++) {
|
||||||
coeff_token_vlc[i].table = coeff_token_vlc_tables+offset;
|
coeff_token_vlc[i].table = coeff_token_vlc_tables + offset;
|
||||||
coeff_token_vlc[i].table_allocated = coeff_token_vlc_tables_size[i];
|
coeff_token_vlc[i].table_allocated = coeff_token_vlc_tables_size[i];
|
||||||
init_vlc(&coeff_token_vlc[i], COEFF_TOKEN_VLC_BITS, 4*17,
|
init_vlc(&coeff_token_vlc[i], COEFF_TOKEN_VLC_BITS, 4*17,
|
||||||
&coeff_token_len [i][0], 1, 1,
|
&coeff_token_len [i][0], 1, 1,
|
||||||
@ -359,46 +359,46 @@ av_cold void ff_h264_decode_init_vlc(void){
|
|||||||
*/
|
*/
|
||||||
av_assert0(offset == FF_ARRAY_ELEMS(coeff_token_vlc_tables));
|
av_assert0(offset == FF_ARRAY_ELEMS(coeff_token_vlc_tables));
|
||||||
|
|
||||||
for(i=0; i<3; i++){
|
for (int i = 0; i < 3; i++) {
|
||||||
chroma_dc_total_zeros_vlc[i+1].table = chroma_dc_total_zeros_vlc_tables[i];
|
chroma_dc_total_zeros_vlc[i + 1].table = chroma_dc_total_zeros_vlc_tables[i];
|
||||||
chroma_dc_total_zeros_vlc[i+1].table_allocated = chroma_dc_total_zeros_vlc_tables_size;
|
chroma_dc_total_zeros_vlc[i + 1].table_allocated = chroma_dc_total_zeros_vlc_tables_size;
|
||||||
init_vlc(&chroma_dc_total_zeros_vlc[i+1],
|
init_vlc(&chroma_dc_total_zeros_vlc[i + 1],
|
||||||
CHROMA_DC_TOTAL_ZEROS_VLC_BITS, 4,
|
CHROMA_DC_TOTAL_ZEROS_VLC_BITS, 4,
|
||||||
&chroma_dc_total_zeros_len [i][0], 1, 1,
|
&chroma_dc_total_zeros_len [i][0], 1, 1,
|
||||||
&chroma_dc_total_zeros_bits[i][0], 1, 1,
|
&chroma_dc_total_zeros_bits[i][0], 1, 1,
|
||||||
INIT_VLC_USE_NEW_STATIC);
|
INIT_VLC_USE_NEW_STATIC);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(i=0; i<7; i++){
|
for (int i = 0; i < 7; i++) {
|
||||||
chroma422_dc_total_zeros_vlc[i+1].table = chroma422_dc_total_zeros_vlc_tables[i];
|
chroma422_dc_total_zeros_vlc[i + 1].table = chroma422_dc_total_zeros_vlc_tables[i];
|
||||||
chroma422_dc_total_zeros_vlc[i+1].table_allocated = chroma422_dc_total_zeros_vlc_tables_size;
|
chroma422_dc_total_zeros_vlc[i + 1].table_allocated = chroma422_dc_total_zeros_vlc_tables_size;
|
||||||
init_vlc(&chroma422_dc_total_zeros_vlc[i+1],
|
init_vlc(&chroma422_dc_total_zeros_vlc[i + 1],
|
||||||
CHROMA422_DC_TOTAL_ZEROS_VLC_BITS, 8,
|
CHROMA422_DC_TOTAL_ZEROS_VLC_BITS, 8,
|
||||||
&chroma422_dc_total_zeros_len [i][0], 1, 1,
|
&chroma422_dc_total_zeros_len [i][0], 1, 1,
|
||||||
&chroma422_dc_total_zeros_bits[i][0], 1, 1,
|
&chroma422_dc_total_zeros_bits[i][0], 1, 1,
|
||||||
INIT_VLC_USE_NEW_STATIC);
|
INIT_VLC_USE_NEW_STATIC);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(i=0; i<15; i++){
|
for (int i = 0; i < 15; i++) {
|
||||||
total_zeros_vlc[i+1].table = total_zeros_vlc_tables[i];
|
total_zeros_vlc[i + 1].table = total_zeros_vlc_tables[i];
|
||||||
total_zeros_vlc[i+1].table_allocated = total_zeros_vlc_tables_size;
|
total_zeros_vlc[i + 1].table_allocated = total_zeros_vlc_tables_size;
|
||||||
init_vlc(&total_zeros_vlc[i+1],
|
init_vlc(&total_zeros_vlc[i + 1],
|
||||||
TOTAL_ZEROS_VLC_BITS, 16,
|
TOTAL_ZEROS_VLC_BITS, 16,
|
||||||
&total_zeros_len [i][0], 1, 1,
|
&total_zeros_len [i][0], 1, 1,
|
||||||
&total_zeros_bits[i][0], 1, 1,
|
&total_zeros_bits[i][0], 1, 1,
|
||||||
INIT_VLC_USE_NEW_STATIC);
|
INIT_VLC_USE_NEW_STATIC);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(i=0; i<6; i++){
|
for (int i = 0; i < 6; i++) {
|
||||||
run_vlc[i+1].table = run_vlc_tables[i];
|
run_vlc[i + 1].table = run_vlc_tables[i];
|
||||||
run_vlc[i+1].table_allocated = run_vlc_tables_size;
|
run_vlc[i + 1].table_allocated = run_vlc_tables_size;
|
||||||
init_vlc(&run_vlc[i+1],
|
init_vlc(&run_vlc[i + 1],
|
||||||
RUN_VLC_BITS, 7,
|
RUN_VLC_BITS, 7,
|
||||||
&run_len [i][0], 1, 1,
|
&run_len [i][0], 1, 1,
|
||||||
&run_bits[i][0], 1, 1,
|
&run_bits[i][0], 1, 1,
|
||||||
INIT_VLC_USE_NEW_STATIC);
|
INIT_VLC_USE_NEW_STATIC);
|
||||||
}
|
}
|
||||||
run7_vlc.table = run7_vlc_table,
|
run7_vlc.table = run7_vlc_table;
|
||||||
run7_vlc.table_allocated = run7_vlc_table_size;
|
run7_vlc.table_allocated = run7_vlc_table_size;
|
||||||
init_vlc(&run7_vlc, RUN7_VLC_BITS, 16,
|
init_vlc(&run7_vlc, RUN7_VLC_BITS, 16,
|
||||||
&run_len [6][0], 1, 1,
|
&run_len [6][0], 1, 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user