adts_constants.h 819 B

123456789101112131415161718192021222324252627282930
  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. #ifndef MEDIA_FORMATS_MPEG_ADTS_CONSTANTS_H_
  5. #define MEDIA_FORMATS_MPEG_ADTS_CONSTANTS_H_
  6. #include <stddef.h>
  7. #include "media/base/channel_layout.h"
  8. #include "media/base/media_export.h"
  9. namespace media {
  10. enum {
  11. kADTSHeaderMinSize = 7,
  12. kADTSHeaderSizeNoCrc = 7,
  13. kADTSHeaderSizeWithCrc = 9,
  14. kSamplesPerAACFrame = 1024,
  15. };
  16. MEDIA_EXPORT extern const int kADTSFrequencyTable[];
  17. MEDIA_EXPORT extern const size_t kADTSFrequencyTableSize;
  18. MEDIA_EXPORT extern const media::ChannelLayout kADTSChannelLayoutTable[];
  19. MEDIA_EXPORT extern const size_t kADTSChannelLayoutTableSize;
  20. } // namespace media
  21. #endif // MEDIA_FORMATS_MPEG_ADTS_CONSTANTS_H_