Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1217)

Side by Side Diff: media/base/ac3_util.h

Issue 2572573007: Use passthrough decoder for (E)AC3 formats (Closed)
Patch Set: Fix AudioBuffer Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/ac3_util.cc » ('j') | media/base/ac3_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698