class Vout

Defined at line 43 of file ../../src/graphics/display/drivers/amlogic-display/vout.h

Represents the Video Output (VOUT) module and the connected display device.

Public Methods

VoutType type ()

Returns the type of the video output module.

bool SupportsHotplugDetection ()

Returns true if the video output module supports hot-plug detection.

AddedDisplayInfo CreateAddedDisplayInfo (display::DisplayId display_id)

Creates display information to be sent to the display coordinator when a

display is connected.

zx::result<> UpdateStateOnDisplayConnected ()

Updates the internal state of the Vout module when a display is connected.

void DisplayDisconnected ()

Updates the internal state of the Vout module when a display is disconnected.

std::optional<display::Mode> GetDisplayMode (display::ModeId mode_id)

Returns the display mode corresponding to the given `mode_id`.

`mode_id` must be valid.

zx::result<> ApplyConfiguration (display::ModeId mode_id)

Applies the configuration for the given `mode_id`.

zx::result<> PowerOff ()

Attempt to turn off all connected displays, and disable clocks. This will

also stop vsync interrupts. This is aligned with the interface for

fuchsia.hardware.display, where a disabled display does not produce OnVsync

events.

This method is not guaranteed to power off all devices. Returns ZX_OK if

successful, ZX_ERR_UNSUPPORTED if the panel cannot be powered off. May

return other errors.

zx::result<> PowerOn ()

Turn on all connected displays and reprogram clocks. This will resume vsync

interrupts as well.

This method is not guaranteed to power on all devices. Returns ZX_OK if

successful, ZX_ERR_UNSUPPORTED if the panel cannot be powered on. May

return other errors.

zx::result<> SetFrameVisibility (bool frame_visible)

Makes the frames generated by the Video Input Unit (VIU) visible if

`frame_visible` is true. Otherwise, hides the frame generated by the VIU.

Returns ZX_ERR_NOT_SUPPORTED if the Video Output Module doesn't support

hiding video input unit frames.

void Dump ()

Dumps the current state of the Vout module for debugging purposes.

void ~Vout ()

Defined at line 45 of file ../../src/graphics/display/drivers/amlogic-display/vout.h