class SupportedEncodings

Defined at line 6284 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.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 Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

SupportedEncodings & set_decoded_channel_sets (::std::vector< ::fuchsia::hardware::audio::ChannelSet> _value)
SupportedEncodings & set_decoded_frame_rates (::std::vector<uint32_t> _value)
SupportedEncodings & set_min_encoding_bitrate (uint32_t _value)
SupportedEncodings & set_max_encoding_bitrate (uint32_t _value)
SupportedEncodings & set_encoding_types (::std::vector< ::fuchsia::hardware::audio::EncodingType> _value)
void SupportedEncodings ()
void SupportedEncodings (SupportedEncodings && other)
void ~SupportedEncodings ()
SupportedEncodings & operator= (SupportedEncodings && other)
::std::unique_ptr<SupportedEncodings> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, SupportedEncodings * _value, size_t _offset)
zx_status_t Clone (SupportedEncodings * _result)
const ::std::vector< ::fuchsia::hardware::audio::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.

Defined at line 6299 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

bool has_decoded_channel_sets ()

Defined at line 6303 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

::std::vector< ::fuchsia::hardware::audio::ChannelSet> * mutable_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.

Defined at line 6316 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

void clear_decoded_channel_sets ()

Defined at line 6324 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

const ::std::vector<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.

Defined at line 6337 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

bool has_decoded_frame_rates ()

Defined at line 6341 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

::std::vector<uint32_t> * mutable_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.

Defined at line 6350 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

void clear_decoded_frame_rates ()

Defined at line 6358 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

const 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.

Defined at line 6370 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

bool has_min_encoding_bitrate ()

Defined at line 6374 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

uint32_t * mutable_min_encoding_bitrate ()

The minimum encoding bitrate of the stream in bits per second.

Cannot exceed 'max_encoding_bitrate', if both are present.

Optional.

Defined at line 6382 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

void clear_min_encoding_bitrate ()

Defined at line 6390 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

const 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.

Defined at line 6402 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

bool has_max_encoding_bitrate ()

Defined at line 6406 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

uint32_t * mutable_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.

Defined at line 6414 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

void clear_max_encoding_bitrate ()

Defined at line 6422 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

const ::std::vector< ::fuchsia::hardware::audio::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.

Defined at line 6434 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

bool has_encoding_types ()

Defined at line 6438 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

::std::vector< ::fuchsia::hardware::audio::EncodingType> * mutable_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.

Defined at line 6446 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h

void clear_encoding_types ()

Defined at line 6454 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h