Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
|
DaleCurtis
2016/12/14 20:00:03
Should go in media/formats/ probably.
AndyWu
2016/12/15 22:20:03
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_BASE_AC3_UTIL_H_ | |
| 6 #define MEDIA_BASE_AC3_UTIL_H_ | |
| 7 | |
| 8 #include <stddef.h> | |
| 9 #include <stdint.h> | |
| 10 | |
| 11 #include "base/macros.h" | |
| 12 | |
| 13 namespace media { | |
| 14 | |
| 15 class Ac3Util { | |
| 16 public: | |
| 17 // Returns the total number of audio samples in the given buffer, which | |
| 18 // contains several complete AC3 syncframes. | |
| 19 static int ParseTotalAc3SampleCount(const uint8_t* data, size_t size); | |
| 20 | |
| 21 // Returns the total number of audio samples in the given buffer, which | |
| 22 // contains several complete E-AC3 syncframes. | |
| 23 static int ParseTotalEac3SampleCount(const uint8_t* data, size_t size); | |
| 24 | |
| 25 private: | |
| 26 DISALLOW_COPY_AND_ASSIGN(Ac3Util); | |
| 27 }; | |
| 28 | |
| 29 } // namespace media | |
| 30 | |
| 31 #endif // MEDIA_BASE_AC3_UTIL_H_ | |
| OLD | NEW |