/* * Copyright (c) 2019 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree.
*/
// The channel orderings for each layout as specified by FFmpeg. Each value // represents the index of each channel in each layout. Values of -1 mean the // channel at that index is not used for that layout. For example, the left side // surround sound channel in FFmpeg's 5.1 layout is in the 5th position (because // the order is L, R, C, LFE, LS, RS), so // kChannelOrderings[CHANNEL_LAYOUT_5_1][SIDE_LEFT] = 4; staticconstint kChannelOrderings[CHANNEL_LAYOUT_MAX + 1][CHANNELS_MAX + 1] = { // FL | FR | FC | LFE | BL | BR | FLofC | FRofC | BC | SL | SR
constchar* ChannelLayoutToString(ChannelLayout layout) { switch (layout) { case CHANNEL_LAYOUT_NONE: return"NONE"; case CHANNEL_LAYOUT_UNSUPPORTED: return"UNSUPPORTED"; case CHANNEL_LAYOUT_MONO: return"MONO"; case CHANNEL_LAYOUT_STEREO: return"STEREO"; case CHANNEL_LAYOUT_2_1: return"2.1"; case CHANNEL_LAYOUT_SURROUND: return"SURROUND"; case CHANNEL_LAYOUT_4_0: return"4.0"; case CHANNEL_LAYOUT_2_2: return"QUAD_SIDE"; case CHANNEL_LAYOUT_QUAD: return"QUAD"; case CHANNEL_LAYOUT_5_0: return"5.0"; case CHANNEL_LAYOUT_5_1: return"5.1"; case CHANNEL_LAYOUT_5_0_BACK: return"5.0_BACK"; case CHANNEL_LAYOUT_5_1_BACK: return"5.1_BACK"; case CHANNEL_LAYOUT_7_0: return"7.0"; case CHANNEL_LAYOUT_7_1: return"7.1"; case CHANNEL_LAYOUT_7_1_WIDE: return"7.1_WIDE"; case CHANNEL_LAYOUT_STEREO_DOWNMIX: return"STEREO_DOWNMIX"; case CHANNEL_LAYOUT_2POINT1: return"2POINT1"; case CHANNEL_LAYOUT_3_1: return"3.1"; case CHANNEL_LAYOUT_4_1: return"4.1"; case CHANNEL_LAYOUT_6_0: return"6.0"; case CHANNEL_LAYOUT_6_0_FRONT: return"6.0_FRONT"; case CHANNEL_LAYOUT_HEXAGONAL: return"HEXAGONAL"; case CHANNEL_LAYOUT_6_1: return"6.1"; case CHANNEL_LAYOUT_6_1_BACK: return"6.1_BACK"; case CHANNEL_LAYOUT_6_1_FRONT: return"6.1_FRONT"; case CHANNEL_LAYOUT_7_0_FRONT: return"7.0_FRONT"; case CHANNEL_LAYOUT_7_1_WIDE_BACK: return"7.1_WIDE_BACK"; case CHANNEL_LAYOUT_OCTAGONAL: return"OCTAGONAL"; case CHANNEL_LAYOUT_DISCRETE: return"DISCRETE"; case CHANNEL_LAYOUT_STEREO_AND_KEYBOARD_MIC: return"STEREO_AND_KEYBOARD_MIC"; case CHANNEL_LAYOUT_4_1_QUAD_SIDE: return"4.1_QUAD_SIDE"; case CHANNEL_LAYOUT_BITSTREAM: return"BITSTREAM";
}
RTC_DCHECK_NOTREACHED() << "Invalid channel layout provided: " << layout; return"";
}
} // namespace webrtc
Messung V0.5
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.