ref_iface_IVDXVideoSource_GetSampleNumberForFrame - shekh/VirtualDub2 GitHub Wiki
VirtualDub Plugin SDK 1.2
IVDXVideoSource interface
Converts a sample number to the corresponding frame number.
sint64 GetSampleNumberForFrame(sint64 frame_num);
sample_num | Frame number to convert to a sample number. This is always in the range of 0 to N-1, where N is the number of frames in the video source. |
This method is not thread-safe.
Errors may not be returned from this function (see SetError()).
The sample number of the corresponding frame. This must be in the range of 0 to N-1, where N is the number of frames in the video source.
This mapping must be reversible with GetFrameNumberForSample() — that is, GetFrameNumberForSample(GetSampleNumberForFrame(frame)) == frame in all cases.
When using the default I/P decoder model, this function must return sample_num directly.
Copyright (C) 2007-2012 Avery Lee.