WMVIDEOINFOHEADER structure

The WMVIDEOINFOHEADER structure describes the bitmap and color information for a video image.

Syntax


typedef struct _WMVIDEOINFOHEADER {
  RECT             rcSource;
  RECT             rcTarget;
  DWORD            dwBitRate;
  DWORD            dwBitErrorRate;
  LONGLONG         AvgTimePerFrame;
  BITMAPINFOHEADER bmiHeader;
} WMVIDEOINFOHEADER;

Members

rcSource

RECT structure that specifies the source video window.

rcTarget

RECT structure that specifies the destination video window.

dwBitRate

DWORD containing the approximate bit rate, in bits per second.

dwBitErrorRate

DWORD containing the error rate for this stream, in bits per second.

AvgTimePerFrame

When writing an ASF file, this member specifies the desired average time per frame in 100-nanosecond units. When reading an ASF file, this member is always zero.

bmiHeader

BITMAPINFOHEADER structure that contains color and dimension information for the video image bitmap. BITMAPINFOHEADER is a Windows GDI structure.

Remarks

This structure is identical to the DirectShow VIDEOINFOHEADER structure.

For uncompressed video of 16 or fewer bits per pixel (bpp), additional information is required. You must specify bit fields for 16 bpp and palette information for 8 or fewer bpp video. To convey this information, allocate enough consecutive memory to hold the additional information and copy the data to the memory directly following this structure. When you specify the address and size of this structure in the WM_MEDIA_TYPE structure for a stream, include the size of the palette or bit field data.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Version

Windows Media Format 7 SDK, or later versions of the SDK

Header

Wmsdkidl.h (include Wmsdk.h)

 

 

Show: