class CameraClient
Defined at line 16 of file ../../src/media/codec/examples/encode_camera/camera_client.h
This class discovers a camera device and connects to the first stream on the first configuration
and streams buffers to be shown.
Public Methods
void ~CameraClient ()
Defined at line 33 of file ../../src/media/codec/examples/encode_camera/camera_client.cc
fpromise::result<std::unique_ptr<CameraClient>, zx_status_t> Create (fuchsia::camera3::DeviceWatcherHandle watcher, fuchsia::sysmem2::AllocatorHandle allocator, bool list_configs, uint32_t config_index, uint32_t stream_index)
Defined at line 35 of file ../../src/media/codec/examples/encode_camera/camera_client.cc
void SetHandlers (AddCollectionHandler on_add_collection, RemoveCollectionHandler on_remove_collection, ShowBufferHandler on_show_buffer, MuteStateHandler on_mute_changed)
Registers handlers that are called when the cycler adds or removes a buffer collection. The
value returned by |on_add_collection| will be subsequently passed to |on_remove_collection|.
Defined at line 57 of file ../../src/media/codec/examples/encode_camera/camera_client.cc