Format
Description:
[ CCode ( cprefix = "GST_AUDIO_FORMAT_" , type_id = "gst_audio_format_get_type ()" ) ]
[ GIR ( name = "AudioFormat" ) ]
public enum Format
[ GIR ( name = "AudioFormat" ) ]
public enum Format
Enum value describing the most common audio formats.
Namespace: Gst.Audio
Package: gstreamer-audio-1.0
Content:
Enum values:
- ENCODED - encoded audio format
- F32 - 32-bit floating point samples, native endianness
- F32BE - 32-bit floating point samples, big endian
- F32LE - 32-bit floating point samples, little endian
- F64 - 64-bit floating point samples, native endianness
- F64BE - 64-bit floating point samples, big endian
- F64LE - 64-bit floating point samples, little endian
- S16 - 16 bits in 16 bits, signed, native endianness
- S16BE - 16 bits in 16 bits, signed, big endian
- S16LE - 16 bits in 16 bits, signed, little endian
- S18 - 18 bits in 24 bits, signed, native endianness
- S18BE - 18 bits in 24 bits, signed, big endian
- S18LE - 18 bits in 24 bits, signed, little endian
- S20 - 20 bits in 24 bits, signed, native endianness
- S20BE - 20 bits in 24 bits, signed, big endian
- S20LE - 20 bits in 24 bits, signed, little endian
- S24 - 24 bits in 24 bits, signed, native endianness
- S24BE - 24 bits in 24 bits, signed, big endian
- S24LE - 24 bits in 24 bits, signed, little endian
- S24_32 - 24 bits in 32 bits, signed, native endianness
- S24_32BE - 24 bits in 32 bits, signed, big endian
- S24_32LE - 24 bits in 32 bits, signed, little endian
- S32 - 32 bits in 32 bits, signed, native endianness
- S32BE - 32 bits in 32 bits, signed, big endian
- S32LE - 32 bits in 32 bits, signed, little endian
- S8 - 8 bits in 8 bits, signed
- U16 - 16 bits in 16 bits, unsigned, native endianness
- U16BE - 16 bits in 16 bits, unsigned, big endian
- U16LE - 16 bits in 16 bits, unsigned, little endian
- U18 - 18 bits in 24 bits, unsigned, native endianness
- U18BE - 18 bits in 24 bits, unsigned, big endian
- U18LE - 18 bits in 24 bits, unsigned, little endian
- U20 - 20 bits in 24 bits, unsigned, native endianness
- U20BE - 20 bits in 24 bits, unsigned, big endian
- U20LE - 20 bits in 24 bits, unsigned, little endian
- U24 - 24 bits in 24 bits, unsigned, native endianness
- U24BE - 24 bits in 24 bits, unsigned, big endian
- U24LE - 24 bits in 24 bits, unsigned, little endian
- U24_32 - 24 bits in 32 bits, unsigned, native endianness
- U24_32BE - 24 bits in 32 bits, unsigned, big endian
- U24_32LE - 24 bits in 32 bits, unsigned, little endian
- U32 - 32 bits in 32 bits, unsigned, native endianness
- U32BE - 32 bits in 32 bits, unsigned, big endian
- U32LE - 32 bits in 32 bits, unsigned, little endian
- U8 - 8 bits in 8 bits, unsigned
- UNKNOWN - unknown or unset audio format
Static methods:
- public static Format build_integer (bool sign, int endianness, int width, int depth)
Construct a Format with given parameters.
- public static void fill_silence (FormatInfo info, uint8[] dest)
Fill
dest.length
bytes indest
with silence samples forinfo
. - public static Format from_string (string format)
Convert the
format
string to its Format .
Methods:
- public unowned FormatInfo? get_info ()
Get the FormatInfo for
format
- public unowned string to_string ()