class SupportedEncodings
Defined at line 3334 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/cpp/fidl/fuchsia.hardware.audio/cpp/wire_types.h
Supported formats for encoded audio.
This table defines a valid set of configurations. All fields are independent, which
implies a cross-product: any listed `channel_set` is supported at any listed
`frame_rate` for any listed `encoded_type`.
If a device supports multiple encoders with *different* rate/channel constraints
(e.g. AAC supports 48kHz but SBC only supports 44.1kHz), the device must
report them as separate entries in the `SupportedFormats` vector.
Public Methods
bool IsEmpty ()
Returns whether no field is set.
bool HasUnknownData ()
Returns whether the table references unknown fields.
::fidl::WireTableBuilder< ::fuchsia_hardware_audio::wire::SupportedEncodings> Builder (::fidl::AnyArena & arena)
Return a builder that by defaults allocates of an arena.
::fidl::WireTableExternalBuilder< ::fuchsia_hardware_audio::wire::SupportedEncodings> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_audio::wire::SupportedEncodings>> frame)
Return a builder that relies on explicitly allocating |fidl::ObjectView|s.
void Allocate (::fidl::AnyArena & allocator)
void Init (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_audio::wire::SupportedEncodings>> && frame_ptr)
void SupportedEncodings ()
Defined at line 3336 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/cpp/fidl/fuchsia.hardware.audio/cpp/wire_types.h
void SupportedEncodings (const SupportedEncodings & other)
Defined at line 3337 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/cpp/fidl/fuchsia.hardware.audio/cpp/wire_types.h
void SupportedEncodings (SupportedEncodings && other)
Defined at line 3339 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/cpp/fidl/fuchsia.hardware.audio/cpp/wire_types.h
::fidl::VectorView< ::fuchsia_hardware_audio::wire::ChannelSet> & decoded_channel_sets ()
Vector of possible `ChannelSets` supported.
A `ChannelSet` specifies a channel configuration (including a channel-count), plus a number
of optional attributes.
Each entry in this vector must describe a unique channel count. For example, this
vector cannot contain two different `ChannelSet` entries that both apply to a
2-channel configuration.
Required.
bool has_decoded_channel_sets ()
::fidl::VectorView<uint32_t> & decoded_frame_rates ()
Vector of possible frame rates supported.
If present, must contain at least one value.
Values must be listed in ascending order.
Optional.
bool has_decoded_frame_rates ()
uint32_t & min_encoding_bitrate ()
The minimum encoding bitrate of the stream in bits per second.
Cannot exceed 'max_encoding_bitrate', if both are present.
Optional.
bool has_min_encoding_bitrate ()
uint32_t & max_encoding_bitrate ()
The maximum encoding bitrate of the stream in bits per second.
Cannot be less than 'min_encoding_bitrate', if both are present.
Optional.
bool has_max_encoding_bitrate ()
::fidl::VectorView< ::fuchsia_hardware_audio::wire::EncodingType> & encoding_types ()
The encoder types that support the configurations listed above.
Must contain at least one value. Values in this vector must be unique.
Required.
bool has_encoding_types ()
SupportedEncodings & set_decoded_channel_sets (::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_hardware_audio::wire::ChannelSet>> elem)
SupportedEncodings & set_decoded_channel_sets (std::nullptr_t )
SupportedEncodings & clear_decoded_channel_sets ()
SupportedEncodings & operator= (const SupportedEncodings & other)
Defined at line 3338 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/cpp/fidl/fuchsia.hardware.audio/cpp/wire_types.h
SupportedEncodings & set_decoded_frame_rates (::fidl::ObjectView< ::fidl::VectorView<uint32_t>> elem)
SupportedEncodings & set_decoded_frame_rates (std::nullptr_t )
SupportedEncodings & clear_decoded_frame_rates ()
SupportedEncodings & set_min_encoding_bitrate (uint32_t elem)
SupportedEncodings & clear_min_encoding_bitrate ()
SupportedEncodings & set_max_encoding_bitrate (uint32_t elem)
SupportedEncodings & clear_max_encoding_bitrate ()
SupportedEncodings & set_encoding_types (::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_hardware_audio::wire::EncodingType>> elem)
SupportedEncodings & set_encoding_types (std::nullptr_t )
SupportedEncodings & clear_encoding_types ()
void SupportedEncodings (::fidl::AnyArena & allocator)
void SupportedEncodings (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_audio::wire::SupportedEncodings>> && frame)
This constructor allows a user controlled allocation (not using a Arena).
It should only be used when performance is key.
As soon as the frame is given to the table, it must not be used directly or for another table.
SupportedEncodings & operator= (SupportedEncodings && other)
Defined at line 3340 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/cpp/fidl/fuchsia.hardware.audio/cpp/wire_types.h
void ~SupportedEncodings ()
Defined at line 3342 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/cpp/fidl/fuchsia.hardware.audio/cpp/wire_types.h
Friends
class WireTableBaseBuilder
class WireTableBaseBuilder