Partager via


IVPBaseConfig::GetVideoFormats (Compact 2013)

3/26/2014

This method retrieves the video formats the decoder supports.

Syntax

HRESULT GetVideoFormats(
  LPDWORD pdwNumFormats,
  LPDDPIXELFORMAT pddPixelFormats
);

Parameters

  • pdwNumFormats
    [in, out] Pointer to the number of DDPIXELFORMAT structures provided by the pddPixelFormats parameter.

    When called, this method updates this parameter with the actual number of structures retrieved.

    If pddPixelFormats is NULL, this method updates this parameter with the total number of formats the driver supports.

  • pddPixelFormats
    [in, out] Pointer to an array of DDPIXELFORMAT structures that the driver fills.

    Specify NULL to retrieve only the count of supported formats in pdwNumFormats.

Return Value

Returns NOERROR if the count or structures were returned, or a driver error otherwise.

Remarks

This method queries for either the number of DDPIXELFORMAT structures supported by the driver, or retrieves as many structures as can fit into the provided buffer space.

The callee must allocate the correct amount of space for the number of structures requested.

Set the video format by using IVPBaseConfig::SetVideoFormat.

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

IVPBaseConfig Interface