class FakeStream

Defined at line 14 of file ../../src/camera/lib/fake_stream/fake_stream.h

This class provides a mechanism for simulating streams.

Public Methods

void ~FakeStream ()

Defined at line 16 of file ../../src/camera/lib/fake_stream/fake_stream.h

fpromise::result<std::unique_ptr<FakeStream>, zx_status_t> Create (fuchsia::camera3::StreamProperties properties, fit::function<void (fidl::InterfaceHandle<fuchsia::sysmem2::BufferCollectionToken>)> on_set_buffer_collection)

Create a fake stream with the given properties.

Defined at line 16 of file ../../src/camera/lib/fake_stream/fake_stream_impl.cc

fidl::InterfaceRequestHandler<fuchsia::camera3::Stream> GetHandler ()

Returns a request handler for the Stream interface.

void AddFrame (fuchsia::camera3::FrameInfo info)

Sends the given frame info to a Stream client with a pending request. If there are none, it

will be queued and returned for future client requests.