<div dir="ltr">This patch enhances CEA-708 closed caption positioning to be aspect ratio<br>aware, addressing specification compliance issues where captions were<br>positioned incorrectly on different video aspect ratios.<br><br>The implementation dynamically selects between 4:3 (160 columns) and 16:9<br>(210 columns) grid layouts based on the source video's display aspect ratio<br>(DAR). CEA-608 captions continue to use the traditional 4:3 grid exclusively<br>for backward compatibility. The font scaling ratio has been corrected from<br>1.06 to 1.3 to improve visual consistency.<br><br>Changes include:<br>- Dynamic aspect ratio detection in CEA708SpuConvert using DAR calculation<br>- Grid selection logic (4:3 for DAR < 5:3, 16:9 for DAR >= 5:3)<br>- New UPDT_REGION_USES_16_9_GRID flag in substext.h<br>- Comprehensive test suite with aspect ratio and integration tests<br>- Updated build system configuration for new tests<br><br>Testing performed:<br>- Unit tests validate aspect ratio calculations for common video formats<br>- Integration tests verify decoder functionality with different formats<br>- Regression testing confirms no impact on existing CEA-608 functionality<br>- Tests pass on both autotools and meson build systems<br><br>This addresses positioning inaccuracies on widescreen content and improves<br>specification compliance for modern broadcast standards.<br><br>Signed-off-by: Thomas Symborski <<a href="mailto:thomas.symborski@gmail.com">thomas.symborski@gmail.com</a>></div>