• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/

Lines Matching defs:m4ac

120     if (!ac->m4ac.chan_config) {
124 switch (ac->m4ac.chan_config) {
134 if (ac->tags_mapped == tags_per_config[ac->m4ac.chan_config] - 1 && (type == TYPE_LFE || type == TYPE_SCE)) {
144 if (ac->tags_mapped == 2 && ac->m4ac.chan_config == 4 && type == TYPE_SCE) {
150 if (ac->tags_mapped == (ac->m4ac.chan_config != 2) && type == TYPE_CPE) {
153 } else if (ac->m4ac.chan_config == 2) {
206 (type == TYPE_SCE && ac->m4ac.ps == 1)) {
303 static int decode_pce(AVCodecContext *avctx, MPEG4AudioConfig *m4ac,
313 if (m4ac->sampling_index != sampling_index)
408 MPEG4AudioConfig *m4ac,
423 if (m4ac->object_type == AOT_AAC_SCALABLE ||
424 m4ac->object_type == AOT_ER_AAC_SCALABLE)
430 if ((ret = decode_pce(avctx, m4ac, new_che_pos, gb)))
438 m4ac->ps = 0;
439 } else if (m4ac->sbr == 1 && m4ac->ps == -1)
440 m4ac->ps = 1;
446 switch (m4ac->object_type) {
471 * @param m4ac pointer to MPEG4AudioConfig, used for parsing
480 MPEG4AudioConfig *m4ac,
494 if ((i = avpriv_mpeg4audio_get_config(m4ac, data, bit_size, sync_extension)) < 0)
496 if (m4ac->sampling_index > 12) {
497 av_log(avctx, AV_LOG_ERROR, "invalid sampling rate index %d\n", m4ac->sampling_index);
503 switch (m4ac->object_type) {
507 if (decode_ga_specific_config(ac, avctx, &gb, m4ac, m4ac->chan_config))
512 m4ac->sbr == 1? "SBR+" : "", m4ac->object_type);
517 m4ac->object_type, m4ac->chan_config, m4ac->sampling_index,
518 m4ac->sample_rate, m4ac->sbr, m4ac->ps);
587 ac->m4ac.sample_rate = avctx->sample_rate;
590 if (decode_audio_specific_config(ac, ac->avctx, &ac->m4ac,
599 ac->m4ac.sampling_index = sr;
600 ac->m4ac.channels = avctx->channels;
601 ac->m4ac.sbr = -1;
602 ac->m4ac.ps = -1;
610 ac->m4ac.chan_config = i;
612 if (ac->m4ac.chan_config) {
613 int ret = set_default_channel_config(avctx, new_che_pos, ac->m4ac.chan_config);
615 output_configure(ac, ac->che_pos, new_che_pos, ac->m4ac.chan_config, OC_GLOBAL_HDR);
703 for (sfb = 0; sfb < FFMIN(ics->max_sfb, ff_aac_pred_sfb_max[ac->m4ac.sampling_index]); sfb++) {
751 ics->swb_offset = ff_swb_offset_128[ac->m4ac.sampling_index];
752 ics->num_swb = ff_aac_num_swb_128[ac->m4ac.sampling_index];
753 ics->tns_max_bands = ff_tns_max_bands_128[ac->m4ac.sampling_index];
758 ics->swb_offset = ff_swb_offset_1024[ac->m4ac.sampling_index];
759 ics->num_swb = ff_aac_num_swb_1024[ac->m4ac.sampling_index];
760 ics->tns_max_bands = ff_tns_max_bands_1024[ac->m4ac.sampling_index];
764 if (ac->m4ac.object_type == AOT_AAC_MAIN) {
768 } else if (ac->m4ac.object_type == AOT_AAC_LC) {
940 const int tns_max_order = is8 ? 7 : ac->m4ac.object_type == AOT_AAC_MAIN ? 20 : 12;
1351 for (sfb = 0; sfb < ff_aac_pred_sfb_max[ac->m4ac.sampling_index]; sfb++) {
1420 if (ac->m4ac.object_type == AOT_AAC_MAIN && !common_window)
1510 if (cpe->ch[1].ics.predictor_present && (ac->m4ac.object_type != AOT_AAC_MAIN))
1528 if (ac->m4ac.object_type == AOT_AAC_MAIN) {
1709 } else if (!ac->m4ac.sbr) {
1713 } else if (ac->m4ac.sbr == -1 && ac->output_configured == OC_LOCKED) {
1717 } else if (ac->m4ac.ps == -1 && ac->output_configured < OC_LOCKED && ac->avctx->channels == 1) {
1718 ac->m4ac.sbr = 1;
1719 ac->m4ac.ps = 1;
1720 output_configure(ac, ac->che_pos, ac->che_pos, ac->m4ac.chan_config, ac->output_configured);
1722 ac->m4ac.sbr = 1;
1968 if (ac->m4ac.object_type == AOT_AAC_LTP) {
2003 const int len = 1024 << (ac->m4ac.sbr == 1);
2056 if (ac->m4ac.object_type == AOT_AAC_LTP) {
2072 if (ac->m4ac.object_type == AOT_AAC_LTP)
2076 if (ac->m4ac.object_type == AOT_AAC_LTP)
2079 if (ac->m4ac.sbr > 0) {
2100 ac->m4ac.chan_config = hdr_info.chan_config;
2107 ac->m4ac.chan_config = 0;
2111 ac->m4ac.sbr = -1;
2112 ac->m4ac.ps = -1;
2113 ac->m4ac.sample_rate = hdr_info.sample_rate;
2114 ac->m4ac.sampling_index = hdr_info.sampling_index;
2115 ac->m4ac.object_type = hdr_info.object_type;
2144 if (ac->m4ac.sampling_index > 12) {
2145 av_log(ac->avctx, AV_LOG_ERROR, "invalid sampling rate index %d\n", ac->m4ac.sampling_index);
2192 if ((err = decode_pce(avctx, &ac->m4ac, new_che_pos, gb)))
2233 multiplier = (ac->m4ac.sbr == 1) ? ac->m4ac.ext_sample_rate > ac->m4ac.sample_rate : 0;
2236 avctx->sample_rate = ac->m4ac.sample_rate << multiplier;
2290 if (decode_audio_specific_config(ac, ac->avctx, &ac->m4ac,
2353 MPEG4AudioConfig m4ac = {0};
2371 bits_consumed = decode_audio_specific_config(NULL, avctx, &m4ac,
2378 if (ac->m4ac.sample_rate != m4ac.sample_rate ||
2379 ac->m4ac.chan_config != m4ac.chan_config) {
2561 &latmctx->aac_ctx, avctx, &latmctx->aac_ctx.m4ac,