• Home
  • Raw
  • Download

Lines Matching refs:oc

140 …if (*channels >= MAX_CHANNELS - (type == TYPE_CPE || (type == TYPE_SCE && ac->oc[1].m4ac.ps == 1))…  in che_configure()
146 (type == TYPE_SCE && ac->oc[1].m4ac.ps == 1)) { in che_configure()
504 if (ac->oc[1].status == OC_LOCKED || ac->oc[0].status == OC_NONE) { in push_output_configuration()
505 ac->oc[0] = ac->oc[1]; in push_output_configuration()
508 ac->oc[1].status = OC_NONE; in push_output_configuration()
517 if (ac->oc[1].status != OC_LOCKED && ac->oc[0].status != OC_NONE) { in pop_output_configuration()
518 ac->oc[1] = ac->oc[0]; in pop_output_configuration()
519 ac->avctx->channels = ac->oc[1].channels; in pop_output_configuration()
520 ac->avctx->channel_layout = ac->oc[1].channel_layout; in pop_output_configuration()
521 output_configure(ac, ac->oc[1].layout_map, ac->oc[1].layout_map_tags, in pop_output_configuration()
522 ac->oc[1].status, 0); in pop_output_configuration()
542 if (ac->oc[1].layout_map != layout_map) { in output_configure()
543 memcpy(ac->oc[1].layout_map, layout_map, tags * sizeof(layout_map[0])); in output_configure()
544 ac->oc[1].layout_map_tags = tags; in output_configure()
571 if (ac->oc[1].m4ac.ps == 1 && channels == 2) { in output_configure()
580 ac->oc[1].channel_layout = layout; in output_configure()
581 avctx->channels = ac->oc[1].channels = channels; in output_configure()
582 ac->oc[1].status = oc_type; in output_configure()
659 if (!ac->oc[1].m4ac.chan_config) { in get_che()
664 ac->oc[1].m4ac.chan_config == 1) { in get_che()
678 ac->oc[1].m4ac.chan_config = 2; in get_che()
679 ac->oc[1].m4ac.ps = 0; in get_che()
683 ac->oc[1].m4ac.chan_config == 2) { in get_che()
697 ac->oc[1].m4ac.chan_config = 1; in get_che()
698 if (ac->oc[1].m4ac.sbr) in get_che()
699 ac->oc[1].m4ac.ps = -1; in get_che()
703 switch (ac->oc[1].m4ac.chan_config) { in get_che()
719 ac->oc[1].m4ac.chan_config == 11 && in get_che()
731 …if (ac->tags_mapped == tags_per_config[ac->oc[1].m4ac.chan_config] - 1 && (type == TYPE_LFE || typ… in get_che()
753 …if (ac->tags_mapped == tags_per_config[ac->oc[1].m4ac.chan_config] - 1 && (type == TYPE_LFE || typ… in get_che()
764 ac->oc[1].m4ac.chan_config == 4 && in get_che()
771 if (ac->tags_mapped == (ac->oc[1].m4ac.chan_config != 2) && in get_che()
775 } else if (ac->oc[1].m4ac.chan_config == 2) { in get_che()
1272 ac->oc[1].m4ac.sample_rate = avctx->sample_rate; in aac_decode_init()
1282 if ((ret = decode_audio_specific_config(ac, ac->avctx, &ac->oc[1].m4ac, in aac_decode_init()
1293 ac->oc[1].m4ac.sampling_index = sr; in aac_decode_init()
1294 ac->oc[1].m4ac.channels = avctx->channels; in aac_decode_init()
1295 ac->oc[1].m4ac.sbr = -1; in aac_decode_init()
1296 ac->oc[1].m4ac.ps = -1; in aac_decode_init()
1304 ac->oc[1].m4ac.chan_config = i; in aac_decode_init()
1306 if (ac->oc[1].m4ac.chan_config) { in aac_decode_init()
1308 &layout_map_tags, ac->oc[1].m4ac.chan_config); in aac_decode_init()
1385 …for (sfb = 0; sfb < FFMIN(ics->max_sfb, ff_aac_pred_sfb_max[ac->oc[1].m4ac.sampling_index]); sfb++… in decode_prediction()
1411 const MPEG4AudioConfig *const m4ac = &ac->oc[1].m4ac; in decode_ics_info()
1690 const int tns_max_order = is8 ? 7 : ac->oc[1].m4ac.object_type == AOT_AAC_MAIN ? 20 : 12; in decode_tns()
2059 sfb < ff_aac_pred_sfb_max[ac->oc[1].m4ac.sampling_index]; in apply_prediction()
2121 eld_syntax = ac->oc[1].m4ac.object_type == AOT_ER_AAC_ELD; in decode_ics()
2122 er_syntax = ac->oc[1].m4ac.object_type == AOT_ER_AAC_LC || in decode_ics()
2123 ac->oc[1].m4ac.object_type == AOT_ER_AAC_LTP || in decode_ics()
2124 ac->oc[1].m4ac.object_type == AOT_ER_AAC_LD || in decode_ics()
2125 ac->oc[1].m4ac.object_type == AOT_ER_AAC_ELD; in decode_ics()
2190 if (ac->oc[1].m4ac.object_type == AOT_AAC_MAIN && !common_window) in decode_ics()
2293 int eld_syntax = ac->oc[1].m4ac.object_type == AOT_ER_AAC_ELD;
2303 (ac->oc[1].m4ac.object_type != AOT_AAC_MAIN))
2321 if (ac->oc[1].m4ac.object_type == AOT_AAC_MAIN) {
2543 } else if (ac->oc[1].m4ac.frame_length_short) {
2550 } else if (!ac->oc[1].m4ac.sbr) {
2554 } else if (ac->oc[1].m4ac.sbr == -1 && ac->oc[1].status == OC_LOCKED) {
2558 … } else if (ac->oc[1].m4ac.ps == -1 && ac->oc[1].status < OC_LOCKED && ac->avctx->channels == 1) {
2559 ac->oc[1].m4ac.sbr = 1;
2560 ac->oc[1].m4ac.ps = 1;
2562 output_configure(ac, ac->oc[1].layout_map, ac->oc[1].layout_map_tags,
2563 ac->oc[1].status, 1);
2565 ac->oc[1].m4ac.sbr = 1;
2918 const int n = ac->oc[1].m4ac.frame_length_short ? 480 : 512;
3021 switch (ac->oc[1].m4ac.object_type) {
3029 if (ac->oc[1].m4ac.frame_length_short)
3040 if (ac->oc[1].m4ac.object_type == AOT_AAC_LTP) {
3056 if (ac->oc[1].m4ac.object_type == AOT_AAC_LTP)
3060 if (ac->oc[1].m4ac.object_type == AOT_AAC_LTP)
3063 if (ac->oc[1].m4ac.sbr > 0) {
3107 ac->oc[1].m4ac.chan_config = hdr_info.chan_config;
3114 FFMAX(ac->oc[1].status,
3118 ac->oc[1].m4ac.chan_config = 0;
3124 if (ac->dmono_mode && ac->oc[0].status == OC_NONE) {
3135 ac->oc[1].m4ac.sample_rate = hdr_info.sample_rate;
3136 ac->oc[1].m4ac.sampling_index = hdr_info.sampling_index;
3137 ac->oc[1].m4ac.object_type = hdr_info.object_type;
3138 ac->oc[1].m4ac.frame_length_short = 0;
3139 if (ac->oc[0].status != OC_LOCKED ||
3140 ac->oc[0].m4ac.chan_config != hdr_info.chan_config ||
3141 ac->oc[0].m4ac.sample_rate != hdr_info.sample_rate) {
3142 ac->oc[1].m4ac.sbr = -1;
3143 ac->oc[1].m4ac.ps = -1;
3155 const MPEG4AudioConfig *const m4ac = &ac->oc[1].m4ac;
3243 if (ac->oc[1].m4ac.sampling_index > 12) {
3244 …av_log(ac->avctx, AV_LOG_ERROR, "invalid sampling rate index %d\n", ac->oc[1].m4ac.sampling_index);
3255 ac->avctx->profile = ac->oc[1].m4ac.object_type - 1;
3289 samples = ac->oc[1].m4ac.frame_length_short ? 960 : 1024;
3329 tags = decode_pce(avctx, &ac->oc[1].m4ac, layout_map, gb,
3342 ac->oc[1].m4ac.chan_config = 0;
3392 …multiplier = (ac->oc[1].m4ac.sbr == 1) ? ac->oc[1].m4ac.ext_sample_rate > ac->oc[1].m4ac.sample_ra…
3397 if (ac->oc[1].status && audio_found) {
3398 avctx->sample_rate = ac->oc[1].m4ac.sample_rate << multiplier;
3400 ac->oc[1].status = OC_LOCKED;
3421 ac->oc[1].channel_layout == (AV_CH_FRONT_LEFT | AV_CH_FRONT_RIGHT);
3456 ac->oc[1].status = OC_NONE;
3457 err = decode_audio_specific_config(ac, ac->avctx, &ac->oc[1].m4ac,
3477 switch (ac->oc[1].m4ac.object_type) {