OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stdint.h> | 5 #include <stdint.h> |
6 #include "media/filters/opus_constants.h" | 6 #include "media/filters/opus_constants.h" |
7 | 7 |
8 namespace media { | 8 namespace media { |
9 | 9 |
10 const uint8_t kDefaultOpusChannelLayout[OPUS_MAX_CHANNELS_WITH_DEFAULT_LAYOUT] = | 10 const uint8_t kDefaultOpusChannelLayout[OPUS_MAX_CHANNELS_WITH_DEFAULT_LAYOUT] = |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 // 7 Channels (6.1), from Vorbis order to: | 35 // 7 Channels (6.1), from Vorbis order to: |
36 // Front L, Front R, Front Center, LFE, Side L, Side R, Back Center | 36 // Front L, Front R, Front Center, LFE, Side L, Side R, Back Center |
37 {0, 2, 1, 6, 3, 4, 5}, | 37 {0, 2, 1, 6, 3, 4, 5}, |
38 | 38 |
39 // 8 Channels (7.1), from Vorbis order to: | 39 // 8 Channels (7.1), from Vorbis order to: |
40 // Front L, Front R, Center, LFE, Back L, Back R, Side L, Side R | 40 // Front L, Front R, Center, LFE, Back L, Back R, Side L, Side R |
41 {0, 2, 1, 7, 5, 6, 3, 4}, | 41 {0, 2, 1, 7, 5, 6, 3, 4}, |
42 }; | 42 }; |
43 | 43 |
44 const uint8_t | 44 const uint8_t kOpusVorbisChannelMap[OPUS_MAX_VORBIS_CHANNELS] |
45 kOpusVorbisChannelMap[OPUS_MAX_VORBIS_CHANNELS][OPUS_MAX_VORBIS_CHANNELS] = | 45 [OPUS_MAX_VORBIS_CHANNELS] = { |
46 { | 46 {0}, |
47 {0}, | 47 {0, 1}, |
48 {0, 1}, | 48 {0, 2, 1}, |
49 {0, 2, 1}, | 49 {0, 1, 2, 3}, |
50 {0, 1, 2, 3}, | 50 {0, 4, 1, 2, 3}, |
51 {0, 4, 1, 2, 3}, | 51 {0, 4, 1, 2, 3, 5}, |
52 {0, 4, 1, 2, 3, 5}, | 52 {0, 4, 1, 2, 3, 5, 6}, |
53 {0, 4, 1, 2, 3, 5, 6}, | 53 {0, 6, 1, 2, 3, 4, 5, 7}, |
54 {0, 6, 1, 2, 3, 4, 5, 7}, | |
55 }; | 54 }; |
56 | 55 |
57 } // namespace media | 56 } // namespace media |
OLD | NEW |