38 [0] = {
"FL",
"front left" },
39 [1] = {
"FR",
"front right" },
40 [2] = {
"FC",
"front center" },
41 [3] = {
"LFE",
"low frequency" },
42 [4] = {
"BL",
"back left" },
43 [5] = {
"BR",
"back right" },
44 [6] = {
"FLC",
"front left-of-center" },
45 [7] = {
"FRC",
"front right-of-center" },
46 [8] = {
"BC",
"back center" },
47 [9] = {
"SL",
"side left" },
48 [10] = {
"SR",
"side right" },
49 [11] = {
"TC",
"top center" },
50 [12] = {
"TFL",
"top front left" },
51 [13] = {
"TFC",
"top front center" },
52 [14] = {
"TFR",
"top front right" },
53 [15] = {
"TBL",
"top back left" },
54 [16] = {
"TBC",
"top back center" },
55 [17] = {
"TBR",
"top back right" },
56 [29] = {
"DL",
"downmix left" },
57 [30] = {
"DR",
"downmix right" },
58 [31] = {
"WL",
"wide left" },
59 [32] = {
"WR",
"wide right" },
60 [33] = {
"SDL",
"surround direct left" },
61 [34] = {
"SDR",
"surround direct right" },
62 [35] = {
"LFE2",
"low frequency 2" },
69 return channel_names[channel_id].
name;
117 if (channel_names[i].name &&
118 strlen(channel_names[i].name) == name_len &&
119 !memcmp(channel_names[i].name, name, name_len))
120 return (int64_t)1 << i;
121 i = strtol(name, &end, 10);
122 if (end - name == name_len ||
123 (end + 1 - name == name_len && *end ==
'c'))
125 layout = strtoll(name, &end, 0);
126 if (end - name == name_len)
127 return FFMAX(layout, 0);
134 const char *name_end = name + strlen(name);
135 int64_t
layout = 0, layout_single;
137 for (n = name; n < name_end; n = e + 1) {
138 for (e = n; e < name_end && *e !=
'+' && *e !=
'|'; e++);
142 layout |= layout_single;
152 if (nb_channels <= 0)
163 if (channel_layout) {
166 for (i = 0, ch = 0; i < 64; i++) {
167 if ((channel_layout & (UINT64_C(1) << i))) {
192 return av_popcount64(channel_layout);
206 if (!(channel_layout & channel) ||
209 channel_layout &= channel - 1;
218 for (i = 0; i < 64; i++)
219 if ((1ULL<<i) & channel)
230 if ((1ULL<<i) & channel)
231 return channel_names[i].description;
242 for (i = 0; i < 64; i++) {
243 if ((1ULL << i) & channel_layout && !index--)