class FakeLegacyStream
Defined at line 20 of file ../../src/camera/lib/fake_legacy_stream/fake_legacy_stream.h
Public Methods
void ~FakeLegacyStream ()
Defined at line 30 of file ../../src/camera/lib/fake_legacy_stream/fake_legacy_stream.h
fpromise::result<std::unique_ptr<FakeLegacyStream>, zx_status_t> Create (fidl::InterfaceRequest<fuchsia::camera2::Stream> request, fuchsia::sysmem2::AllocatorPtr & allocator, uint32_t format_index, async_dispatcher_t * dispatcher)
Creates a fake stream using the given request, processing events using an optionally provided
dispatcher. If dispatcher is omitted or null, uses the current thread's default dispatcher.
Defined at line 236 of file ../../src/camera/lib/fake_legacy_stream/fake_legacy_stream.cc
fpromise::result<void, std::string> StreamClientStatus ()
Returns OK if the client is behaving conformantly, or a descriptive error string if it is not.
zx_status_t SendFrameAvailable (fuchsia::camera2::FrameAvailableInfo info)
Sends the OnFrameAvailable event to the client. Returns ZX_ERR_BAD_STATE if it is currently
invalid to send a frame, otherwise returns ZX_OK.
bool IsStreaming ()
Indicates the streaming state.
bool IsOutstanding (uint32_t buffer_id)
Returns true iff the given buffer ID is held by a client.
std::tuple<float, float, float, float> GetRegionOfInterest ()
Returns the last region-of-interest parameters passed to the stream.
uint32_t GetImageFormat ()
Returns the last image format parameter passed to the stream.