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
|
|
|
{
|
2021-02-17 10:31:35 +00:00
|
|
|
gboolean ret = FALSE;
|
|
|
|
|
|
|
|
ret |= GST_ELEMENT_REGISTER (cccombiner, plugin);
|
|
|
|
ret |= GST_ELEMENT_REGISTER (ccconverter, plugin);
|
|
|
|
ret |= GST_ELEMENT_REGISTER (ccextractor, plugin);
|
|
|
|
ret |= GST_ELEMENT_REGISTER (line21decoder, plugin);
|
|
|
|
ret |= GST_ELEMENT_REGISTER (cc708overlay, plugin);
|
|
|
|
ret |= GST_ELEMENT_REGISTER (line21encoder, plugin);
|
2019-02-22 23:23:01 +00:00
|
|
|
|
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)
|