2018-03-08 14:22:47 +00:00
|
|
|
/*
|
|
|
|
* 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>
|
|
|
|
|
2018-11-05 14:24:58 +00:00
|
|
|
#include "gstcccombiner.h"
|
2018-12-12 12:59:50 +00:00
|
|
|
#include "gstccconverter.h"
|
2018-03-08 14:22:47 +00:00
|
|
|
#include "gstccextractor.h"
|
2018-03-19 09:56:31 +00:00
|
|
|
#include "gstline21dec.h"
|
2015-03-11 10:00:08 +00:00
|
|
|
#include "gstceaccoverlay.h"
|
2019-02-22 23:23:01 +00:00
|
|
|
#include "gstline21enc.h"
|
2018-03-08 14:22:47 +00:00
|
|
|
|
|
|
|
static gboolean
|
2015-03-11 10:00:08 +00:00
|
|
|
closedcaption_init (GstPlugin * plugin)
|
2018-03-08 14:22:47 +00:00
|
|
|
{
|
2018-03-19 09:56:31 +00:00
|
|
|
gboolean ret;
|
|
|
|
|
2018-11-05 14:24:58 +00:00
|
|
|
ret = gst_element_register (plugin, "cccombiner", GST_RANK_NONE,
|
|
|
|
GST_TYPE_CCCOMBINER);
|
|
|
|
|
2018-12-12 12:59:50 +00:00
|
|
|
ret &= gst_element_register (plugin, "ccconverter", GST_RANK_NONE,
|
|
|
|
GST_TYPE_CCCONVERTER);
|
|
|
|
|
2018-11-05 14:24:58 +00:00
|
|
|
ret &= gst_element_register (plugin, "ccextractor", GST_RANK_NONE,
|
2018-03-08 14:22:47 +00:00
|
|
|
GST_TYPE_CCEXTRACTOR);
|
2018-03-19 09:56:31 +00:00
|
|
|
|
2015-03-11 10:00:08 +00:00
|
|
|
ret &= gst_element_register (plugin, "line21decoder", GST_RANK_NONE,
|
2018-03-19 09:56:31 +00:00
|
|
|
GST_TYPE_LINE21DECODER);
|
|
|
|
|
2018-11-05 14:24:58 +00:00
|
|
|
ret &= gst_element_register (plugin, "cc708overlay", GST_RANK_PRIMARY,
|
2015-03-11 10:00:08 +00:00
|
|
|
GST_TYPE_CEA_CC_OVERLAY);
|
|
|
|
|
2019-02-22 23:23:01 +00:00
|
|
|
ret &= gst_element_register (plugin, "line21encoder", GST_RANK_NONE,
|
|
|
|
GST_TYPE_LINE21ENCODER);
|
|
|
|
|
2018-03-19 09:56:31 +00:00
|
|
|
return ret;
|
2018-03-08 14:22:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
|
|
GST_VERSION_MINOR,
|
|
|
|
closedcaption,
|
|
|
|
"Closed Caption elements",
|
|
|
|
closedcaption_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
|