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

Unified Diff: media/base/decode_capabilities.cc

Issue 2803823003: Query LibVPX for VP9 profile support.
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | media/base/mime_util_internal.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/decode_capabilities.cc
diff --git a/media/base/decode_capabilities.cc b/media/base/decode_capabilities.cc
index 64c32ba1b4e506f373c6ef6d126e173fa885eba3..19765f0de74973c32cba926795a88334d8e3d781 100644
--- a/media/base/decode_capabilities.cc
+++ b/media/base/decode_capabilities.cc
@@ -7,6 +7,7 @@
#include "base/command_line.h"
#include "base/feature_list.h"
#include "media/base/media_switches.h"
+#include "media/filters/vpx_video_decoder.h"
#include "ui/display/display_switches.h"
namespace media {
@@ -142,7 +143,9 @@ bool IsSupportedVideoConfig(const VideoConfig& config) {
switch (config.codec) {
case media::kCodecVP9:
// Color management required for HDR to not look terrible.
- return IsColorSpaceSupported(config.color_space);
+ return IsColorSpaceSupported(config.color_space)
+ // VP9 decoding will fall through to LibVPX.
+ && VpxVideoDecoder::IsVideoConfigSupported(config);
case media::kCodecH264:
case media::kCodecVP8:
« no previous file with comments | « no previous file | media/base/mime_util_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698