Share via


CBaseControlVideo::get_VideoWidth

 
Microsoft DirectShow 9.0

CBaseControlVideo::get_VideoWidth

The get_VideoWidth method retrieves the width of the native video.

Syntax

  HRESULT get_VideoWidth(
    long *pVideoWidth
);

Parameters

pVideoWidth

Pointer to the width of the native video, in pixels.

Return Value

Returns NOERROR if successful or E_OUTOFMEMORY if there is not enough memory available.

Remarks

This member function implements the IBasicVideo::get_VideoWidth method. It calls the pure virtual CBaseControlVideo::GetVideoFormat to retrieve the VIDEOINFOHEADER structure from the derived class.

Requirements

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

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

See Also