Mathieu Duponchelle 2eab37f231 ccconverter: implement field conversion of CEA 608 control codes
As specified in EIA/CEA-608-B section 8.4:

When closed captioning is used on line 21, field 2, it shall conform
to all of the applicable specifications and recommended practices as
defined for field 1 services with the following differences:

a) The non-printing character of the miscellaneous control-character pairs
  that fall in the range of 14h, 20h to 14h, 2Fh in field 1, shall be replaced
  with 15h, 20h to 15h, 2Fh when used in field 2.
b) The non-printing character of the miscellaneous control-character pairs
  that fall in the range of 1Ch, 20h to 1Ch, 2Fh in field 1, shall be replaced
  with 1Dh, 20h to 1Dh, 2Fh when used in field 2.

This means simply switching the "field" field in the caps isn't enough for
converting raw 608 from one field to another, some control codes also
need to be amended.

+ Adds simple test

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4126>
2023-03-08 10:13:59 +00:00
..
2023-01-23 23:04:53 +00:00
2022-09-17 22:41:40 +00:00
2022-12-10 15:13:09 +00:00
2022-09-23 11:08:06 -04:00
2022-11-18 00:50:56 +00:00
2022-09-23 11:08:06 -04:00
2022-09-23 11:08:06 -04:00
2022-12-10 15:13:09 +00:00
2022-09-23 11:08:06 -04:00
2022-09-23 11:08:06 -04:00
2022-10-31 23:50:28 +00:00
2022-12-10 15:13:09 +00:00
2022-12-10 15:13:09 +00:00
2022-12-10 15:13:09 +00:00