calcBufferSize Method

Calculates the number of bytes needed to store one frame of image data with a specified dimension and color format.
Syntax:
size_t calcBufferSize( const SIZE& dim, tColorformatEnum colorformat );
size_t calcBufferSize( const SIZE& dim, const GUID& subtype );

Name Description
dim

Dimensions of one frame

colorformat

Color format as tColorformatEnum

subtype

The pixel format as a MediaSubType

Return Value:

Number of bytes needed to store one frame with the size dim in colorformat.

Information:

Header File: tisudshl.h
Namespace: DShowLib
Introduced in version 3.0

See also: tColorformatEnum, calcRequiredBuffersize

<< Functions