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 #ifndef MEDIA_FILTERS_OPUS_CONSTANTS_H_ | 5 #ifndef MEDIA_FILTERS_OPUS_CONSTANTS_H_ |
6 #define MEDIA_FILTERS_OPUS_CONSTANTS_H_ | 6 #define MEDIA_FILTERS_OPUS_CONSTANTS_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 namespace media { | 10 namespace media { |
9 | 11 |
10 // The Opus specification is part of IETF RFC 6716: | 12 // The Opus specification is part of IETF RFC 6716: |
11 // http://tools.ietf.org/html/rfc6716 | 13 // http://tools.ietf.org/html/rfc6716 |
12 | 14 |
13 // Opus Extra Data contents: | 15 // Opus Extra Data contents: |
14 // - "OpusHead" magic signature (64 bits) | 16 // - "OpusHead" magic signature (64 bits) |
15 // - version number (8 bits) | 17 // - version number (8 bits) |
16 // - Channels C (8 bits) | 18 // - Channels C (8 bits) |
17 // - Pre-skip (16 bits) | 19 // - Pre-skip (16 bits) |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 extern const uint8_t kFFmpegChannelDecodingLayouts[OPUS_MAX_VORBIS_CHANNELS] | 105 extern const uint8_t kFFmpegChannelDecodingLayouts[OPUS_MAX_VORBIS_CHANNELS] |
104 [OPUS_MAX_VORBIS_CHANNELS]; | 106 [OPUS_MAX_VORBIS_CHANNELS]; |
105 | 107 |
106 // Opus internal to Vorbis channel order mapping written in the header. | 108 // Opus internal to Vorbis channel order mapping written in the header. |
107 extern const uint8_t | 109 extern const uint8_t |
108 kOpusVorbisChannelMap[OPUS_MAX_VORBIS_CHANNELS][OPUS_MAX_VORBIS_CHANNELS]; | 110 kOpusVorbisChannelMap[OPUS_MAX_VORBIS_CHANNELS][OPUS_MAX_VORBIS_CHANNELS]; |
109 | 111 |
110 } // namespace media | 112 } // namespace media |
111 | 113 |
112 #endif // MEDIA_FILTERS_OPUS_CONSTANTS_H_ | 114 #endif // MEDIA_FILTERS_OPUS_CONSTANTS_H_ |
OLD | NEW |