Lines Matching refs:m4ac
140 … (*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()
571 if (ac->oc[1].m4ac.ps == 1 && channels == 2) { 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()
836 static int decode_pce(AVCodecContext *avctx, MPEG4AudioConfig *m4ac, in decode_pce() argument
848 if (m4ac->sampling_index != sampling_index) in decode_pce()
909 MPEG4AudioConfig *m4ac, in decode_ga_specific_config() argument
921 m4ac->frame_length_short = 0; in decode_ga_specific_config()
923 m4ac->frame_length_short = get_bits1(gb); in decode_ga_specific_config()
924 if (m4ac->frame_length_short && m4ac->sbr == 1) { in decode_ga_specific_config()
927 m4ac->sbr = 0; in decode_ga_specific_config()
928 m4ac->ps = 0; in decode_ga_specific_config()
936 if (m4ac->object_type == AOT_AAC_SCALABLE || in decode_ga_specific_config()
937 m4ac->object_type == AOT_ER_AAC_SCALABLE) in decode_ga_specific_config()
942 tags = decode_pce(avctx, m4ac, layout_map, gb, get_bit_alignment); in decode_ga_specific_config()
952 m4ac->ps = 0; in decode_ga_specific_config()
953 } else if (m4ac->sbr == 1 && m4ac->ps == -1) in decode_ga_specific_config()
954 m4ac->ps = 1; in decode_ga_specific_config()
960 switch (m4ac->object_type) { in decode_ga_specific_config()
980 switch (m4ac->object_type) { in decode_ga_specific_config()
997 MPEG4AudioConfig *m4ac, in decode_eld_specific_config() argument
1005 m4ac->ps = 0; in decode_eld_specific_config()
1006 m4ac->sbr = 0; in decode_eld_specific_config()
1013 m4ac->frame_length_short = get_bits1(gb); in decode_eld_specific_config()
1072 MPEG4AudioConfig *m4ac, in decode_audio_specific_config_gb() argument
1079 MPEG4AudioConfig m4ac_bak = *m4ac; in decode_audio_specific_config_gb()
1081 if ((i = ff_mpeg4audio_get_config_gb(m4ac, &gbc, sync_extension, avctx)) < 0) { in decode_audio_specific_config_gb()
1082 *m4ac = m4ac_bak; in decode_audio_specific_config_gb()
1086 if (m4ac->sampling_index > 12) { in decode_audio_specific_config_gb()
1089 m4ac->sampling_index); in decode_audio_specific_config_gb()
1090 *m4ac = m4ac_bak; in decode_audio_specific_config_gb()
1093 if (m4ac->object_type == AOT_ER_AAC_LD && in decode_audio_specific_config_gb()
1094 (m4ac->sampling_index < 3 || m4ac->sampling_index > 7)) { in decode_audio_specific_config_gb()
1097 m4ac->sampling_index); in decode_audio_specific_config_gb()
1098 *m4ac = m4ac_bak; in decode_audio_specific_config_gb()
1104 switch (m4ac->object_type) { in decode_audio_specific_config_gb()
1112 m4ac, m4ac->chan_config)) < 0) in decode_audio_specific_config_gb()
1117 m4ac, m4ac->chan_config)) < 0) in decode_audio_specific_config_gb()
1123 m4ac->sbr == 1 ? "SBR+" : "", in decode_audio_specific_config_gb()
1124 m4ac->object_type); in decode_audio_specific_config_gb()
1130 m4ac->object_type, m4ac->chan_config, m4ac->sampling_index, in decode_audio_specific_config_gb()
1131 m4ac->sample_rate, m4ac->sbr, in decode_audio_specific_config_gb()
1132 m4ac->ps); in decode_audio_specific_config_gb()
1139 MPEG4AudioConfig *m4ac, in decode_audio_specific_config() argument
1159 return decode_audio_specific_config_gb(ac, avctx, m4ac, &gb, 0, in decode_audio_specific_config()
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() local
1412 const int aot = m4ac->object_type; in decode_ics_info()
1413 const int sampling_index = m4ac->sampling_index; in decode_ics_info()
1449 if (m4ac->frame_length_short) { in decode_ics_info()
1462 if (m4ac->frame_length_short) { in decode_ics_info()
1476 if (m4ac->frame_length_short) { 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;
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;
3118 ac->oc[1].m4ac.chan_config = 0;
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;
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; local
3158 int samples = m4ac->frame_length_short ? 960 : 1024;
3159 int chan_config = m4ac->chan_config;
3160 int aot = m4ac->object_type;
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…
3398 avctx->sample_rate = ac->oc[1].m4ac.sample_rate << multiplier;
3457 err = decode_audio_specific_config(ac, ac->avctx, &ac->oc[1].m4ac,
3477 switch (ac->oc[1].m4ac.object_type) {