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"
10 int g_hdmi_codecs
= 0;
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
;