class Controller

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

This is the interface to the camera driver

which allows setting up a given configuration

and setting up a stream.

Public Members

static const char[] Name_

Public Methods

void ~Controller ()
void GetNextConfig (GetNextConfigCallback callback)

Returns the next available configuration which the camera driver supports.

Returns ZX_ERR_STOP if no new configurations are available.

void CreateStream (uint32_t config_index, uint32_t stream_index, uint32_t image_format_index, ::fidl::InterfaceRequest< ::fuchsia::camera2::Stream> stream)

Set a particular configuration and create the requested stream.

`config_index` : Configuration index from the vector which needs to be applied.

`stream_index` : Stream index from the vector of streams provided within a config.

`stream` : Stream channel for the stream requested

`image_format_index` : Image format index which needs to be set up upon creation.

If there is already an active configuration which is different than the one

which is requested to be set, then the HAL will be closing all existing streams

and honor this new setup call.

If the new stream requested is already part of the existing running configuration

the HAL will just be creating this new stream while the other stream still exists as is.

void EnableStreaming ()

Enable/Disable Streaming

void DisableStreaming ()
void GetDeviceInfo (GetDeviceInfoCallback callback)