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

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

Issue 1468153003: Define AudioBuffer and VideoFrame for mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes Created 5 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_SAMPLE_FORMAT_H 5 #ifndef MEDIA_BASE_SAMPLE_FORMAT_H
6 #define MEDIA_BASE_SAMPLE_FORMAT_H 6 #define MEDIA_BASE_SAMPLE_FORMAT_H
7 7
8 #include "media/base/media_export.h" 8 #include "media/base/media_export.h"
9 9
10 namespace media { 10 namespace media {
(...skipping 16 matching lines...) Expand all
27 kSampleFormatMax = kSampleFormatPlanarS32, 27 kSampleFormatMax = kSampleFormatPlanarS32,
28 }; 28 };
29 29
30 // Returns the number of bytes used per channel for the specified 30 // Returns the number of bytes used per channel for the specified
31 // |sample_format|. 31 // |sample_format|.
32 MEDIA_EXPORT int SampleFormatToBytesPerChannel(SampleFormat sample_format); 32 MEDIA_EXPORT int SampleFormatToBytesPerChannel(SampleFormat sample_format);
33 33
34 // Returns the name of the sample format as a string 34 // Returns the name of the sample format as a string
35 MEDIA_EXPORT const char* SampleFormatToString(SampleFormat sample_format); 35 MEDIA_EXPORT const char* SampleFormatToString(SampleFormat sample_format);
36 36
37 // Returns true if |sample_format| is planar, false otherwise.
38 MEDIA_EXPORT bool IsPlanar(SampleFormat sample_format);
39
37 } // namespace media 40 } // namespace media
38 41
39 #endif // MEDIA_BASE_SAMPLE_FORMAT_H 42 #endif // MEDIA_BASE_SAMPLE_FORMAT_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698