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

Side by Side Diff: media/base/android/media_codec_util.h

Issue 2358683002: Android: enable/disable WebRTC HW H264 with a flag. (Closed)
Patch Set: rebase to Oct17 Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_ANDROID_MEDIA_CODEC_UTIL_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // Test whether the path of a URL ends with ".m3u8". 70 // Test whether the path of a URL ends with ".m3u8".
71 static bool IsHLSPath(const GURL& url); 71 static bool IsHLSPath(const GURL& url);
72 72
73 // Indicates if the vp8 decoder or encoder is available on this device. 73 // Indicates if the vp8 decoder or encoder is available on this device.
74 static bool IsVp8DecoderAvailable(); 74 static bool IsVp8DecoderAvailable();
75 static bool IsVp8EncoderAvailable(); 75 static bool IsVp8EncoderAvailable();
76 76
77 // Indicates if the vp9 decoder is available on this device. 77 // Indicates if the vp9 decoder is available on this device.
78 static bool IsVp9DecoderAvailable(); 78 static bool IsVp9DecoderAvailable();
79 79
80 // Indicates if the h264 encoder is available on this device.
81 static bool IsH264EncoderAvailable();
82
80 // Indicates if SurfaceView and MediaCodec work well together on this device. 83 // Indicates if SurfaceView and MediaCodec work well together on this device.
81 static bool IsSurfaceViewOutputSupported(); 84 static bool IsSurfaceViewOutputSupported();
82 85
83 // Indicates if the decoder is known to fail when flushed. (b/8125974, 86 // Indicates if the decoder is known to fail when flushed. (b/8125974,
84 // b/8347958) 87 // b/8347958)
85 // When true, the client should work around the issue by releasing the 88 // When true, the client should work around the issue by releasing the
86 // decoder and instantiating a new one rather than flushing the current one. 89 // decoder and instantiating a new one rather than flushing the current one.
87 static bool CodecNeedsFlushWorkaround(MediaCodecBridge* codec); 90 static bool CodecNeedsFlushWorkaround(MediaCodecBridge* codec);
88 }; 91 };
89 92
90 } // namespace media 93 } // namespace media
91 94
92 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_ 95 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_
OLDNEW
« 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