Repository navigation
perf(encoder): code text with CABAC and 4x4 intra, and search motion to 128 px - #108
Closed
bjornpagen wants to merge 1 commit into
Closed
bjornpagen wants to merge 1 commit into
bjornpagen wants to merge 1 commit into
Conversation
…to 128 px With ultrafast's settings, new text was coded with CAVLC and 16x16 intra blocks only, and the motion search reached 16 px, so a real scroll's moves were not found and were coded as new pixels. Now frames use CABAC and 4x4 intra blocks (keyframes too, with a finer mode decision), and the motion search reaches 128 px. Measured on a terminal page at 3024x1898, one thread: - scrolling 132 px a frame: 44.0 KB and 9.3 ms a frame before, 30.8 KB and 11.0 ms after (CABAC alone 21% smaller, 4x4 intra alone 14%); - frames that moved 96 to 128 px: 48% smaller with the wider search; - a keyframe: 347 KB in 14.7 ms before, 237 KB in 11.5 ms after. Testing: the encoder benches (`scroll_cost`, ignored by default) take their sizes as constants; CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
With ultrafast's settings, new text was coded with CAVLC and 16x16 intra
blocks only, and the motion search reached 16 px, so a real scroll's
moves were not found and were coded as new pixels.
Now frames use CABAC and 4x4 intra blocks (keyframes too, with a finer
mode decision), and the motion search reaches 128 px. Measured on a
terminal page at 3024x1898, one thread:
and 11.0 ms after (CABAC alone 21% smaller, 4x4 intra alone 14%);
Testing: the encoder benches (
scroll_cost, ignored by default) taketheir sizes as constants; CI.
🤖 Generated with Claude Code