Skip to content

ref_iface_IVDXVideoDecoderModel_SetDesiredFrame

shekh edited this page Apr 15, 2018 · 1 revision

VirtualDub Plugin SDK 1.2

IVDXVideoDecoderModel interface

IVDXVideoDecoderModel:: SetDesiredFrame

Selects the frame to decode. GetNextRequiredSample() is then called repeatedly to determine the required dependencies for this frame.

void SetDesiredFrame(sint64 sample_num);

Parameters

sample_num The sample number of the desired frame.

Thread safety

This method is not thread-safe.

Errors

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

Remarks

While this function selects a frame for decoding, it takes a sample number. This is usually easier to handle in the decoder model, as the decoder model typically needs to look up dependencies by decode order. Since the sample number usually matches decoding order, this saves a conversion from frame order to sample order.


Copyright (C) 2007-2012 Avery Lee.

Clone this wiki locally