| synopsis || arguments || prev || next |
virtual int time_to_frame( kdu_long time_instant)
Java: int Time_to_frame( long time_instant)
[Declared in "../apps/compressed_io/mj2.h"]
Use this function to determine the frame whose period includes the supplied time_instant, measured in the time scale (ticks per second) identified by the get_timescale function. If time_instant exceeds the duration of the video track, the function returns the index of the last frame in the video. If time_instant refers to a time prior to the start of the video sequence, the function returns 0.