gst-plugins-rs/video/closedcaption/tests
Mathieu Duponchelle a7180e3995 libcaption: fix bit set on indent preambles
style preambles look like:

|P|0|0|1|C|0|ROW| |P|1|N|0|STYLE|U|

and column preambles look like:

|P|0|0|1|C|0|ROW| |P|1|N|1|CURSR|U|

Both preambles go through eia608_row_pramble(), the value they
pass as the x parameter is supposed to hold 4 bits, either
0|STYLE

or 1|CURSR

This value then gets bit-shifted by 1 and or'd in the second byte.

The value is also and' with 0x1E to ensure it can't leak into
the upper bits.

The previous code resulted in x being a 5-bit value, 0x10 (0b10000).
This resulted in outputting a style preamble, as 0x10 << 1 & 0x1E
is 0b00000. When the indent was 0 (the usual case), this went
undetected, but with any other value it resulted in no indent being
applied, but the text getting colored or italicized.

This patch fixes x to have the correct value of 0x8 | indent.
2021-01-19 16:40:00 +01:00
..
captions-test_708.mcc Drop gst-plugin- prefix in plugin directory name 2020-04-05 19:10:47 +00:00
ccdetect.rs Use typed integer literals instead of casting 2020-12-29 17:29:46 +02:00
cea608tott.rs video: Update to 2018 edition 2020-11-23 10:28:35 +02:00
dn2018-1217.scc Drop gst-plugin- prefix in plugin directory name 2020-04-05 19:10:47 +00:00
mcc_enc.rs closedcaption: Update for glib::DateTime API changes 2020-12-24 13:36:07 +02:00
mcc_parse.rs Update to rand 0.8 2021-01-09 12:34:42 +02:00
scc_enc.rs video: Update to 2018 edition 2020-11-23 10:28:35 +02:00
scc_parse.rs Update to rand 0.8 2021-01-09 12:34:42 +02:00
timecodes-cut-down-sample.scc Drop gst-plugin- prefix in plugin directory name 2020-04-05 19:10:47 +00:00
tttocea608.rs libcaption: fix bit set on indent preambles 2021-01-19 16:40:00 +01:00