Mercurial > libavcodec.hg
comparison twinvq.c @ 10500:6d653bb57c58 libavcodec
Use enum FrameType as parameter to construct_perm_table().
author | cehoyos |
---|---|
date | Sun, 08 Nov 2009 23:37:59 +0000 |
parents | 38ab367d4231 |
children | f2f4d6fe3f6d |
comparison
equal
deleted
inserted
replaced
10499:c5c25c9b6644 | 10500:6d653bb57c58 |
---|---|
1012 mtab->ppc_period_bit); | 1012 mtab->ppc_period_bit); |
1013 | 1013 |
1014 int bsize_no_main_cb[3]; | 1014 int bsize_no_main_cb[3]; |
1015 int bse_bits[3]; | 1015 int bse_bits[3]; |
1016 int i; | 1016 int i; |
1017 enum FrameType frametype; | |
1017 | 1018 |
1018 for (i = 0; i < 3; i++) | 1019 for (i = 0; i < 3; i++) |
1019 // +1 for history usage switch | 1020 // +1 for history usage switch |
1020 bse_bits[i] = n_ch * | 1021 bse_bits[i] = n_ch * |
1021 (mtab->fmode[i].bark_n_coef * mtab->fmode[i].bark_n_bit + 1); | 1022 (mtab->fmode[i].bark_n_coef * mtab->fmode[i].bark_n_bit + 1); |
1060 tctx->length[i][0] = rounded_up; | 1061 tctx->length[i][0] = rounded_up; |
1061 tctx->length[i][1] = rounded_down; | 1062 tctx->length[i][1] = rounded_down; |
1062 tctx->length_change[i] = num_rounded_up; | 1063 tctx->length_change[i] = num_rounded_up; |
1063 } | 1064 } |
1064 | 1065 |
1065 for (i = 0; i < 4; i++) | 1066 for (frametype = FT_SHORT; frametype <= FT_PPC; frametype++) |
1066 construct_perm_table(tctx, i); | 1067 construct_perm_table(tctx, frametype); |
1067 } | 1068 } |
1068 | 1069 |
1069 static av_cold int twin_decode_init(AVCodecContext *avctx) | 1070 static av_cold int twin_decode_init(AVCodecContext *avctx) |
1070 { | 1071 { |
1071 TwinContext *tctx = avctx->priv_data; | 1072 TwinContext *tctx = avctx->priv_data; |