Revert of Roll src/third_party/WebKit e0eac24:489c548 (svn 193311:193320) (patchset...
[chromium-blink-merge.git] / media / formats / mpeg / adts_constants.cc
blobbc898908fa36b08edffc8e2ba3e07969ab503739
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "media/formats/mpeg/adts_constants.h"
7 #include "base/macros.h"
9 namespace media {
11 // The following conversion table is extracted from ISO 14496 Part 3 -
12 // Table 1.16 - Sampling Frequency Index.
13 const int kADTSFrequencyTable[] = {96000, 88200, 64000, 48000, 44100,
14 32000, 24000, 22050, 16000, 12000,
15 11025, 8000, 7350};
16 const size_t kADTSFrequencyTableSize = arraysize(kADTSFrequencyTable);
18 // The following conversion table is extracted from ISO 14496 Part 3 -
19 // Table 1.17 - Channel Configuration.
20 const media::ChannelLayout kADTSChannelLayoutTable[] = {
21 media::CHANNEL_LAYOUT_NONE, media::CHANNEL_LAYOUT_MONO,
22 media::CHANNEL_LAYOUT_STEREO, media::CHANNEL_LAYOUT_SURROUND,
23 media::CHANNEL_LAYOUT_4_0, media::CHANNEL_LAYOUT_5_0_BACK,
24 media::CHANNEL_LAYOUT_5_1_BACK, media::CHANNEL_LAYOUT_7_1};
25 const size_t kADTSChannelLayoutTableSize = arraysize(kADTSChannelLayoutTable);
27 } // namespace media