Lines Matching refs:tags
121 uint8_t layout_map[MAX_ELEM_ID*4][3], int tags,
126 static int count_channels(uint8_t (*layout)[3], int tags)
129 for (i = 0; i < tags; i++) {
251 static int count_paired_channels(uint8_t (*layout_map)[3], int tags, int pos,
258 for (i = *current; i < tags; i++) {
283 static uint64_t sniff_channel_order(uint8_t (*layout_map)[3], int tags)
290 if (FF_ARRAY_ELEMS(e2c_vec) < tags)
295 count_paired_channels(layout_map, tags, AAC_CHANNEL_FRONT, &i);
299 count_paired_channels(layout_map, tags, AAC_CHANNEL_SIDE, &i);
303 count_paired_channels(layout_map, tags, AAC_CHANNEL_BACK, &i);
380 if (i < tags && layout_map[i][2] == AAC_CHANNEL_LFE) {
389 while (i < tags && layout_map[i][2] == AAC_CHANNEL_LFE) {
455 uint8_t layout_map[MAX_ELEM_ID * 4][3], int tags,
463 memcpy(ac->oc[1].layout_map, layout_map, tags * sizeof(layout_map[0]));
464 ac->oc[1].layout_map_tags = tags;
470 layout = sniff_channel_order(layout_map, tags);
471 for (i = 0; i < tags; i++) {
528 int *tags,
537 *tags = tags_per_config[channel_config];
539 *tags * sizeof(*layout_map));
565 * on tags. */
705 int tags;
735 tags = num_front;
736 decode_channel_map(layout_map + tags, AAC_CHANNEL_SIDE, gb, num_side);
737 tags += num_side;
738 decode_channel_map(layout_map + tags, AAC_CHANNEL_BACK, gb, num_back);
739 tags += num_back;
740 decode_channel_map(layout_map + tags, AAC_CHANNEL_LFE, gb, num_lfe);
741 tags += num_lfe;
745 decode_channel_map(layout_map + tags, AAC_CHANNEL_CC, gb, num_cc);
746 tags += num_cc;
757 return tags;
775 int tags = 0;
792 tags = decode_pce(avctx, m4ac, layout_map, gb);
793 if (tags < 0)
794 return tags;
797 &tags, channel_config)))
801 if (count_channels(layout_map, tags) > 1) {
806 if (ac && (ret = output_configure(ac, layout_map, tags, OC_GLOBAL_HDR, 0)))
852 int tags = 0;
891 &tags, channel_config)))
894 if (ac && (ret = output_configure(ac, layout_map, tags, OC_GLOBAL_HDR, 0)))
2956 int tags;
2958 tags = decode_pce(avctx, &ac->oc[1].m4ac, layout_map, gb);
2959 if (tags < 0) {
2960 err = tags;
2967 err = output_configure(ac, layout_map, tags, OC_TRIAL_PCE, 1);