Exemplo n.º 1
0
        internal void iteration_finish_one(LameInternalFlags gfc, int gr, int ch)
        {
            var l3_side = gfc.l3_side;

            var cod_info = l3_side.tt[gr][ch];

            tk.best_scalefac_store(gfc, gr, ch, l3_side);
            if (gfc.use_best_huffman == 1)
            {
                tk.best_huffman_divide(gfc, cod_info);
            }

            rv.ResvAdjust(gfc, cod_info);
        }
Exemplo n.º 2
0
        private int reduce_bit_usage(LameInternalFlags gfc, int gr, int ch)
        {
            var cod_info = gfc.l3_side.tt[gr][ch];

            // try some better scalefac storage
            tak.best_scalefac_store(gfc, gr, ch, gfc.l3_side);

            // best huffman_divide may save some bits too
            if (gfc.use_best_huffman == 1)
            {
                tak.best_huffman_divide(gfc, cod_info);
            }

            return(cod_info.part2_3_length + cod_info.part2_length);
        }