MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / TransmitImageViewOn

Method TransmitImageViewOn

src/libcec/implementations/CECCommandHandler.cpp:927–940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

925}
926
927bool CCECCommandHandler::TransmitImageViewOn(const cec_logical_address iInitiator, const cec_logical_address iDestination)
928{
929 cec_command command;
930 cec_command::Format(command, iInitiator, iDestination, CEC_OPCODE_IMAGE_VIEW_ON);
931
932 if (Transmit(command, false, false))
933 {
934 CCECBusDevice* dest = m_processor->GetDevice(iDestination);
935 if (dest && dest->GetCurrentPowerStatus() != CEC_POWER_STATUS_ON)
936 dest->SetPowerStatus(CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON);
937 return true;
938 }
939 return false;
940}
941
942bool CCECCommandHandler::TransmitStandby(const cec_logical_address iInitiator, const cec_logical_address iDestination)
943{

Callers 1

ActivateSourceMethod · 0.45

Calls 3

GetCurrentPowerStatusMethod · 0.80
SetPowerStatusMethod · 0.80
GetDeviceMethod · 0.45

Tested by

no test coverage detected