Repository navigation
feat(seek): asynchronous seek with cached preview - #78
Merged
Merged
Conversation
Add DecoderService::RequestSeek(frame, generation), which runs in the worker thread, answers cache hits immediately and otherwise emits a preview from the nearest cached frame before decoding and emitting the exact frame. The service now owns the FrameCache. MainWindow requests seeks asynchronously, ignores results whose generation is stale, and moves the display/audio/perf-log side effects to the FrameReady slot. The initial frame after loading stays synchronous so the window shows content before returning. GUI tests wait for the async result. Refs #70
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes frame selection non-blocking and adds a cached preview (part of #70).
DecoderService::RequestSeek(frame, generation): runs in the worker thread, returns a cache hit immediately, otherwise emitsPreviewReadywith the nearest cached frame and then decodes the exact frame (FrameReady).FrameCachemoved into the service and gainedNearest().MainWindow::ShowFrameAt()now only enqueues a request; display, labels, audio seek and the performance log happen in theFrameReadyslot. Results with an older generation are discarded.seek_pending_guard; container playback still uses blockingDecodeNextfor now.Verification
ctest: 75/75 pass (GUI tests now useQTRY_COMPARE/QTRY_VERIFYfor async results).tidy.shon the changed files: 0 issues.cache ... frame=N; cache misses log seek timings from the service.Remaining for #70
Refs #70