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

Unified Diff: chromecast/media/base/media_caps.cc

Issue 971913002: Chromecast: communicate HDMI-sink codec changes over IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more comments Created 5 years, 10 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/media/base/media_caps.cc
diff --git a/chromecast/media/base/media_caps.cc b/chromecast/media/base/media_caps.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d9be5780d69f3c98cef022aab694b369151c8ff3
--- /dev/null
+++ b/chromecast/media/base/media_caps.cc
@@ -0,0 +1,38 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chromecast/media/base/media_caps.h"
+
+namespace media {
+
+namespace {
+int hdmi_codecs = 0;
lcwu1 2015/03/03 20:11:11 s/hdmi_codecs/g_hdmi_codecs
gunsch 2015/03/04 02:35:47 Done.
+} // namespace
+
+void SetHdmiSinkCodecs(int codecs_mask) {
+ hdmi_codecs = codecs_mask;
+}
+
+bool HdmiSinkSupportsAC3() {
+ return hdmi_codecs & HdmiSinkCodec::kSinkCodecAc3;
+}
+
+bool HdmiSinkSupportsDTS() {
+ return hdmi_codecs & HdmiSinkCodec::kSinkCodecDts;
+}
+
+bool HdmiSinkSupportsDTSHD() {
+ return hdmi_codecs & HdmiSinkCodec::kSinkCodecDtsHd;
+}
+
+bool HdmiSinkSupportsEAC3() {
+ return hdmi_codecs & HdmiSinkCodec::kSinkCodecEac3;
+}
+
+bool HdmiSinkSupportsPcmSurroundSound() {
+ return hdmi_codecs & HdmiSinkCodec::kSinkCodecPcmSurroundSound;
+}
+
+} // namespace media
+

Powered by Google App Engine
This is Rietveld 408576698