| synopsis || return value || arguments || prev || next |

mj2_video_source::seek_to_frame

Java: Mj2_video_source::Seek_to_frame

virtual bool seek_to_frame( int frame_idx)

Java: boolean Seek_to_frame( int frame_idx)

Overrides kdu_compressed_video_source::seek_to_frame

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

Go to class description.


Synopsis

Call this function to set the index (starts from 0) of the frame to be opened by the next call to open_image. The function should behave correctly even if an image is already open. You may use get_num_frames to determine the number of frames which are available. If the video is interlaced and the field mode (see set_field_mode) is 2, the next call to open_image will open the first field of the indicated frame.


Return Value

False if the frame does not exist.

Arguments

frame_idx [int]


| top || synopsis || return value || arguments || prev || next |