class StreamOutputConstraints

Defined at line 6551 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/wire_types.h

The stream-processor-controlled output configuration, including both

StreamBufferConstraints for the output and FormatDetails for the output.

Public Methods

bool IsEmpty ()

Returns whether no field is set.

bool HasUnknownData ()

Returns whether the table references unknown fields.

::fidl::WireTableBuilder< ::fuchsia_media::wire::StreamOutputConstraints> Builder (::fidl::AnyArena & arena)

Return a builder that by defaults allocates of an arena.

::fidl::WireTableExternalBuilder< ::fuchsia_media::wire::StreamOutputConstraints> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_media::wire::StreamOutputConstraints>> frame)

Return a builder that relies on explicitly allocating |fidl::ObjectView|s.

void StreamOutputConstraints ()

Defined at line 6553 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/wire_types.h

void StreamOutputConstraints (const StreamOutputConstraints & other)

Defined at line 6554 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/wire_types.h

StreamOutputConstraints & operator= (const StreamOutputConstraints & other)

Defined at line 6555 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/wire_types.h

void StreamOutputConstraints (StreamOutputConstraints && other)

Defined at line 6556 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/wire_types.h

StreamOutputConstraints & operator= (StreamOutputConstraints && other)

Defined at line 6557 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/wire_types.h

uint64_t & stream_lifetime_ordinal ()

A client which always immediately re-configures output buffers on

receipt of OnOutputConstraints() with buffer_constraints_action_required

true can safely ignore this field.

A client is permitted to ignore an OnOutputConstraints() message even with

buffer_constraints_action_required true if the client knows the server

has already been told to discard the remainder of the stream with the

same stream_lifetime_ordinal or if this stream_lifetime_ordinal field is

set to 0. The server is required to re-send needed output config via

OnOutputConstraints() with new stream_lifetime_ordinal and

buffer_constraints_action_required true, if the most recent completed

server-side output config isn't what the server wants/needs yet for the

new stream.

bool has_stream_lifetime_ordinal ()
bool & buffer_constraints_action_required ()

When the buffer constraints are delivered, they indicate whether action

is required. A false value here permits delivery of constraints which

are fresher without forcing a buffer reconfiguration. If this is false,

a client cannot assume that it's safe to immediately re-configure output

buffers. If this is true, the client can assume it's safe to

immediately configure output buffers once.

A client is permitted to ignore buffer constraint versions which have

buffer_constraints_action_required false. The server is not permitted

to change buffer_constraints_action_required from false to true for the

same buffer_constraints_version_ordinal.

For each configuration, a client must use new buffers, never buffers

that were previously used for anything else, and never buffers

previously used for any other StreamProcessor purposes. This rule

exists for multiple good reasons, relevant to both mid-stream changes,

and changes on stream boundaries. A client should just use new buffers

each time.

When this is true, the server has already de-refed as many low-level

output buffers as the server can while still performing efficient

transition to the new buffers and will de-ref the rest asap. A Sync()

is not necessary to achieve non-overlap of resource usage to the extent

efficiently permitted by the formats involved.

If buffer_constraints_action_required is true, the server _must_ not

deliver more output data until after output buffers have been configured

(or re-configured) by the client.

bool has_buffer_constraints_action_required ()
::fuchsia_media::wire::StreamBufferConstraints & buffer_constraints ()
bool has_buffer_constraints ()
void ~StreamOutputConstraints ()

Defined at line 6559 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/wire_types.h

Friends

class WireTableBaseBuilder
class WireTableBaseBuilder