CImageDisplay::CountPrefixBits
Microsoft DirectShow 9.0 |
CImageDisplay::CountPrefixBits
The CountPrefixBits method calculates the number of zero bits at the start of a specified bit field.
Syntax
DWORD CountPrefixBits( const DWORD Field );
Parameters
Field
Specifies a bit field as a DWORD value.
Return Value
Returns the number of zero bits that occur before the first 1 bit, or 0x80000000 if all bits are zero.
Remarks
This method is useful for working with color masks in VIDEOINFO structures.
Requirements
** Header:** Declared in Winutil.h; include Streams.h.
** Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).
See Also