• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching refs:m4ac

163             if (*channels >= MAX_CHANNELS - (type == TYPE_CPE || (type == TYPE_SCE && ac->oc[1].m4ac.ps == 1))) {
169 (type == TYPE_SCE && ac->oc[1].m4ac.ps == 1)) {
481 if (ac->oc[1].m4ac.ps == 1 && channels == 2) {
566 if (!ac->oc[1].m4ac.chan_config) {
571 ac->oc[1].m4ac.chan_config == 1) {
585 ac->oc[1].m4ac.chan_config = 2;
586 ac->oc[1].m4ac.ps = 0;
590 ac->oc[1].m4ac.chan_config == 2) {
604 ac->oc[1].m4ac.chan_config = 1;
605 if (ac->oc[1].m4ac.sbr)
606 ac->oc[1].m4ac.ps = -1;
610 switch (ac->oc[1].m4ac.chan_config) {
623 if (ac->tags_mapped == tags_per_config[ac->oc[1].m4ac.chan_config] - 1 && (type == TYPE_LFE || type == TYPE_SCE)) {
634 ac->oc[1].m4ac.chan_config == 4 &&
641 if (ac->tags_mapped == (ac->oc[1].m4ac.chan_config != 2) &&
645 } else if (ac->oc[1].m4ac.chan_config == 2) {
698 static int decode_pce(AVCodecContext *avctx, MPEG4AudioConfig *m4ac,
710 if (m4ac->sampling_index != sampling_index)
770 MPEG4AudioConfig *m4ac,
786 if (m4ac->object_type == AOT_AAC_SCALABLE ||
787 m4ac->object_type == AOT_ER_AAC_SCALABLE)
792 tags = decode_pce(avctx, m4ac, layout_map, gb);
802 m4ac->ps = 0;
803 } else if (m4ac->sbr == 1 && m4ac->ps == -1)
804 m4ac->ps = 1;
810 switch (m4ac->object_type) {
830 switch (m4ac->object_type) {
847 MPEG4AudioConfig *m4ac,
855 m4ac->ps = 0;
856 m4ac->sbr = 0;
911 * @param m4ac pointer to MPEG4AudioConfig, used for parsing
920 MPEG4AudioConfig *m4ac,
935 if ((i = avpriv_mpeg4audio_get_config(m4ac, data, bit_size,
938 if (m4ac->sampling_index > 12) {
941 m4ac->sampling_index);
944 if (m4ac->object_type == AOT_ER_AAC_LD &&
945 (m4ac->sampling_index < 3 || m4ac->sampling_index > 7)) {
948 m4ac->sampling_index);
954 switch (m4ac->object_type) {
961 m4ac, m4ac->chan_config)) < 0)
966 m4ac, m4ac->chan_config)) < 0)
972 m4ac->sbr == 1 ? "SBR+" : "",
973 m4ac->object_type);
979 m4ac->object_type, m4ac->chan_config, m4ac->sampling_index,
980 m4ac->sample_rate, m4ac->sbr,
981 m4ac->ps);
1055 ac->oc[1].m4ac.sample_rate = avctx->sample_rate;
1062 if ((ret = decode_audio_specific_config(ac, ac->avctx, &ac->oc[1].m4ac,
1073 ac->oc[1].m4ac.sampling_index = sr;
1074 ac->oc[1].m4ac.channels = avctx->channels;
1075 ac->oc[1].m4ac.sbr = -1;
1076 ac->oc[1].m4ac.ps = -1;
1084 ac->oc[1].m4ac.chan_config = i;
1086 if (ac->oc[1].m4ac.chan_config) {
1088 &layout_map_tags, ac->oc[1].m4ac.chan_config);
1182 for (sfb = 0; sfb < FFMIN(ics->max_sfb, ff_aac_pred_sfb_max[ac->oc[1].m4ac.sampling_index]); sfb++) {
1208 int aot = ac->oc[1].m4ac.object_type;
1241 ics->swb_offset = ff_swb_offset_128[ac->oc[1].m4ac.sampling_index];
1242 ics->num_swb = ff_aac_num_swb_128[ac->oc[1].m4ac.sampling_index];
1243 ics->tns_max_bands = ff_tns_max_bands_128[ac->oc[1].m4ac.sampling_index];
1249 ics->swb_offset = ff_swb_offset_512[ac->oc[1].m4ac.sampling_index];
1250 ics->num_swb = ff_aac_num_swb_512[ac->oc[1].m4ac.sampling_index];
1251 ics->tns_max_bands = ff_tns_max_bands_512[ac->oc[1].m4ac.sampling_index];
1255 ics->swb_offset = ff_swb_offset_1024[ac->oc[1].m4ac.sampling_index];
1256 ics->num_swb = ff_aac_num_swb_1024[ac->oc[1].m4ac.sampling_index];
1257 ics->tns_max_bands = ff_tns_max_bands_1024[ac->oc[1].m4ac.sampling_index];
1451 const int tns_max_order = is8 ? 7 : ac->oc[1].m4ac.object_type == AOT_AAC_MAIN ? 20 : 12;
1867 sfb < ff_aac_pred_sfb_max[ac->oc[1].m4ac.sampling_index];
1902 eld_syntax = ac->oc[1].m4ac.object_type == AOT_ER_AAC_ELD;
1903 er_syntax = ac->oc[1].m4ac.object_type == AOT_ER_AAC_LC ||
1904 ac->oc[1].m4ac.object_type == AOT_ER_AAC_LTP ||
1905 ac->oc[1].m4ac.object_type == AOT_ER_AAC_LD ||
1906 ac->oc[1].m4ac.object_type == AOT_ER_AAC_ELD;
1960 if (ac->oc[1].m4ac.object_type == AOT_AAC_MAIN && !common_window)
2045 int eld_syntax = ac->oc[1].m4ac.object_type == AOT_ER_AAC_ELD;
2055 (ac->oc[1].m4ac.object_type != AOT_AAC_MAIN))
2073 if (ac->oc[1].m4ac.object_type == AOT_AAC_MAIN) {
2278 } else if (!ac->oc[1].m4ac.sbr) {
2282 } else if (ac->oc[1].m4ac.sbr == -1 && ac->oc[1].status == OC_LOCKED) {
2286 } else if (ac->oc[1].m4ac.ps == -1 && ac->oc[1].status < OC_LOCKED && ac->avctx->channels == 1) {
2287 ac->oc[1].m4ac.sbr = 1;
2288 ac->oc[1].m4ac.ps = 1;
2293 ac->oc[1].m4ac.sbr = 1;
2623 if (ac->oc[1].m4ac.object_type == AOT_AAC_LTP) {
2658 const int len = 1024 << (ac->oc[1].m4ac.sbr == 1);
2706 switch (ac->oc[1].m4ac.object_type) {
2722 if (ac->oc[1].m4ac.object_type == AOT_AAC_LTP) {
2738 if (ac->oc[1].m4ac.object_type == AOT_AAC_LTP)
2742 if (ac->oc[1].m4ac.object_type == AOT_AAC_LTP)
2745 if (ac->oc[1].m4ac.sbr > 0) {
2774 ac->oc[1].m4ac.chan_config = hdr_info.chan_config;
2785 ac->oc[1].m4ac.chan_config = 0;
2802 ac->oc[1].m4ac.sample_rate = hdr_info.sample_rate;
2803 ac->oc[1].m4ac.sampling_index = hdr_info.sampling_index;
2804 ac->oc[1].m4ac.object_type = hdr_info.object_type;
2806 ac->oc[0].m4ac.chan_config != hdr_info.chan_config ||
2807 ac->oc[0].m4ac.sample_rate != hdr_info.sample_rate) {
2808 ac->oc[1].m4ac.sbr = -1;
2809 ac->oc[1].m4ac.ps = -1;
2824 int chan_config = ac->oc[1].m4ac.chan_config;
2825 int aot = ac->oc[1].m4ac.object_type;
2837 ac->avctx->profile = ac->oc[1].m4ac.object_type - 1;
2843 ac->oc[1].m4ac.chan_config);
2899 if (ac->oc[1].m4ac.sampling_index > 12) {
2900 av_log(ac->avctx, AV_LOG_ERROR, "invalid sampling rate index %d\n", ac->oc[1].m4ac.sampling_index);
2911 ac->avctx->profile = ac->oc[1].m4ac.object_type - 1;
2958 tags = decode_pce(avctx, &ac->oc[1].m4ac, layout_map, gb);
2969 ac->oc[1].m4ac.chan_config = 0;
3008 multiplier = (ac->oc[1].m4ac.sbr == 1) ? ac->oc[1].m4ac.ext_sample_rate > ac->oc[1].m4ac.sample_rate : 0;
3012 avctx->sample_rate = ac->oc[1].m4ac.sample_rate << multiplier;
3076 if (decode_audio_specific_config(ac, ac->avctx, &ac->oc[1].m4ac,
3096 switch (ac->oc[1].m4ac.object_type) {
3162 MPEG4AudioConfig m4ac = { 0 };
3180 bits_consumed = decode_audio_specific_config(NULL, avctx, &m4ac,
3188 ac->oc[1].m4ac.sample_rate != m4ac.sample_rate ||
3189 ac->oc[1].m4ac.chan_config != m4ac.chan_config) {
3375 &latmctx->aac_ctx, avctx, &latmctx->aac_ctx.oc[1].m4ac,