template <>

class WireServer

Defined at line 5084 of file fidling/gen/sdk/fidl/fuchsia.camera3/fuchsia.camera3/cpp/fidl/fuchsia.camera3/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_camera3::Stream>|

and |::fidl::ServerEnd

<

::fuchsia_camera3::Stream>|).

Public Methods

void GetProperties (GetPropertiesCompleter::Sync & completer)

Gets the properties associated with this stream. The value returned is identical to the one

corresponding to this stream as returned by |Device.GetConfigurations|.

void GetProperties2 (GetProperties2Completer::Sync & completer)

Gets the properties associated with this stream. The value returned is identical to the one

corresponding to this stream as returned by |Device.GetConfigurations|.

void SetCropRegion (::fuchsia_camera3::wire::StreamSetCropRegionRequest * request, SetCropRegionCompleter::Sync & completer)

Sets the Stream's crop region to the provided region, with the top-left of the image

represented by (0,0) and the bottom-right of the image represented by (1,1). The resulting

content is subsequently scaled to fill the output buffer. If the implementation does not

precisely support the provided value, it will be expanded to the minimum region that covers

the provided region. If region is set to null, the crop region is unset, which is equivalent

to specifying a region covering the entire image. Upon initial connection, the region is

unset. If the stream does not support crop region, the connection is closed with the

ZX_ERR_NOT_SUPPORTED epitaph.

void WatchCropRegion (WatchCropRegionCompleter::Sync & completer)

Returns the crop region if it has changed from a previously returned value, or is called by

a client for the first time. Frame callbacks received after receiving this callback reflect

the use of the new region. See SetCropRegion for a description of the region parameter.

void SetResolution (::fuchsia_camera3::wire::StreamSetResolutionRequest * request, SetResolutionCompleter::Sync & completer)

Sets the resolution of the stream to the provided value. If the implementation does not

precisely support the provided value, it will be expanded to the minimum resolution that

exceeds the provided resolution.

void WatchResolution (WatchResolutionCompleter::Sync & completer)

Returns the resolution if it has changed from a previously returned value, or is called by

a client for the first time. Frame callbacks received after receiving this callback reflect

the new resolution.

void SetBufferCollection2 (::fuchsia_camera3::wire::StreamSetBufferCollection2Request * request, SetBufferCollection2Completer::Sync & completer)

If non-null, requests renegotiation of the buffer collection backing this stream, and

identifies this client as a participant in buffer negotiation. If null, identifies this

client as a non-participant in buffer negotiation. Upon initial connection, the client is a

non-participant. After registering as a participant, clients must always have an outstanding

call to WatchBufferCollection to receive tokens from the server so that they are able to

respond to current and future renegotiation requests.

void SetBufferCollection (::fuchsia_camera3::wire::StreamSetBufferCollectionRequest * request, SetBufferCollectionCompleter::Sync & completer)
void WatchBufferCollection2 (WatchBufferCollection2Completer::Sync & completer)

Returns when the server or any buffer negotiation participant (including the current client)

requires buffer renegotiation, and the current client is registered as a participant. Frame

callbacks received after receiving this callback apply to the newly negotiated collection.

Because the camera can output directly to these collections, each client should support

reading from a |fuchsia.sysmem.CoherencyDomain| of RAM, and set |ram_domain_supported| in

their |fuchsia.sysmem.BufferMemoryConstraints|.

void WatchBufferCollection (WatchBufferCollectionCompleter::Sync & completer)
void WatchOrientation (WatchOrientationCompleter::Sync & completer)

Returns the orientation if it has changed from a previously returned value, or is called by

a client for the first time. Frame callbacks received after receiving this callback reflect

the new orientation.

void GetNextFrame (GetNextFrameCompleter::Sync & completer)

See GetNextFrame2.

void GetNextFrame2 (GetNextFrame2Completer::Sync & completer)

Request the next available frame for this stream that has not yet been acquired by the

current client. Multiple participating clients may concurrently hold the same frame. Returns

when the stream has completed populating the buffer and may be read by the client, provided

the number of unreleased buffers is less than the count provided via the most recently

negotiated buffer collection token. If a buffer renegotiation is in progress, this call will

return only after the negotiation is complete and a new collection is available.

void Rebind (::fuchsia_camera3::wire::StreamRebindRequest * request, RebindCompleter::Sync & completer)

Request another connection to this Stream. This allows a client to delegate different

operations to different coordinated clients, or have multiple clients concurrently observe

frames produced by the stream.

void WireServer ()

Defined at line 5087 of file fidling/gen/sdk/fidl/fuchsia.camera3/fuchsia.camera3/cpp/fidl/fuchsia.camera3/cpp/wire_messaging.h

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 ~WireServer ()

Defined at line 5088 of file fidling/gen/sdk/fidl/fuchsia.camera3/fuchsia.camera3/cpp/fidl/fuchsia.camera3/cpp/wire_messaging.h