Lines Matching defs:layout
45 // The channel orderings for each layout as specified by FFmpeg. Each value
46 // represents the index of each channel in each layout. Values of -1 mean the
47 // channel at that index is not used for that layout.For example, the left side
48 // surround sound channel in FFmpeg's 5.1 layout is in the 5th position (because
151 int ChannelLayoutToChannelCount(ChannelLayout layout) {
152 DCHECK_LT(static_cast<size_t>(layout), arraysize(kLayoutToChannels));
153 return kLayoutToChannels[layout];
156 // Converts a channel count into a channel layout.
181 int ChannelOrder(ChannelLayout layout, Channels channel) {
182 DCHECK_LT(static_cast<size_t>(layout), arraysize(kChannelOrderings));
184 return kChannelOrderings[layout][channel];
187 const char* ChannelLayoutToString(ChannelLayout layout) {
188 switch (layout) {
252 NOTREACHED() << "Invalid channel layout provided: " << layout;