tests: add CEA-608 SCC test corpus (pop-on, roll-up, special chars)#2256
Closed
DhanushVarma-2 wants to merge 1 commit intoCCExtractor:masterfrom
Closed
tests: add CEA-608 SCC test corpus (pop-on, roll-up, special chars)#2256DhanushVarma-2 wants to merge 1 commit intoCCExtractor:masterfrom
DhanushVarma-2 wants to merge 1 commit intoCCExtractor:masterfrom
Conversation
Hand-crafted SCC test files for validating CEA-608 subtitle decoding: - popon_basic.scc: pop-on mode (ENM/RCL/PAC/EDM/EOC, multi-line, speaker change) - rollup_basic.scc: roll-up mode (RU2->RU3 switch, CR scrolling) - special_chars.scc: special chars (music note, registered, trademark) and extended chars (accented E/I/A with replacement semantics) Includes generate_scc.py (reproducible generation with parity table), expected SRT reference files, and run_tests.sh for automated diffing.
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.
The files live in tests/cea608_corpus/ and cover:
Pop-on captions (popon_basic.scc) — the standard buffer-flip workflow with ENM/RCL/PAC/EDM/EOC. Tests single-line, multi-line, and the >> speaker change convention.
Roll-up captions (rollup_basic.scc) — starts with 2-row roll-up, switches to 3-row mid-stream, tests carriage return scrolling behavior.
Special & extended characters (special_chars.scc) — music notes, ®, ™, and accented characters like É, Ï, À. The extended characters use the replacement semantics where they overwrite the previous character, which is a common source of bugs in 608 decoders.