Lines Matching defs:layout_map
121 uint8_t layout_map[MAX_ELEM_ID*4][3], int tags,
223 uint8_t (*layout_map)[3], int offset, uint64_t left,
226 if (layout_map[offset][0] == TYPE_CPE) {
230 .elem_id = layout_map[offset][1],
238 .elem_id = layout_map[offset][1],
244 .elem_id = layout_map[offset + 1][1],
251 static int count_paired_channels(uint8_t (*layout_map)[3], int tags, int pos,
259 if (layout_map[i][2] != pos)
261 if (layout_map[i][0] == TYPE_CPE) {
283 static uint64_t sniff_channel_order(uint8_t (*layout_map)[3], int 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);
312 .elem_id = layout_map[i][1],
319 i += assign_pair(e2c_vec, layout_map, i,
326 i += assign_pair(e2c_vec, layout_map, i,
333 i += assign_pair(e2c_vec, layout_map, i,
341 i += assign_pair(e2c_vec, layout_map, i,
348 i += assign_pair(e2c_vec, layout_map, i,
356 i += assign_pair(e2c_vec, layout_map, i,
363 i += assign_pair(e2c_vec, layout_map, i,
373 .elem_id = layout_map[i][1],
380 if (i < tags && layout_map[i][2] == AAC_CHANNEL_LFE) {
384 .elem_id = layout_map[i][1],
389 while (i < tags && layout_map[i][2] == AAC_CHANNEL_LFE) {
393 .elem_id = layout_map[i][1],
413 layout_map[i][0] = e2c_vec[i].syn_ele;
414 layout_map[i][1] = e2c_vec[i].elem_id;
415 layout_map[i][2] = e2c_vec[i].aac_position;
443 output_configure(ac, ac->oc[1].layout_map, ac->oc[1].layout_map_tags,
455 uint8_t layout_map[MAX_ELEM_ID * 4][3], int tags,
462 if (ac->oc[1].layout_map != layout_map) {
463 memcpy(ac->oc[1].layout_map, layout_map, tags * sizeof(layout_map[0]));
470 layout = sniff_channel_order(layout_map, tags);
472 int type = layout_map[i][0];
473 int id = layout_map[i][1];
474 int position = layout_map[i][2];
527 uint8_t (*layout_map)[3],
538 memcpy(layout_map, aac_channel_layout_map[channel_config - 1],
539 *tags * sizeof(*layout_map));
556 layout_map[2][2] = AAC_CHANNEL_SIDE;
572 uint8_t layout_map[MAX_ELEM_ID*4][3];
578 if (set_default_channel_config(ac->avctx, layout_map,
581 if (output_configure(ac, layout_map, layout_map_tags,
591 uint8_t layout_map[MAX_ELEM_ID * 4][3];
597 if (set_default_channel_config(ac->avctx, layout_map,
600 if (output_configure(ac, layout_map, layout_map_tags,
664 static void decode_channel_map(uint8_t layout_map[][3],
686 layout_map[0][0] = syn_ele;
687 layout_map[0][1] = get_bits(gb, 4);
688 layout_map[0][2] = type;
689 layout_map++;
699 uint8_t (*layout_map)[3],
734 decode_channel_map(layout_map , AAC_CHANNEL_FRONT, gb, num_front);
736 decode_channel_map(layout_map + tags, AAC_CHANNEL_SIDE, gb, num_side);
738 decode_channel_map(layout_map + tags, AAC_CHANNEL_BACK, gb, num_back);
740 decode_channel_map(layout_map + tags, AAC_CHANNEL_LFE, gb, num_lfe);
745 decode_channel_map(layout_map + tags, AAC_CHANNEL_CC, gb, num_cc);
774 uint8_t layout_map[MAX_ELEM_ID*4][3];
792 tags = decode_pce(avctx, m4ac, layout_map, gb);
796 if ((ret = set_default_channel_config(avctx, layout_map,
801 if (count_channels(layout_map, tags) > 1) {
806 if (ac && (ret = output_configure(ac, layout_map, tags, OC_GLOBAL_HDR, 0)))
851 uint8_t layout_map[MAX_ELEM_ID*4][3];
890 if ((ret = set_default_channel_config(avctx, layout_map,
894 if (ac && (ret = output_configure(ac, layout_map, tags, OC_GLOBAL_HDR, 0)))
1069 uint8_t layout_map[MAX_ELEM_ID*4][3];
1087 int ret = set_default_channel_config(avctx, layout_map,
1090 output_configure(ac, layout_map, layout_map_tags,
2290 output_configure(ac, ac->oc[1].layout_map, ac->oc[1].layout_map_tags,
2760 uint8_t layout_map[MAX_ELEM_ID*4][3];
2776 layout_map,
2780 if ((ret = output_configure(ac, layout_map, layout_map_tags,
2793 layout_map[0][0] = layout_map[1][0] = TYPE_SCE;
2794 layout_map[0][2] = layout_map[1][2] = AAC_CHANNEL_FRONT;
2795 layout_map[0][1] = 0;
2796 layout_map[1][1] = 1;
2797 if (output_configure(ac, layout_map, layout_map_tags,
2955 uint8_t layout_map[MAX_ELEM_ID*4][3];
2958 tags = decode_pce(avctx, &ac->oc[1].m4ac, layout_map, gb);
2967 err = output_configure(ac, layout_map, tags, OC_TRIAL_PCE, 1);