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