Index: media/base/sample_format.h |
diff --git a/media/base/sample_format.h b/media/base/sample_format.h |
index 7a488433ab8925726b3a6a15cad85b1cb788e6ee..0260f169a03595b0754ca5e229b172cc53f1d049 100644 |
--- a/media/base/sample_format.h |
+++ b/media/base/sample_format.h |
@@ -34,6 +34,12 @@ MEDIA_EXPORT int SampleFormatToBytesPerChannel(SampleFormat sample_format); |
// Returns the name of the sample format as a string |
MEDIA_EXPORT const char* SampleFormatToString(SampleFormat sample_format); |
+// Returns true if |sample_format| is planar, false otherwise. |
+MEDIA_EXPORT bool IsPlanar(SampleFormat sample_format); |
+ |
+// Returns true if |sample_format| is interleaved, false otherwise. |
+MEDIA_EXPORT bool IsInterleaved(SampleFormat sample_format); |
+ |
} // namespace media |
#endif // MEDIA_BASE_SAMPLE_FORMAT_H |