diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-11-25 16:24:25 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-12-07 19:23:42 +0200 |
commit | 0243afcb9d9a86e6572262d7b0ecb4f108fa147c (patch) | |
tree | 9e493d461db82c69ff49357e3ceb26c4d6aff0f6 /ext/closedcaption/gstccconverter.h | |
parent | b6debae2c070333b357dfdf2fc4d771ada6b9038 (diff) | |
download | gstreamer-plugins-bad-0243afcb9d9a86e6572262d7b0ecb4f108fa147c.tar.gz |
ccconverter: Add property to specify which sections to include in CDP packets
Various software, including ffmpeg's Decklink support, fails parsing CDP
packets that contain anything but CC data in the CDP packets.
Based on this property, timecodes are not written into the CDP packets
even if they're present.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1833>
Diffstat (limited to 'ext/closedcaption/gstccconverter.h')
-rw-r--r-- | ext/closedcaption/gstccconverter.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/closedcaption/gstccconverter.h b/ext/closedcaption/gstccconverter.h index 7ed6e4285..752988917 100644 --- a/ext/closedcaption/gstccconverter.h +++ b/ext/closedcaption/gstccconverter.h @@ -43,10 +43,18 @@ typedef struct _GstCCConverterClass GstCCConverterClass; #define MAX_CDP_PACKET_LEN 256 #define MAX_CEA608_LEN 32 +typedef enum { + GST_CC_CONVERTER_CDP_MODE_TIME_CODE = (1<<0), + GST_CC_CONVERTER_CDP_MODE_CC_DATA = (1<<1), + GST_CC_CONVERTER_CDP_MODE_CC_SVC_INFO = (1<<2) +} GstCCConverterCDPMode; + struct _GstCCConverter { GstBaseTransform parent; + GstCCConverterCDPMode cdp_mode; + GstVideoCaptionType input_caption_type; GstVideoCaptionType output_caption_type; |