2014-04-07 17:27:07 +00:00
|
|
|
// Copyright 2014 The Chromium Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef MEDIA_FORMATS_MPEG_ADTS_CONSTANTS_H_
|
|
|
|
#define MEDIA_FORMATS_MPEG_ADTS_CONSTANTS_H_
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
namespace shaka {
|
2014-04-07 17:27:07 +00:00
|
|
|
namespace media {
|
|
|
|
|
|
|
|
enum {
|
2014-04-08 00:39:14 +00:00
|
|
|
kAdtsHeaderMinSize = 7,
|
2014-04-07 17:27:07 +00:00
|
|
|
kSamplesPerAACFrame = 1024,
|
|
|
|
};
|
|
|
|
|
2014-04-08 00:39:14 +00:00
|
|
|
extern const int kAdtsFrequencyTable[];
|
|
|
|
extern const size_t kAdtsFrequencyTableSize;
|
2014-04-07 17:27:07 +00:00
|
|
|
|
2014-04-08 00:39:14 +00:00
|
|
|
extern const int kAdtsNumChannelsTable[];
|
|
|
|
extern const size_t kAdtsNumChannelsTableSize;
|
2014-04-07 17:27:07 +00:00
|
|
|
|
|
|
|
} // namespace media
|
2016-05-20 21:19:33 +00:00
|
|
|
} // namespace shaka
|
2014-04-07 17:27:07 +00:00
|
|
|
|
|
|
|
#endif // MEDIA_FORMATS_MPEG_ADTS_CONSTANTS_H_
|