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

Side by Side Diff: media/base/mime_util_internal.cc

Issue 1796393002: Remove Exynos from MediaCodec blacklist. Limit MediaTek blacklist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/mime_util_internal.h" 5 #include "media/base/mime_util_internal.h"
6 6
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 #include "base/strings/string_split.h" 8 #include "base/strings/string_split.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 254
255 MimeUtil::MimeUtil() : allow_proprietary_codecs_(false) { 255 MimeUtil::MimeUtil() : allow_proprietary_codecs_(false) {
256 #if defined(OS_ANDROID) 256 #if defined(OS_ANDROID)
257 platform_info_.is_unified_media_pipeline_enabled = 257 platform_info_.is_unified_media_pipeline_enabled =
258 IsUnifiedMediaPipelineEnabled(); 258 IsUnifiedMediaPipelineEnabled();
259 // When the unified media pipeline is enabled, we need support for both GPU 259 // When the unified media pipeline is enabled, we need support for both GPU
260 // video decoders and MediaCodec; indicated by HasPlatformDecoderSupport(). 260 // video decoders and MediaCodec; indicated by HasPlatformDecoderSupport().
261 // When the Android pipeline is used, we only need access to MediaCodec. 261 // When the Android pipeline is used, we only need access to MediaCodec.
262 platform_info_.has_platform_decoders = ArePlatformDecodersAvailable(); 262 platform_info_.has_platform_decoders = ArePlatformDecodersAvailable();
263 platform_info_.has_platform_vp8_decoder = 263 platform_info_.has_platform_vp8_decoder =
264 MediaCodecUtil::IsVp8DecoderAvailable(); 264 MediaCodecUtil::IsVp8CodecAvailable();
265 platform_info_.supports_opus = PlatformHasOpusSupport(); 265 platform_info_.supports_opus = PlatformHasOpusSupport();
266 platform_info_.supports_vp9 = PlatformHasVp9Support(); 266 platform_info_.supports_vp9 = PlatformHasVp9Support();
267 #endif 267 #endif
268 268
269 InitializeMimeTypeMaps(); 269 InitializeMimeTypeMaps();
270 } 270 }
271 271
272 MimeUtil::~MimeUtil() {} 272 MimeUtil::~MimeUtil() {}
273 273
274 SupportsType MimeUtil::AreSupportedCodecs( 274 SupportsType MimeUtil::AreSupportedCodecs(
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 const std::string& mime_type_lower_case, 627 const std::string& mime_type_lower_case,
628 bool is_encrypted) const { 628 bool is_encrypted) const {
629 Codec default_codec = Codec::INVALID_CODEC; 629 Codec default_codec = Codec::INVALID_CODEC;
630 if (!GetDefaultCodecLowerCase(mime_type_lower_case, &default_codec)) 630 if (!GetDefaultCodecLowerCase(mime_type_lower_case, &default_codec))
631 return false; 631 return false;
632 return IsCodecSupported(default_codec, mime_type_lower_case, is_encrypted); 632 return IsCodecSupported(default_codec, mime_type_lower_case, is_encrypted);
633 } 633 }
634 634
635 } // namespace internal 635 } // namespace internal
636 } // namespace media 636 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698