gstreamer/subprojects/gst-plugins-bad/ext/closedcaption
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
..
bcd.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
bit_slicer.c closedcaption: Fix broken debug function macros with MSVC build 2021-10-04 23:03:20 +09:00
bit_slicer.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
ccutils.c cccombiner: initial implementation of using CCBuffer helper 2022-11-10 00:52:14 +00:00
ccutils.h cccombiner: initial implementation of using CCBuffer helper 2022-11-10 00:52:14 +00:00
decoder.c Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
decoder.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
gstcccombiner.c cccombiner: fix s334-1a in place conversion 2023-03-02 22:52:39 +00:00
gstcccombiner.h cccombiner: initial implementation of using CCBuffer helper 2022-11-10 00:52:14 +00:00
gstccconverter.c ccconverter: implement field conversion of CEA 608 control codes 2023-03-08 10:13:59 +00:00
gstccconverter.h ccconverter: add support for advertising / selecting field 2023-02-24 19:11:56 +00:00
gstccextractor.c Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
gstccextractor.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
gstcea608mux.c cea608mux: don't consume input buffers too early 2023-03-03 13:16:24 +00:00
gstcea608mux.h closedcaption: implement cea608muxer element 2023-03-02 00:27:47 +00:00
gstcea708decoder.c Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
gstcea708decoder.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
gstceaccoverlay.c closedcaption: Don't leak caps event 2023-02-07 08:51:18 +01:00
gstceaccoverlay.h cc708overlay: bump pango requirement and drop no longer required locking 2023-02-03 17:48:10 +00:00
gstclosedcaption.c closedcaption: implement cea608muxer element 2023-03-02 00:27:47 +00:00
gstline21dec.c Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
gstline21dec.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
gstline21enc.c Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
gstline21enc.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
hamm.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
io-sim.c closedcaption: Fix broken debug function macros with MSVC build 2021-10-04 23:03:20 +09:00
io-sim.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
macros.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
meson.build closedcaption: implement cea608muxer element 2023-03-02 00:27:47 +00:00
misc.h closedcaption: Fix broken debug function macros with MSVC build 2021-10-04 23:03:20 +09:00
raw_decoder.c Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
raw_decoder.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
sampling_par.c closedcaption: Fix broken debug function macros with MSVC build 2021-10-04 23:03:20 +09:00
sampling_par.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00
sliced.h Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir 2021-09-24 16:14:36 -03:00