getBitsPerPixel Method

Returns the number of bits needed to store one pixel of image data in the specified format.
Syntax:
size_t getBitsPerPixel( tColorformatEnum colorformat );
size_t getBitsPerPixel( const GUID& subtype );

Name Description
colorformat

A member of the tColorformatEnum enumeration

subtype

A GUID specifying a media subtype. A list with possible media subtypes can be found at Constants.

Return Value:

This function returns the number of allocated bits per pixel in the specified color format or subtype, if the format is known.

If the specified format is unknown, the return value is 0.

Information:

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

See also: tColorformatEnum, Constants

<< Functions