BITMASKS
Microsoft DirectShow 9.0 |
BITMASKS
The BITMASKS macro retrieves the color masks from a VIDEOINFO structure.
Syntax
BITMASKS( pbmi )
Parameters
pbmi
Pointer to a VIDEOINFO structure.
Return Value
Returns a DWORD pointer value that is the address of the dwBitMasks member of the VIDEOINFO structure.
Remarks
This macro calculates the address as an offset from the start of the BITMAPINFOHEADER structure, using the value of bmiHeader.biSize. Make sure to initialize the VIDEOINFO structure before calling this macro.
Example Code
VIDEOINFO *pVi; /* Initialize pVi (not shown). */ DWORD dwRed = BITMASKS(pVi)[iRED], dwGreen = BITMASKS(pVi)[iGREEN], dwBlue = BITMASKS(pVi)[iBLUE];
Requirements
** Header:** Declared in Amvideo.h; include Streams.h.
** Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).
See Also