mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
f6830eaf73
This implements the fastest seeking mode available for tracks with cues using an array of cue points for each track. It approximates the index based on the seeking timestamp and then finds the earliest cue point before the timestamp. The approximation assumes that cues will be on a regular interval, which I don't believe is always the case, but it should at least be faster than iterating the whole set of cue points each time. Cues are stored per track, but most videos will only have cue points for the video track(s) that are present. For now, this assumes that it should only seek based on the cue points for the selected track. To seek audio in a video file, we should copy the seeked iterator over to the audio track's iterator after seeking is complete. The iterator will then skip to the next audio block. |
||
---|---|---|
.. | ||
Color | ||
Containers | ||
VP9 | ||
CMakeLists.txt | ||
DecoderError.h | ||
PlaybackManager.cpp | ||
PlaybackManager.h | ||
Sample.h | ||
Track.h | ||
VideoDecoder.h | ||
VideoFrame.cpp | ||
VideoFrame.h |