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

Unified Diff: media/base/android/media_codec_util.h

Issue 2572573007: Use passthrough decoder for (E)AC3 formats (Closed)
Patch Set: Sanity checks Created 3 years, 7 months 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
Index: media/base/android/media_codec_util.h
diff --git a/media/base/android/media_codec_util.h b/media/base/android/media_codec_util.h
index 7aba8e537fe87bc4eca7ea2380e9821e688a4373..4b122e3ddbec735baee580e1aea1e8640e0b89e9 100644
--- a/media/base/android/media_codec_util.h
+++ b/media/base/android/media_codec_util.h
@@ -84,6 +84,10 @@ class MEDIA_EXPORT MediaCodecUtil {
// Indicates if MediaCodec.setOutputSurface() works on this device.
static bool IsSetOutputSurfaceSupported();
+ // Return true if the compressed audio |codec| will pass through the media
+ // pipelines without decompression.
+ static bool IsPassthroughAudioFormat(AudioCodec codec);
+
// Indicates if the decoder is known to fail when flushed. (b/8125974,
// b/8347958)
// When true, the client should work around the issue by releasing the
« no previous file with comments | « media/base/android/java/src/org/chromium/media/MediaCodecUtil.java ('k') | media/base/android/media_codec_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698