Skip to main content
Header: spf/api/modules/media_fmt_api_basic.h

Structures

payload_data_fmt_iec_packetized_t

Members
uint32_t
uint16_t
uint16_t

payload_data_fmt_generic_compressed_t

Payload structure used when media_format_t::data_format = DATA_FORMAT_GENERIC_COMPRESSED. Members
uint32_t
Number of samples per second in the audio stream.
uint16_t
Number of bits required to store one sample.
uint16_t
Number of channels.

payload_media_fmt_pcm_t

Payload of MEDIA_FMT_ID_PCM when media_format_t::fmt_id = MEDIA_FMT_ID_PCM and data_format = DATA_FORMAT_FIXED_POINT. Members
uint32_t
Number of samples per second in the audio stream.
uint16_t
Bit width of each sample.
uint8_t
Alignment of bits_per_sample in sample_word_size.
uint8_t
Indicates whether the data is interleaved.
uint16_t
Number of bits required to store one sample.
uint16_t
Indicates the Q factor of the PCM data:
uint16_t
Indicates whether PCM samples are stored in little endian or big endian format.
uint16_t
Number of channels in the channel_mapping array.

media_format_t

Payload structure used by the following opcodes: Members
uint32_t
Format of the data.
uint32_t
Media format ID of the data stream.
uint32_t
Size of the payload that immediately follows this structure.

param_id_encoder_output_config_t

Payload of the PARAM_ID_ENCODER_OUTPUT_CONFIG parameter. Members
uint32_t
Format of the output data.
uint32_t
Media format ID for the output data stream.
uint32_t
Size of the custom payload that immediately follows this structure.

Type Definitions

payload_data_fmt_iec_packetized_t

payload_data_fmt_generic_compressed_t

payload_media_fmt_pcm_t

media_format_t

param_id_encoder_output_config_t

Enumerations

pcm_channel_map

Channel map values.

Values

Macros

INFINITE

Enumeration for infinity.

INVALID_VALUE

Enumeration for an invalid value.

BITS_PER_SAMPLE_16

Sixteen bits per sample (= sample word size).

BITS_PER_SAMPLE_24

Twenty-four bits per sample (= sample word size).

BITS_PER_SAMPLE_32

Thirty-two bits per sample (= sample word size).

BYTES_PER_SAMPLE_TWO

Two bytes per sample.

BYTES_PER_SAMPLE_THREE

Three bytes per sample.

BYTES_PER_SAMPLE_FOUR

Four bytes per sample.

BIT_WIDTH_16

Sample has a bit width of 16 (the actual width of the sample in a word).

BIT_WIDTH_24

Sample has a bit width of 24 (the actual width of the sample in a word).

BIT_WIDTH_32

Sample has a bit width of 32 (the actual width of the sample in a word).

PCM_LSB_ALIGNED

Enumeration for LSB alignment.

PCM_MSB_ALIGNED

Enumeration for MSB alignment.

PCM_Q_FACTOR_15

Enumeration for the Q15 factor.

PCM_Q_FACTOR_23

Enumeration for the Q23 factor.

PCM_Q_FACTOR_27

Enumeration for the Q27 factor.

PCM_Q_FACTOR_31

Enumeration for the Q31 factor.

PCM_QFORMAT_SHIFT_FACTOR

Shift factor for Q31 <=> Q28 conversion for 32-bit P.

SAMPLE_RATE_8K

Sampling rate is 8 kHz.

SAMPLE_RATE_11_025K

Sampling rate is 11.025 kHz.

SAMPLE_RATE_12K

Sampling rate is 12 kHz.

SAMPLE_RATE_16K

Sampling rate is 16 kHz.

SAMPLE_RATE_22_05K

Sampling rate is 22.05 kHz.

SAMPLE_RATE_24K

Sampling rate is 24 kHz.

SAMPLE_RATE_32K

Sampling rate is 32 kHz.

SAMPLE_RATE_44_1K

Sampling rate is 44.1 kHz.

SAMPLE_RATE_48K

Sampling rate is 48 kHz.

SAMPLE_RATE_88_2K

Sampling rate is 88.2 kHz.

SAMPLE_RATE_96K

Sampling rate is 96 kHz.

SAMPLE_RATE_176_4K

Sampling rate is 176.4 kHz.

SAMPLE_RATE_192K

Sampling rate is 192 kHz.

SAMPLE_RATE_352_8K

Sampling rate is 352.8 kHz.

SAMPLE_RATE_384K

Sampling rate is 384 kHz.

PCM_LITTLE_ENDIAN

Byte order is little endian.

PCM_BIG_ENDIAN

Byte order is big endian.

PCM_INTERLEAVED

PCM data is interleaved.

PCM_DEINTERLEAVED_PACKED

PCM data is de-interleaved packed.

PCM_DEINTERLEAVED_UNPACKED

PCM data is de-interleaved unpacked.

DATA_FORMAT_FIXED_POINT

Enumeration for the fixed-point data format.

DATA_FORMAT_IEC61937_PACKETIZED

Data format is an IEC 61937 packetized stream.

DATA_FORMAT_IEC60958_PACKETIZED

Data format is IEC 60958 packetized stream for PCM only.

DATA_FORMAT_DSD_OVER_PCM

Data format is a DSD-over-PCM stream.

DATA_FORMAT_GENERIC_COMPRESSED

Data format is a generic compressed stream.

DATA_FORMAT_RAW_COMPRESSED

Data format is a Raw compressed stream.

DATA_FORMAT_COMPR_OVER_PCM_PACKETIZED

Compressed bitstreams are packetized like PCM using a QTI-designed packetizer.

DATA_FORMAT_IEC60958_PACKETIZED_NON_LINEAR

Data format is an IEC 60958 packetized stream for compressed streams.

PARAM_VAL_UNSET

Value of a configured parameter (like bits_per_sample and num_channels) is don’t care .

PARAM_VAL_NATIVE

Value of a configured parameter (like bits_per_sample and num_channels) must follow the input media format that the module will receive or has received.

PARAM_VAL_INVALID

Value of a configured parameter (like bits_per_sample and num_channels) is considered invalid and the Set parameter command should result in an error.

MEDIA_FMT_ID_PCM

Identifier for the media format used to identify a PCM stream.

PARAM_ID_MEDIA_FORMAT

Identifier for the parameter used to set the media format on any Shared Memory Endpoint module.

PARAM_ID_ENCODER_OUTPUT_CONFIG

Identifier for the parameter that configures the encoder.