Class SampleFormatHelper
Provides helper methods for working with sample formats.
public static class SampleFormatHelper
- Inheritance
-
SampleFormatHelper
- Inherited Members
Methods
GetBitsPerSample(SampleFormat)
Gets the number of bits per sample for the specified sample format.
public static int GetBitsPerSample(SampleFormat sampleFormat)
Parameters
sampleFormatSampleFormatThe sample format.
Returns
- int
The number of bits per sample, or 0 if unknown.
IsPlanar(SampleFormat)
Determines whether the specified sample format is planar.
public static bool IsPlanar(SampleFormat sampleFormat)
Parameters
sampleFormatSampleFormatThe sample format.
Returns
- bool
True if the sample format is planar; otherwise, false.