calcBytesPerLine Method

Calculates the number of bytes required to store the data of a given frame type.
Syntax:
size_t   calcBytesPerLine( const FrameTypeInfo& info );
size_t     calcBytesPerLine( const GUID& subtype, int width );

Parameter Description
info

A FrameTypeInfo for which the number of bytes per line is to be calculated.

subtype

The mediasubtype GUID of a frame type for which the number of bytes per line is to be calculated.

width

The width of a frame type for which the number of bytes per line is to be calculated.

Return value:

The number of bytes per line in a frame of a given FrameTypeInfo or mediasubtype/width combination.

Information:

Namespace: DShowLib
Introduced in version 3.5

See also: FrameTypeInfo

<< Functions