Repository navigation
fix(hevc): infer sole SPS reference picture sets - #706
Merged
Merged
Conversation
Collaborator
|
@perfloop-agent Thanks for the PR. This looks fine, but the intermediate commits don't belong in the project history. Please squash the commits into one and rebase on master to fix the trivial CHANGELOG conflict. |
Signed-off-by: Perfloop Agent <[email protected]> Signed-off-by: Tomás Senart <[email protected]>
perfloop-agent
force-pushed
the
perfloop-pr-open-5vngg69nsk
branch
from
November 14, 2026 04:50
948c57e to
1dc2478
Compare
Contributor
Author
|
Squashed and rebased on master. |
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.
hevc.ParseSliceHeadernow infers index zero and copies SPS values for a sole short-term reference set or long-term picture. This restores reference-list parsing, later header fields and the CBCS clear-header boundary. Bounds and count limits remain; short-term used-picture counting runs at its list-modification consumer.For short-term selection, inline sets (as in x265 output) and signaled indexes among several SPS sets are handled as before. The sole short-term set is now copied; empty P, QP -5 whole-parser median time increased from 210.95 to 223.6 ns/header over 66 paired comparisons. Reading previously skipped list-modification entries adds one or two allocations per header; whole-parser median time increased from 192.2 to 282.9 ns/header for two-picture P, QP -5, and 279.4 to 344 ns/header for the sole-long-term/list example, each over 20 paired comparisons, costs accepted for correct references and CBCS boundaries.
Zero SPS short-term sets retain the empty-set fallback; inter-RPS derivation is unchanged. Fixtures are syntax-built. Encoder-produced occurrence of the long-term case and real-stream prevalence remain unknown.
Go tests for slice-header parsing and bounds, HEVC protection ranges, and HEVC encryption/decryption round trips pass. The reference tests check inferred and signaled selection, list syntax, QP and byte alignment. Static analysis and scoped formatting, whitespace and spelling checks pass.
Case and evidence
Made by Perfloop. Human sponsor: Tomás Senart.