Opened 13 years ago
Closed 12 years ago
Snappier seeking
This patch generalizes the "seek to exact frame" mechanism by allowing seeks to snap to the nearest keyframe if it is close enough (within a specified snap distance). Exact seeking uses a snap of 0 frames, and inexact seeking uses maxuint64 frames.
This is used to improve response time in the program editor. When the seek amount is 0.5 seconds or higher, a snap distance of half the seek distance is used. This can dramatically speed up editing, especially for HDPVR recordings where h.264 seeking is slow and (on my system) keyframes are 128 frames apart.
Snapping is not yet implemented in avformatdecoder.cpp because I don't know how to trigger that code path.
In the program editor, snapping could be made optional via an additional set of key bindings.
Change History (7)
Changed 13 years ago by Jim Stichnoth <stichnot@…>
Changed 13 years ago by Jim Stichnoth <stichnot@…>
Owner: |
changed from Janne Grunau to tralph
|
Status: |
new →
assigned
|
Owner: |
tralph deleted
|
Status: |
assigned →
new
|
Owner: |
set to Jim Stichnoth
|
Status: |
new →
assigned
|
Type: |
Patch - Feature →
Developer Task
|
Milestone: |
unknown →
0.26
|
Resolution: |
→ Fixed
|
Status: |
assigned →
closed
|
Fixed in 4d0bbbe1e54aaa91abbd233b7e5a1a48103462f2