File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ DeviceDemo::DeviceDemo()
3333{
3434 methods_.push_back (" Device.chipsetId" );
3535 methods_.push_back (" Device.deviceClass" );
36+ methods_.push_back (" Device.hdr" );
3637 methods_.push_back (" Device.timeInActiveState" );
3738 methods_.push_back (" Device.uid" );
3839 methods_.push_back (" Device.uptime" );
@@ -59,6 +60,15 @@ void DeviceDemo::runOption(const std::string& method)
5960 << std::endl;
6061 }
6162 }
63+ else if (method == " Device.hdr" )
64+ {
65+ auto r = Firebolt::IFireboltAccessor::Instance ().DeviceInterface ().hdr ();
66+ if (succeed (r))
67+ {
68+ std::cout << " HDR: {" << std::boolalpha << r->hdr10 << " , " << r->hdr10Plus << " , " << r->dolbyVision
69+ << " , " << r->hlg << " }" << std::endl;
70+ }
71+ }
6272 else if (method == " Device.timeInActiveState" )
6373 {
6474 auto r = Firebolt::IFireboltAccessor::Instance ().DeviceInterface ().timeInActiveState ();
Original file line number Diff line number Diff line change @@ -28,13 +28,22 @@ using namespace Firebolt::Display;
2828DisplayDemo::DisplayDemo ()
2929 : DemoBase(" Display" )
3030{
31+ methods_.push_back (" Display.edid" );
3132 methods_.push_back (" Display.maxResolution" );
3233 methods_.push_back (" Display.size" );
3334}
3435
3536void DisplayDemo::runOption (const std::string& method)
3637{
3738 std::cout << " Running Display method: " << method << std::endl;
39+ if (method == " Display.edid" )
40+ {
41+ auto r = Firebolt::IFireboltAccessor::Instance ().DisplayInterface ().edid ();
42+ if (succeed (r))
43+ {
44+ std::cout << " EDID: " << *r << std::endl;
45+ }
46+ }
3847 if (method == " Display.maxResolution" )
3948 {
4049 auto r = Firebolt::IFireboltAccessor::Instance ().DisplayInterface ().maxResolution ();
You can’t perform that action at this time.
0 commit comments