OLD | NEW |
---|---|
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 #include "media/base/android/media_codec_util.h" | 5 #include "media/base/android/media_codec_util.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
238 return true; | 238 return true; |
239 | 239 |
240 return (spec.find("m3u8") != std::string::npos); | 240 return (spec.find("m3u8") != std::string::npos); |
241 } | 241 } |
242 | 242 |
243 // static | 243 // static |
244 bool MediaCodecUtil::RegisterMediaCodecUtil(JNIEnv* env) { | 244 bool MediaCodecUtil::RegisterMediaCodecUtil(JNIEnv* env) { |
245 return RegisterNativesImpl(env); | 245 return RegisterNativesImpl(env); |
246 } | 246 } |
247 | 247 |
248 // static | |
249 bool MediaCodecUtil::IsVp8Blacklisted() { | |
250 if (!IsMediaCodecAvailable()) | |
ddorwin
2016/02/19 19:53:23
This probably isn't relevant anymore. Don't call t
DaleCurtis
2016/02/19 20:28:35
Perhaps, but the rest of the methods in the file d
ddorwin
2016/02/19 20:47:00
It makes more sense now that we're not asking abou
| |
251 return false; | |
252 | |
253 JNIEnv* env = AttachCurrentThread(); | |
254 ScopedJavaLocalRef<jstring> j_mime = ConvertUTF8ToJavaString(env, "vp8"); | |
255 return Java_MediaCodecUtil_isDecoderSupportedForDevice(env, j_mime.obj()); | |
ddorwin
2016/02/19 19:53:23
Invert.
DaleCurtis
2016/02/19 20:28:35
Done.
| |
256 } | |
257 | |
248 } // namespace media | 258 } // namespace media |
OLD | NEW |