Show / Hide Table of Contents

Enum SampleFormat

Defines the audio sample formats used for encoding and decoding audio data.

Namespace: FFmpeg.Audio
Assembly: FFmpeg.dll
Syntax
public enum SampleFormat

Fields

Name Description
Float32

32-bit floating-point audio sample format. Each sample is represented as a 32-bit floating-point number.

Float32Planar

32-bit floating-point audio sample format in planar layout. Each channel is represented in a separate plane, with each sample as a 32-bit floating-point number.

Float64

64-bit double precision floating-point audio sample format. Each sample is represented as a 64-bit floating-point number.

Float64Planar

64-bit double precision floating-point audio sample format in planar layout. Each channel is represented in a separate plane, with each sample as a 64-bit floating-point number.

Int16

Signed 16-bit audio sample format. Each sample is represented as a 16-bit signed integer.

Int16Planar

Signed 16-bit audio sample format in planar layout. Each channel is represented in a separate plane, with each sample as a 16-bit signed integer.

Int32

Signed 32-bit audio sample format. Each sample is represented as a 32-bit signed integer.

Int32Planar

Signed 32-bit audio sample format in planar layout. Each channel is represented in a separate plane, with each sample as a 32-bit signed integer.

Int64

Signed 64-bit audio sample format. Each sample is represented as a 64-bit signed integer.

Int64Planar

Signed 64-bit audio sample format in planar layout. Each channel is represented in a separate plane, with each sample as a 64-bit signed integer.

None

Invalid or unsupported sample format.

UInt8

Unsigned 8-bit audio sample format. Each sample is represented as an 8-bit unsigned integer.

UInt8Planar

Unsigned 8-bit audio sample format in planar layout. Each channel is represented in a separate plane, with each sample as an 8-bit unsigned integer.

__COUNT__

Total number of audio sample formats supported. This is not a valid sample format but an enumeration count. Do not use this value for actual sample format operations.

Extension Methods

SampleExtensions.AsPacked(SampleFormat)
SampleExtensions.AsPlanar(SampleFormat)
SampleExtensions.GetBitsPerSample(SampleFormat)
SampleExtensions.GetBytesPerSample(SampleFormat)
SampleExtensions.GetName(SampleFormat)
SampleExtensions.GetSampleFormatType(SampleFormat)
SampleExtensions.IsPacked(SampleFormat)
SampleExtensions.IsPlanar(SampleFormat)
SampleExtensions.ToFFmpegString(SampleFormat)
SampleExtensions.ValidateType<T>(SampleFormat)
  • View Source
In this article
Back to top Generated by DocFX