| OLD | NEW |
| 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 Loading... |
| 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 |
| 40 // Returns true if |sample_format| is interleaved, false otherwise. |
| 41 MEDIA_EXPORT bool IsInterleaved(SampleFormat sample_format); |
| 42 |
| 37 } // namespace media | 43 } // namespace media |
| 38 | 44 |
| 39 #endif // MEDIA_BASE_SAMPLE_FORMAT_H | 45 #endif // MEDIA_BASE_SAMPLE_FORMAT_H |
| OLD | NEW |