class Stream

Defined at line 2541 of file fidling/gen/sdk/fidl/fuchsia.camera2/fuchsia.camera2/hlcpp/fuchsia/camera2/cpp/fidl.h

Public Methods

void ~Stream ()
void Start ()

Control Operations

Starts the streaming of frames.

void Stop ()

Stops the streaming of frames.

void ReleaseFrame (uint32_t buffer_id)

Unlocks the specified frame, allowing the driver to reuse the memory.

void AcknowledgeFrameError ()

Provides flow control for receiving frame errors. See OnFrameAvailable comment.

void SetRegionOfInterest (float x_min, float y_min, float x_max, float y_max, SetRegionOfInterestCallback callback)

Data operations

This is used by clients to provide inputs for region of interest

selection.

Inputs are the x

&

y coordinates for the new bounding box.

For streams which do not support smart framing, this would

return an error.

void SetImageFormat (uint32_t image_format_index, SetImageFormatCallback callback)

Change the image format of the stream. This is called when clients want

to dynamically change the resolution of the stream while the streaming is

is going on.

void GetImageFormats (GetImageFormatsCallback callback)

Get the image formats that this stream supports.

void GetBuffers2 (GetBuffers2Callback callback)

Returns a token to the buffers that are being used to output frames on the stream. The

token is `dispensable` which means it doesn't have to be turned in to sysmem for allocation

to complete. This also means that any SetConstraints call on the returned token can't

conflict with the constraints in the `StreamConfig`, otherwise attempts to wait for buffers

on the token will fail.

void GetBuffers (GetBuffersCallback callback)