feat(scc): Add configurable frame rate and styled PAC codes for SCC output #1916
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
This PR addresses the remaining items from issue #1191 (SCC/CCD format improvements):
--scc-framerateoption now affects both input parsing AND output encoding (was hardcoded to 29.97fps)Changes
1. SCC Output Frame Rate
scc_frameratetoencoder_cfgandencoder_ctxstructsget_scc_fps()helper function in SCC encoderadd_timestamp()to use configurable frame rate2. Styled PAC (Preamble Address Code) Optimization
get_styled_pac_byte2()- computes byte2 for styled PACs (0x40-0x4F range)row_uses_high_range()- determines which PAC byte range to usewrite_styled_preamble()- writes styled PAC directlycan_use_styled_pac()- checks if optimization applieswrite_cc_buffer_as_scenarist()to use styled PAC when appropriateThis resolves the TODO comment at line 487: "Preamble code need to take into account font as well"
Test plan
Issue Reference
Fixes #1191
🤖 Generated with Claude Code