| synopsis || arguments || prev || next |

mj2_video_source::time_to_frame

Java: Mj2_video_source::Time_to_frame

virtual int time_to_frame( kdu_long time_instant)

Java: int Time_to_frame( long time_instant)

Overrides kdu_compressed_video_source::time_to_frame

[Declared in "../apps/compressed_io/mj2.h"]

Go to class description.


Synopsis

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.


Arguments

time_instant [kdu_long]


| top || synopsis || arguments || prev || next |