Share via


IVPBaseConfig::SetVideoFormat (Compact 2013)

3/26/2014

This method sets the format to be used by the video.

Syntax

HRESULT SetVideoFormat(
  DWORD dwChosenEntry
);

Parameters

  • dwChosenEntry
    [in] Specifies the index (zero-based) of the video pixel format to use.

Return Value

Returns an HRESULT value that depends on the implementation of the interface.

HRESULT can include one of the following, or other values not listed.

Value

Description

E_FAIL

Failure.

E_INVALIDARG

Invalid argument.

NOERROR

The new video format was set.

Remarks

Retrieve the video formats by using IVPBaseConfig::GetVideoFormats.

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

IVPBaseConfig Interface