Google is committed to advancing racial equity for Black communities. See how.

fuchsia.hardware.display.capture

PROTOCOLS

DisplayCaptureImpl

Defined in fuchsia.hardware.display.capture/display-capture.banjo

ImportImageForCapture

Import BufferCollection backed VMO pointed to by index. Importing the VMO usually involves pinning the VMO and updating display controller hardware registers with the physical address of the VMO to be used for capture. Returns out_capture_handle which maps to the allocated resource

Request

NameType
collection ZxUnownedHandle
index uint32

Response

NameType
s zx/status
capture_handle uint64

IsCaptureCompleted

Returns true if capture is completed. False otherwise.

Request

NameType

Response

NameType
b bool

ReleaseCapture

Releases resources allocated by capture_handle. Releasing resources from an active capture is not allowed and will cause unexpected behavior.

Request

NameType
capture_handle uint64

Response

NameType
s zx/status

SetDisplayCaptureInterface

The function will only be called once, and it will be called before any other functions are called.

Request

NameType
intf DisplayCaptureInterface

Response

NameType

StartCapture

Starts capture into the resource mapped by capture_handle (non-blocking) Only one active capture is allowed at a time. A valid image must be displayed during capture. Otherwise unexpected hardware behavior might occur. Drivers should not leave display hardware in this unexpected state. Drivers are expected to stop and/or abort capture if no valid image is being displayed.

Request

NameType
capture_handle uint64

Response

NameType
s zx/status

DisplayCaptureInterface

Defined in fuchsia.hardware.display.capture/display-capture.banjo

OnCaptureComplete

Request

NameType

Response

NameType

STRUCTS

TYPE ALIASES

NameValueDescription
ZxUnownedHandle uint32