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

Unified 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: switch statement Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/audio_buffer.cc ('k') | media/base/sample_format.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « media/base/audio_buffer.cc ('k') | media/base/sample_format.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698