CRI Sofdec2
Last Updated: 2022-11-21 16:25 p
|
This section explains the seek playback feature.
Seek playback allows a movie to be played starting from any frame, not just the first frame. Playback position is specified by frame number.
To perform seek playback, create a player handle and be sure to register a memory allocator for the metadata using the criManaPlayer_SetMetaDataWorkAllocator() before playback. Registering a memory allocator allocates a work buffer for the metadata necessary for seek playback when the header is analyzed.
Playback position is specified by frame number. Use criManaPlayer_SetSeekPosition() to specify playback position.
Specify playback position before playback starts.
The frame number range that can be specified is from 0 to (total number of movie frames minus one).
You cannot specify a seek position and change playback position while a movie is playing.
Stop and replay the movie if you want to change the playback position.
This section explains the information you can get during seek playback.
This section explains reading files during seek playback.
A file cannot just suddenly be read partway in the data, even when playing a movie back partway through. Actual reading takes place when a little is read from the beginning of the file. The file is then sought within the data and reread.
This is why during seek playback the time from executing the playback function to actually getting the frame is longer than with simple playback.