diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2020-12-16 01:02:53 +0100 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-04-03 00:42:14 +0000 |
commit | 42586dd53666fc600795a04c394c4d0d4ce68747 (patch) | |
tree | de3765be952586cec9760fada9e82bcc7fcac092 /ext/closedcaption/gstline21dec.h | |
parent | c915cb923e9e5d21a53168e578ef6551e6affdd0 (diff) | |
download | gstreamer-plugins-bad-42586dd53666fc600795a04c394c4d0d4ce68747.tar.gz |
line21dec: expose mode property
That new property can be used to control whether and how
detected CC meta should be inserted in the list of existing
CC meta on the input frame (if there was any).
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1885>
Diffstat (limited to 'ext/closedcaption/gstline21dec.h')
-rw-r--r-- | ext/closedcaption/gstline21dec.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/closedcaption/gstline21dec.h b/ext/closedcaption/gstline21dec.h index c0134b304..edf140856 100644 --- a/ext/closedcaption/gstline21dec.h +++ b/ext/closedcaption/gstline21dec.h @@ -41,6 +41,12 @@ G_BEGIN_DECLS typedef struct _GstLine21Decoder GstLine21Decoder; typedef struct _GstLine21DecoderClass GstLine21DecoderClass; +typedef enum { + GST_LINE_21_DECODER_MODE_ADD, + GST_LINE_21_DECODER_MODE_DROP, + GST_LINE_21_DECODER_MODE_REPLACE, +} GstLine21DecoderMode; + struct _GstLine21Decoder { GstVideoFilter parent; @@ -62,6 +68,7 @@ struct _GstLine21Decoder GstVideoInfo *info; gboolean ntsc_only; + GstLine21DecoderMode mode; }; struct _GstLine21DecoderClass |