OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMECAST_MEDIA_BASE_MEDIA_CAPS_ | 5 #ifndef CHROMECAST_MEDIA_BASE_MEDIA_CAPS_ |
6 #define CHROMECAST_MEDIA_BASE_MEDIA_CAPS_ | 6 #define CHROMECAST_MEDIA_BASE_MEDIA_CAPS_ |
7 | 7 |
8 namespace media { | 8 namespace media { |
9 | 9 |
| 10 enum HdmiSinkCodec { |
| 11 kSinkCodecAc3 = 1, |
| 12 kSinkCodecDts = 1 << 1, |
| 13 kSinkCodecDtsHd = 1 << 2, |
| 14 kSinkCodecEac3 = 1 << 3, |
| 15 kSinkCodecPcmSurroundSound = 1 << 4, |
| 16 }; |
| 17 |
| 18 // Records the known supported codecs for the current HDMI sink, as a bit mask |
| 19 // of HdmiSinkCodec values. |
| 20 void SetHdmiSinkCodecs(int codecs_mask); |
| 21 |
10 bool HdmiSinkSupportsAC3(); | 22 bool HdmiSinkSupportsAC3(); |
11 bool HdmiSinkSupportsDTS(); | 23 bool HdmiSinkSupportsDTS(); |
12 bool HdmiSinkSupportsDTSHD(); | 24 bool HdmiSinkSupportsDTSHD(); |
13 bool HdmiSinkSupportsEAC3(); | 25 bool HdmiSinkSupportsEAC3(); |
14 bool HdmiSinkSupportsPcmSurroundSound(); | 26 bool HdmiSinkSupportsPcmSurroundSound(); |
15 | 27 |
16 } // namespace media | 28 } // namespace media |
17 | 29 |
18 #endif // CHROMECAST_MEDIA_BASE_MEDIA_CAPS_ | 30 #endif // CHROMECAST_MEDIA_BASE_MEDIA_CAPS_ |
OLD | NEW |