CBaseControlVideo::GetImageSize

Retrieves video image size information.

HRESULT GetImageSize(
  VIDEOINFOHEADER* pVideoInfo,
  long* pBufferSize,
  RECT* pSourceRect
);

Parameters

  • pVideoInfo
    Pointer to a VIDEOINFOHEADER structure to be filled in.
  • pBufferSize
    Size of the video buffer.
  • pSourceRect
    Rectangle dimensions of the source video.

Return Values

Returns an HRESULT value.

Remarks

This member function is a helper function used for creating memory image renderings of DIB images. It is called from the base class implementation of CBaseControlVideo::GetCurrentImage when a null pVideoImage parameter is passed to that member function. As a result, this member function constructs and returns a VIDEOINFOHEADER structure, using the information in pBufferSize and pSourceRect.

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements. See Setting Up the Build Environment for more information.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.