This protocol allows authorized application to capture output contents or window
contents(useful for window streaming).
Unreferences the frame. This request must be called as soon as it's no longer valid.
Start session and keeps sending frame.
This is the ACK to the current "ready" event. The next "frame" event will be sent only when current
"ready" event is acknowledged. The timestamp should be the same as the one sent in "ready" event.
If the frame has the "transient" flag, all objects sent before become invalid after this event.
Main event supplying the client with information about the frame. If the capture didn't fail, this event is always
emitted first before any other events.
When mask is provided, x and y should be offset relative to mask surface origin. Otherwise offset_x and offset_y should always
be zero.
This event is sent as soon as the frame is presented, indicating it is available for reading. This event
includes the time at which presentation happened at.
If the capture failed or if the frame is no longer valid after the "frame" event has been emitted, this
event will be used to inform the client to scrap the frame.
Destroys the context. This request can be sent at any time by the client.
Inform client to prepare buffer.
Inform client that all buffer formats supported are emitted.
Copy capture contents to provided buffer
Provides flags about the frame. This event is sent once before the
"ready" event.
Inform that buffer is ready for reading
Inform that frame copy fails.
Destroys the context. This request can be sent at any time by the client.
Selector is provided by compositor. Client can provide source hint to hint compositor
to provide certain kinds of source.
This event supplies the client some information about the capture source, including
the capture region relative to mask and source type.
There could a lot of reasons but the most common one is that selector is busy
This event can be called just once. A second call might result in a protocol error cause
we just provide transient
Often used by a screen recorder.
Destroy the treeland_capture_manager_v1 object.