diff options
author | Matthew Waters <matthew@centricular.com> | 2020-03-13 10:54:02 +1100 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-05-11 12:30:31 +0000 |
commit | 7d028af67580c0478de12ba53da2c9f4d172ab7f (patch) | |
tree | 25a2e3d25030affba4f17c581f3e131e0fc9e0d0 /ext/closedcaption/gstccconverter.h | |
parent | ddc7563ac9dd679e01b2659c8fd1e0d4c335a869 (diff) | |
download | gstreamer-plugins-bad-7d028af67580c0478de12ba53da2c9f4d172ab7f.tar.gz |
ccconverter: implement support for CDP framerate conversions
- Any format involving CDP is supported.
- Time codes (if present) are scaled as well.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1116>
Diffstat (limited to 'ext/closedcaption/gstccconverter.h')
-rw-r--r-- | ext/closedcaption/gstccconverter.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/closedcaption/gstccconverter.h b/ext/closedcaption/gstccconverter.h index 673d2c143..b51302ae3 100644 --- a/ext/closedcaption/gstccconverter.h +++ b/ext/closedcaption/gstccconverter.h @@ -54,6 +54,18 @@ struct _GstCCConverter gint in_fps_n, in_fps_d; gint out_fps_n, out_fps_d; + + /* for framerate differences, we need to keep previous/next frames in order + * to split/merge data across multiple input or output buffers. The data is + * stored as cc_data */ + guint8 scratch[MAX_CDP_PACKET_LEN]; + guint scratch_len; + + guint input_frames; + guint output_frames; + GstVideoTimeCode current_output_timecode; + /* previous buffer for copying metas onto */ + GstBuffer *previous_buffer; }; struct _GstCCConverterClass |