class StreamPacket
Defined at line 5345 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/natural_types.h
Describes a packet consumed by `StreamSink` or produced by `StreamSource`.
Public Methods
void StreamPacket (Storage_ storage)
void StreamPacket (int64_t pts, uint32_t payload_buffer_id, uint64_t payload_offset, uint64_t payload_size, uint32_t flags, uint64_t buffer_config, uint64_t stream_segment_id)
void StreamPacket ()
Default constructs a |StreamPacket| only if all of its members are default constructible.
Defined at line 5355 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/natural_types.h
void StreamPacket (StreamPacket && )
Defined at line 5358 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/natural_types.h
void StreamPacket (const StreamPacket & other)
StreamPacket & operator= (StreamPacket && )
Defined at line 5359 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/natural_types.h
StreamPacket & operator= (const StreamPacket & other)
bool operator== (const StreamPacket & other)
bool operator!= (const StreamPacket & other)
int64_t pts ()
Time at which the packet is to be presented, according to the
presentation clock.
int64_t & pts ()
Time at which the packet is to be presented, according to the
presentation clock.
StreamPacket & pts (int64_t value)
Time at which the packet is to be presented, according to the
presentation clock.
uint32_t payload_buffer_id ()
ID of the payload buffer used for this packet.
When this struct is used with `StreamBufferSet`, this field is the ID of
a payload buffer provided via `StreamBufferSet.AddPayloadBuffer`. In
that case, this value must identify a payload buffer in the current set.
Other interfaces may define different semantics for this field.
uint32_t & payload_buffer_id ()
ID of the payload buffer used for this packet.
When this struct is used with `StreamBufferSet`, this field is the ID of
a payload buffer provided via `StreamBufferSet.AddPayloadBuffer`. In
that case, this value must identify a payload buffer in the current set.
Other interfaces may define different semantics for this field.
StreamPacket & payload_buffer_id (uint32_t value)
ID of the payload buffer used for this packet.
When this struct is used with `StreamBufferSet`, this field is the ID of
a payload buffer provided via `StreamBufferSet.AddPayloadBuffer`. In
that case, this value must identify a payload buffer in the current set.
Other interfaces may define different semantics for this field.
uint64_t payload_offset ()
Offset of the packet payload in the payload buffer.
This value plus the `payload_size` value must be less than or equal to
the size of the referenced payload buffer.
uint64_t & payload_offset ()
Offset of the packet payload in the payload buffer.
This value plus the `payload_size` value must be less than or equal to
the size of the referenced payload buffer.
StreamPacket & payload_offset (uint64_t value)
Offset of the packet payload in the payload buffer.
This value plus the `payload_size` value must be less than or equal to
the size of the referenced payload buffer.
uint64_t payload_size ()
Size in bytes of the payload.
This value plus the `payload_offest` value must be less than or equal to
the size of the referenced payload buffer.
uint64_t & payload_size ()
Size in bytes of the payload.
This value plus the `payload_offest` value must be less than or equal to
the size of the referenced payload buffer.
StreamPacket & payload_size (uint64_t value)
Size in bytes of the payload.
This value plus the `payload_offest` value must be less than or equal to
the size of the referenced payload buffer.
uint32_t flags ()
An bitwise-or'ed set of flags (see constants below) describing
properties of this packet.
uint32_t & flags ()
An bitwise-or'ed set of flags (see constants below) describing
properties of this packet.
StreamPacket & flags (uint32_t value)
An bitwise-or'ed set of flags (see constants below) describing
properties of this packet.
uint64_t buffer_config ()
The buffer configuration associated with this packet. The semantics of
this field depend on the interface with which this struct is used.
In many contexts, this field is not used. This field is intended for
situations in which buffer configurations (i.e. sets of payload buffers)
are explicitly identified. In such cases, the `payload_buffer_id` refers
to a payload buffer in the buffer configuration identified by this
field.
uint64_t & buffer_config ()
The buffer configuration associated with this packet. The semantics of
this field depend on the interface with which this struct is used.
In many contexts, this field is not used. This field is intended for
situations in which buffer configurations (i.e. sets of payload buffers)
are explicitly identified. In such cases, the `payload_buffer_id` refers
to a payload buffer in the buffer configuration identified by this
field.
StreamPacket & buffer_config (uint64_t value)
The buffer configuration associated with this packet. The semantics of
this field depend on the interface with which this struct is used.
In many contexts, this field is not used. This field is intended for
situations in which buffer configurations (i.e. sets of payload buffers)
are explicitly identified. In such cases, the `payload_buffer_id` refers
to a payload buffer in the buffer configuration identified by this
field.
uint64_t stream_segment_id ()
The stream segment associated with this packet. The semantics of this
field depend on the interface with which this struct is used. In many
contexts, this field is not used. This field is intended to distinguish
contiguous segments of the stream where stream properties (e.g.
encoding) may differ from segment to segment.
uint64_t & stream_segment_id ()
The stream segment associated with this packet. The semantics of this
field depend on the interface with which this struct is used. In many
contexts, this field is not used. This field is intended to distinguish
contiguous segments of the stream where stream properties (e.g.
encoding) may differ from segment to segment.
StreamPacket & stream_segment_id (uint64_t value)
The stream segment associated with this packet. The semantics of this
field depend on the interface with which this struct is used. In many
contexts, this field is not used. This field is intended to distinguish
contiguous segments of the stream where stream properties (e.g.
encoding) may differ from segment to segment.
void StreamPacket (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalStructCodingTraits