summaryrefslogtreecommitdiff
path: root/Ports/qt6-qtbase
diff options
context:
space:
mode:
authorZaggy1024 <zaggy1024@gmail.com>2022-11-13 19:28:56 -0600
committerAndreas Kling <kling@serenityos.org>2022-11-25 23:28:39 +0100
commitf6830eaf73e3a18d4a386f6f164de5ff70d76cd3 (patch)
tree18979d8fab7acd946b689b7f0588abd3422ef910 /Ports/qt6-qtbase
parent56d8b96c78234577b7565815e56e43bfc5ea16a0 (diff)
downloadserenity-f6830eaf73e3a18d4a386f6f164de5ff70d76cd3.zip
LibVideo: Implement Matroska Cues for faster keyframe lookup
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.
Diffstat (limited to 'Ports/qt6-qtbase')
0 files changed, 0 insertions, 0 deletions