Lines Matching defs:tag
22 * mov 'chan' tag reading/writing.
37 * @note We're using the channel layout tag to indicate channel order
137 uint32_t tag;
454 uint64_t ff_mov_get_channel_layout(uint32_t tag, uint32_t bitmap)
460 if (tag == MOV_CH_LAYOUT_USE_DESCRIPTIONS)
464 if (tag == MOV_CH_LAYOUT_USE_BITMAP)
467 /* get the layout map based on the channel count for the specified layout tag */
468 channels = tag & 0xFFFF;
473 /* find the channel layout for the specified layout tag */
474 for (i = 0; layout_map[i].tag != 0; i++) {
475 if (layout_map[i].tag == tag)
499 uint32_t tag = 0;
520 /* find the layout tag for the specified channel layout */
524 for (j = 0; layout_map[j].tag != 0; j++) {
525 if (layout_map[j].tag == layouts[i] &&
529 if (layout_map[j].tag)
532 tag = layouts[i];
535 /* if no tag was found, use channel bitmap as a backup if possible */
536 if (tag == 0 && channel_layout > 0 && channel_layout < 0x40000) {
537 tag = MOV_CH_LAYOUT_USE_BITMAP;
544 return tag;