From 144a0e431c6a3895bebfb4195d3e332694ed0c8f Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 4 Dec 2024 21:44:40 +1100 Subject: [PATCH] cea708overlay: produce a slightly more CEA-608 layout Part-of: --- video/closedcaption/src/cea708utils.rs | 6 +++--- video/closedcaption/tests/cea608tocea708.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/video/closedcaption/src/cea708utils.rs b/video/closedcaption/src/cea708utils.rs index 0492138b..d7014d68 100644 --- a/video/closedcaption/src/cea708utils.rs +++ b/video/closedcaption/src/cea708utils.rs @@ -178,7 +178,7 @@ impl Cea708ServiceWriter { true, true, false, - 1, + 2, 1, ); gst::trace!(CAT, "active window {:?}", self.active_window); @@ -227,7 +227,7 @@ impl Cea708ServiceWriter { true, true, true, - 1, + 2, 1, )), ]) @@ -254,7 +254,7 @@ impl Cea708ServiceWriter { true, true, true, - 1, + 2, 1, )), Code::SetPenLocation(SetPenLocationArgs::new(rollup_count - 1, 0)), diff --git a/video/closedcaption/tests/cea608tocea708.rs b/video/closedcaption/tests/cea608tocea708.rs index 1dde1d27..98d57ca4 100644 --- a/video/closedcaption/tests/cea608tocea708.rs +++ b/video/closedcaption/tests/cea608tocea708.rs @@ -125,7 +125,7 @@ fn test_rollup() { true, true, true, - 1, + 2, 1, )), Code::SetPenLocation(SetPenLocationArgs::new(2, 0)), @@ -154,7 +154,7 @@ fn test_rollup() { true, true, true, - 1, + 2, 1, )), Code::SetPenLocation(SetPenLocationArgs::new(2, 0)),