Partager via


HEADER

 
Microsoft DirectShow 9.0

HEADER

The HEADER macro returns the address of the BITMAPINFOHEADER within a VIDEOINFOHEADER.

Syntax

  HEADER(
  pVideoInfo
  )

Parameters

pVideoInfo

Pointer to a VIDEOINFOHEADER structure or VIDEOINFO structure.

Return Value

Returns the address of the VIDEOINFOHEADER structure's bmiHeader member.

Example Code

LONG size = GetBitmapFormatSize(&bmi);
VIDEOINFO *pVi = static_cast<VIDEOINFO*>(CoTaskMemAlloc(size));
if (pVi != NULL)
{
    CopyMemory(HEADER(pVi), &bmi, sizeof(BITMAPINFOHEADER));
}

Requirements

**  Header:** Declared in Amvideo.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also