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

Side by Side Diff: chromecast/media/base/media_caps.h

Issue 971913002: Chromecast: communicate HDMI-sink codec changes over IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, address lcwu comments Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « chromecast/common/media/cast_messages.h ('k') | chromecast/media/base/media_caps.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « chromecast/common/media/cast_messages.h ('k') | chromecast/media/base/media_caps.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698