AVSAMPLEFMTS16
AVSAMPLEFMTS16 refers to a 16-bit signed integer audio sample format commonly used in multimedia processing libraries, particularly within FFmpeg’s libavutil. In FFmpeg, the equivalent official identifier is AV_SAMPLE_FMT_S16, which denotes PCM audio data where each sample is a signed 16-bit value. This format is widely used for stereo and multi-channel audio, often stored in interleaved (packed) form, where consecutive samples from different channels appear sequentially in memory.
- Sample size and range: Each sample occupies 2 bytes, with values typically in the range -32768
- Layout: Packed (interleaved) AV_SAMPLE_FMT_S16 stores one sample per channel in sequence for each audio frame. Planar
- Endianness: The interpretation of the 16-bit values depends on endianness. In practice, conversions may be required
- Data layout: The format informs how decoders and encoders allocate buffers, read samples, and write frames.
- Interoperability: Since AV_SAMPLE_FMT_S16 is widely supported, AVSAMPLEFMTS16-compatible data is readily compatible with many audio codecs, containers,
- conversions: If input or output targets require different layouts or endianness, format converters (such as libswresample)
- The term AVSAMPLEFMTS16 is not a formal FFmpeg constant; in FFmpeg sources the standard identifier is