DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs
adts_constants.cc
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.
4 
5 #include "packager/media/formats/mpeg/adts_constants.h"
6 
7 #include "packager/base/macros.h"
8 
9 namespace edash_packager {
10 namespace media {
11 
12 // The following conversion table is extracted from ISO 14496 Part 3 -
13 // Table 1.16 - Sampling Frequency Index.
14 const int kAdtsFrequencyTable[] = {96000, 88200, 64000, 48000, 44100,
15  32000, 24000, 22050, 16000, 12000,
16  11025, 8000, 7350};
17 const size_t kAdtsFrequencyTableSize = arraysize(kAdtsFrequencyTable);
18 
19 // The following conversion table is extracted from ISO 14496 Part 3 -
20 // Table 1.17 - Channel Configuration.
21 const int kAdtsNumChannelsTable[] = {
22  0, 1, 2, 2, 4, 5, 6, 8 };
23 const size_t kAdtsNumChannelsTableSize = arraysize(kAdtsNumChannelsTable);
24 
25 } // namespace media
26 } // namespace edash_packager