Roll src/third_party/WebKit 6b63e20:35e1984 (svn 201060:201061)
[chromium-blink-merge.git] / chromecast / media / base / media_caps.cc
blob29248828a038de8885d35134c9b17c7d1bd76db1
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
3 // found in the LICENSE file.
5 #include "chromecast/media/base/media_caps.h"
7 namespace media {
9 namespace {
10 int g_hdmi_codecs = 0;
11 } // namespace
13 void SetHdmiSinkCodecs(int codecs_mask) {
14 g_hdmi_codecs = codecs_mask;
17 bool HdmiSinkSupportsAC3() {
18 return g_hdmi_codecs & HdmiSinkCodec::kSinkCodecAc3;
21 bool HdmiSinkSupportsDTS() {
22 return g_hdmi_codecs & HdmiSinkCodec::kSinkCodecDts;
25 bool HdmiSinkSupportsDTSHD() {
26 return g_hdmi_codecs & HdmiSinkCodec::kSinkCodecDtsHd;
29 bool HdmiSinkSupportsEAC3() {
30 return g_hdmi_codecs & HdmiSinkCodec::kSinkCodecEac3;
33 bool HdmiSinkSupportsPcmSurroundSound() {
34 return g_hdmi_codecs & HdmiSinkCodec::kSinkCodecPcmSurroundSound;
37 } // namespace media