Microsoft DirectX 8.1 (C++)

CImageDisplay::CheckBitFields

Checks that the bit fields in the VIDEOINFO structure are correct.

Syntax

BOOL CheckBitFields(
    const VIDEOINFO *pInput
);

Parameters

pInput

Pointer to the VIDEOINFO structure to check.

Return Value

Returns one of the following values.

Value Description
TRUE Bit fields are correct.
FALSE Bit fields contain an error.

Remarks

The assumption throughout the object is that any bitmasks are allowed no more than 8 bits to store a color component. This member function checks that the bit count assumption is enforced, and also ensures that all the bits set are contiguous.

This is a protected member function.

See Also