| 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..31f788fcbf1d5378c132b67c44326c8ebea1e385
|
| --- /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;
|
| +} // namespace
|
| +
|
| +void SetHdmiSinkCodecs(int codecs) {
|
| + hdmi_codecs = codecs;
|
| +}
|
| +
|
| +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
|
| +
|
|
|