IVPBaseConfig::GetVideoFormats (Windows CE 5.0)

Send Feedback

This method retrieves the video formats the decoder supports.

HRESULT GetVideoFormats(LPDWORDpdwNumFormats,LPDDPIXELFORMATpddPixelFormats);

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 Values

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

DirectShow applications and DirectShow filters have different include file and link library requirements.

For more information, see Setting Up the Build Environment.

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

See Also

IVPBaseConfig Interface

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.