gstreamer/ext/closedcaption/gstclosedcaption.c
Sebastian Dröge eb92865ea1 cccombiner: Add new closed caption combiner element
This is the inverse of ccextractor: it takes a video and closed caption
stream and places the closed caption metas on the video output buffers.
2018-11-06 16:21:42 +00:00

57 lines
1.7 KiB
C

/*
* GStreamer
* Copyright (C) 2018 Edward Hervey <edward@centricular.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <gst/gst.h>
#include "gstcccombiner.h"
#include "gstccextractor.h"
#include "gstline21dec.h"
#include "gstceaccoverlay.h"
static gboolean
closedcaption_init (GstPlugin * plugin)
{
gboolean ret;
ret = gst_element_register (plugin, "cccombiner", GST_RANK_NONE,
GST_TYPE_CCCOMBINER);
ret &= gst_element_register (plugin, "ccextractor", GST_RANK_NONE,
GST_TYPE_CCEXTRACTOR);
ret &= gst_element_register (plugin, "line21decoder", GST_RANK_NONE,
GST_TYPE_LINE21DECODER);
ret &= gst_element_register (plugin, "cc708overlay", GST_RANK_PRIMARY,
GST_TYPE_CEA_CC_OVERLAY);
return ret;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
closedcaption,
"Closed Caption elements",
closedcaption_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)