CImageDisplay::GetBitMasks
Microsoft DirectShow 9.0 |
CImageDisplay::GetBitMasks
The GetBitMasks method retrieves the color masks for a specified VIDEOINFO format.
Syntax
const DWORD *GetBitMasks( const VIDEOINFO *pVideoInfo );
Parameters
pVideoInfo
Pointer to the VIDEOINFO structure.
Return Value
Returns an array of three DWORD values.
Remarks
If the biCompression member is BI_BITFIELDS, the method returns a pointer to the color masks that are supplied in the dwBitMasks member. If the biCompression member is BI_RGB, the method returns the color masks that correspond to the bit depth. If the method fails (for example, the bit depth is less than 16), the method returns the array {0,0,0}.
Requirements
** Header:** Declared in Winutil.h; include Streams.h.
** Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).
See Also