mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 06:01:04 +00:00
a41fb3c6df
This new element allows decoding and overlaying CEA-708 Closed Caption streams over video. * Supports CDP and cc_data closedcaption/x-cea-708 streams * Uses pango to render CC stream * Support GstVideoOverlayComposition meta if downstream supports is Tested on various test files. Remains to be fixed/improved: * Switch to GstByteReader (for code safety) * Switch to GString (instead of manual pango string construction) * Move pango/rendering code outside of main 708 decoder file (so that actual CC parser/decoder can be (re)used in other scenarios). Initial patches and improvements by: * CableLabs RUIH-RI Team <ruihri@cablelabs.com> * Steve Maynard <steve@secondstryke.com> * cjun.wang" <cjun.wang@samsung.com> https://bugzilla.gnome.org/show_bug.cgi?id=704881
22 lines
687 B
Meson
22 lines
687 B
Meson
pangocairo_dep = dependency('pangocairo', version : '>= 1.22.0', required : false)
|
|
|
|
zvbi_sources = [
|
|
'bit_slicer.c',
|
|
'decoder.c',
|
|
'raw_decoder.c',
|
|
'sampling_par.c',
|
|
]
|
|
|
|
if pangocairo_dep.found()
|
|
gstclosedcaption = library('gstclosedcaption',
|
|
'gstccextractor.c', 'gstclosedcaption.c', 'gstline21dec.c',
|
|
'gstcea708decoder.c', 'gstceaccoverlay.c', zvbi_sources,
|
|
c_args : gst_plugins_bad_args,
|
|
link_args : noseh_link_args,
|
|
include_directories : [configinc],
|
|
dependencies : [gstvideo_dep, pangocairo_dep],
|
|
install : true,
|
|
install_dir : plugins_install_dir,
|
|
)
|
|
pkgconfig.generate(gstclosedcaption, install_dir : plugins_pkgconfig_install_dir)
|
|
endif
|