Table of Contents

Class SampleFormatHelper

Namespace
VAST.Common
Assembly
VAST.Common.dll

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

sampleFormat SampleFormat

The 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

sampleFormat SampleFormat

The sample format.

Returns

bool

True if the sample format is planar; otherwise, false.