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

Unified Diff: chromecast/common/media/cast_media_client.cc

Issue 2723833002: WebM support for new multipart VP9 string. (Closed)
Patch Set: Put parsing behind a flag (--enable-hdr-output OR --enable-new-vp9-codec-string) Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chromecast/common/media/cast_media_client.cc
diff --git a/chromecast/common/media/cast_media_client.cc b/chromecast/common/media/cast_media_client.cc
index af8110fd545f6b8f1fd10d806809873ea19971a4..ce3c0e4498fa80adc3e026c91f92db2ddcb954af 100644
--- a/chromecast/common/media/cast_media_client.cc
+++ b/chromecast/common/media/cast_media_client.cc
@@ -57,15 +57,18 @@ void CastMediaClient::RecordRapporURL(const std::string& metric,
}
// static
-bool CastMediaClient::IsSupportedVideoConfig(::media::VideoCodec codec,
- ::media::VideoCodecProfile profile,
- int level) {
+bool CastMediaClient::IsSupportedVideoConfig(
+ const ::media::VideoConfig& config) {
+// TODO(servolk): make use of eotf.
+
#if defined(OS_ANDROID)
return supported_profiles_->IsSupportedVideoConfig(
- ToCastVideoCodec(codec, profile), ToCastVideoProfile(profile), level);
+ ToCastVideoCodec(config.codec, config.profile),
+ ToCastVideoProfile(config.profile), config.level);
#else
return MediaCapabilitiesShlib::IsSupportedVideoConfig(
- ToCastVideoCodec(codec, profile), ToCastVideoProfile(profile), level);
+ ToCastVideoCodec(config.codec, config.profile),
+ ToCastVideoProfile(config.profile), config.level);
#endif
}

Powered by Google App Engine
This is Rietveld 408576698