template <>
class Server
Defined at line 885 of file fidling/gen/sdk/fidl/fuchsia.camera2/fuchsia.camera2/cpp/fidl/fuchsia.camera2/cpp/natural_messaging.h
Public Methods
void Server ()
Defined at line 888 of file fidling/gen/sdk/fidl/fuchsia.camera2/fuchsia.camera2/cpp/fidl/fuchsia.camera2/cpp/natural_messaging.h
void Start (StartCompleter::Sync & completer)
Control Operations
Starts the streaming of frames.
void Stop (StopCompleter::Sync & completer)
Stops the streaming of frames.
void ReleaseFrame (ReleaseFrameRequest & request, ReleaseFrameCompleter::Sync & completer)
Unlocks the specified frame, allowing the driver to reuse the memory.
void AcknowledgeFrameError (AcknowledgeFrameErrorCompleter::Sync & completer)
Provides flow control for receiving frame errors. See OnFrameAvailable comment.
void SetRegionOfInterest (SetRegionOfInterestRequest & request, SetRegionOfInterestCompleter::Sync & completer)
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 (SetImageFormatRequest & request, SetImageFormatCompleter::Sync & completer)
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 (GetImageFormatsCompleter::Sync & completer)
Get the image formats that this stream supports.
void GetBuffers2 (GetBuffers2Completer::Sync & completer)
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 (GetBuffersCompleter::Sync & completer)
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~Server ()
Defined at line 889 of file fidling/gen/sdk/fidl/fuchsia.camera2/fuchsia.camera2/cpp/fidl/fuchsia.camera2/cpp/natural_messaging.h