ref_iface_IVDXVideoSource_CreateVideoDecoder - shekh/VirtualDub2 GitHub Wiki

VirtualDub Plugin SDK 1.2

IVDXVideoSource interface

IVDXVideoSource:: CreateVideoDecoder

Creates a new video decoder object for this video source.

bool CreateVideoDecoder(IVDXVideoDecoder **ppDecoder);

Parameters

ppDecoderModel Pointer to location to receive new decoder object pointer.

Thread safety

This method is not thread-safe.

Errors

Errors may not be returned from this function (see SetError()).

Return value

True if creation was successful, false for failure.

Remarks

It is possible for multiple video decoders to be created from the same video source; implementations must not return the same decoder object when the host requests two simultaneous decoders.

The decoder should have one outstanding reference on it; the host will call IVDXUnknown::Release() when it is finished with the object.

V3+ only: Returning false from this method is no longer always a fatal error. The host may elect to use the format returned by GetDirectFormat to supply a default decoder.


Copyright (C) 2007-2012 Avery Lee.

⚠️ **GitHub.com Fallback** ⚠️