Lines Matching defs:cfg
229 SessionConfig_t const *const cfg = &gfc->cfg;
252 if (cfg->samplerate_out <= 8000) {
282 cod_info->sfb_lmax = cfg->mode_gr * 2 + 4;
284 if (cfg->samplerate_out <= 8000) {
343 if (cfg->vbr != vbr_mt && cfg->vbr != vbr_mtrh && cfg->vbr != vbr_abr && cfg->vbr != vbr_off) {
724 SessionConfig_t const *const cfg = &gfc->cfg;
743 noise_shaping_amp = cfg->noise_shaping_amp;
783 if (!gfc->sv_qnt.pseudohalf[sfb] && cfg->noise_shaping_amp == 2)
793 if (cfg->noise_shaping_amp == 2)
944 SessionConfig_t const *const cfg = &gfc->cfg;
970 if (cfg->noise_shaping > 1) {
977 if (cod_info->block_type == SHORT_TYPE && cfg->subblock_gain > 0) {
1015 SessionConfig_t const *const cfg = &gfc->cfg;
1031 if (!cfg->noise_shaping)
1045 /* if (cfg->vbr == vbr_rh || cfg->vbr == vbr_mtrh) */
1129 better = cfg->quant_comp;
1131 better = cfg->quant_comp_short;
1144 /*if (cfg->vbr == vbr_rh || cfg->vbr == vbr_mtrh) */ {
1151 if (cfg->full_outer_loop == 0) {
1154 if ((cfg->noise_shaping_amp == 3) && bRefine && age > 30)
1156 if ((cfg->noise_shaping_amp == 3) && bRefine &&
1164 if (cfg->noise_shaping_amp == 3) {
1188 if (cfg->vbr == vbr_rh || cfg->vbr == vbr_mtrh || cfg->vbr == vbr_mt)
1216 SessionConfig_t const *const cfg = &gfc->cfg;
1226 if (cfg->use_best_huffman == 1)
1343 SessionConfig_t const *const cfg = &gfc->cfg;
1350 eov->bitrate_index = cfg->vbr_min_bitrate_index;
1358 for (i = 1; i <= cfg->vbr_max_bitrate_index; i++) {
1396 SessionConfig_t const *const cfg = &gfc->cfg;
1404 eov->bitrate_index = cfg->vbr_max_bitrate_index;
1405 avg = ResvFrameBegin(gfc, &avg) / cfg->mode_gr;
1409 for (gr = 0; gr < cfg->mode_gr; gr++) {
1415 for (ch = 0; ch < cfg->channels_out; ++ch) {
1438 for (gr = 0; gr < cfg->mode_gr; gr++) {
1439 for (ch = 0; ch < cfg->channels_out; ch++) {
1440 if (bits > frameBits[cfg->vbr_max_bitrate_index] && bits > 0) {
1441 max_bits[gr][ch] *= frameBits[cfg->vbr_max_bitrate_index];
1457 SessionConfig_t const *const cfg = &gfc->cfg;
1459 for (gr = 0; gr < cfg->mode_gr; gr++) {
1460 for (ch = 0; ch < cfg->channels_out; ch++) {
1494 SessionConfig_t const *const cfg = &gfc->cfg;
1519 for (gr = 0; gr < cfg->mode_gr; gr++) {
1520 for (ch = 0; ch < cfg->channels_out; ch++) {
1550 if (analog_silence && !cfg->enforce_min_bitrate)
1556 eov->bitrate_index = cfg->vbr_min_bitrate_index;
1558 for (; eov->bitrate_index < cfg->vbr_max_bitrate_index; eov->bitrate_index++) {
1572 for (gr = 0; gr < cfg->mode_gr; gr++) {
1573 for (ch = 0; ch < cfg->channels_out; ch++) {
1588 SessionConfig_t const *const cfg = &gfc->cfg;
1596 if (!cfg->free_format) {
1597 eov->bitrate_index = cfg->vbr_max_bitrate_index;
1602 maximum_framebits = frameBits[cfg->vbr_max_bitrate_index];
1611 for (gr = 0; gr < cfg->mode_gr; gr++) {
1616 for (ch = 0; ch < cfg->channels_out; ++ch) {
1628 for (gr = 0; gr < cfg->mode_gr; gr++) {
1629 for (ch = 0; ch < cfg->channels_out; ch++) {
1649 SessionConfig_t const *const cfg = &gfc->cfg;
1670 for (gr = 0; gr < cfg->mode_gr; gr++) {
1671 for (ch = 0; ch < cfg->channels_out; ch++) {
1687 if (!cfg->free_format) {
1692 if (analog_silence && !cfg->enforce_min_bitrate) {
1699 i = cfg->vbr_min_bitrate_index;
1702 for (; i < cfg->vbr_max_bitrate_index; i++) {
1706 if (i > cfg->vbr_max_bitrate_index) {
1707 i = cfg->vbr_max_bitrate_index;
1710 for (j = cfg->vbr_max_bitrate_index; j > i; --j) {
1725 int hhh = getFramesize_kbps(gfc, MAX_BITS_PER_GRANULE * cfg->mode_gr);
1737 for (gr = 0; gr < cfg->mode_gr; gr++) {
1738 for (ch = 0; ch < cfg->channels_out; ch++) {
1774 SessionConfig_t const *const cfg = &gfc->cfg;
1779 int framesize = 576 * cfg->mode_gr;
1782 eov->bitrate_index = cfg->vbr_max_bitrate_index;
1786 mean_bits = getframebits(gfc) - cfg->sideinfo_len * 8;
1787 analog_silence_bits = mean_bits / (cfg->mode_gr * cfg->channels_out);
1789 mean_bits = cfg->vbr_avg_bitrate_kbps * framesize * 1000;
1792 mean_bits /= cfg->samplerate_out;
1793 mean_bits -= cfg->sideinfo_len * 8;
1794 mean_bits /= (cfg->mode_gr * cfg->channels_out);
1815 res_factor = .93 + .07 * (11.0 - cfg->compression_ratio) / (11.0 - 5.5);
1821 for (gr = 0; gr < cfg->mode_gr; gr++) {
1823 for (ch = 0; ch < cfg->channels_out; ch++) {
1851 for (ch = 0; ch < cfg->channels_out; ++ch) {
1859 for (gr = 0; gr < cfg->mode_gr; gr++) {
1860 reduce_side(targ_bits[gr], ms_ener_ratio[gr], mean_bits * cfg->channels_out,
1867 for (gr = 0; gr < cfg->mode_gr; gr++) {
1868 for (ch = 0; ch < cfg->channels_out; ch++) {
1880 for (gr = 0; gr < cfg->mode_gr; gr++) {
1881 for (ch = 0; ch < cfg->channels_out; ch++) {
1892 for (gr = 0; gr < cfg->mode_gr; gr++) {
1893 for (ch = 0; ch < cfg->channels_out; ch++) {
1923 SessionConfig_t const *const cfg = &gfc->cfg;
1940 for (gr = 0; gr < cfg->mode_gr; gr++) {
1945 for (ch = 0; ch < cfg->channels_out; ch++) {
1984 for (eov->bitrate_index = cfg->vbr_min_bitrate_index;
1985 eov->bitrate_index <= cfg->vbr_max_bitrate_index; eov->bitrate_index++) {
1989 assert(eov->bitrate_index <= cfg->vbr_max_bitrate_index);
2013 SessionConfig_t const *const cfg = &gfc->cfg;
2025 for (gr = 0; gr < cfg->mode_gr; gr++) {
2036 for (ch = 0; ch < cfg->channels_out; ch++) {