3 * Copyright (C) 2018 Edward Hervey <edward@centricular.com>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
28 #include "gstcccombiner.h"
29 #include "gstccconverter.h"
30 #include "gstccextractor.h"
31 #include "gstline21dec.h"
32 #include "gstceaccoverlay.h"
33 #include "gstline21enc.h"
36 closedcaption_init (GstPlugin * plugin)
40 ret = gst_element_register (plugin, "cccombiner", GST_RANK_NONE,
43 ret &= gst_element_register (plugin, "ccconverter", GST_RANK_NONE,
44 GST_TYPE_CCCONVERTER);
46 ret &= gst_element_register (plugin, "ccextractor", GST_RANK_NONE,
47 GST_TYPE_CCEXTRACTOR);
49 ret &= gst_element_register (plugin, "line21decoder", GST_RANK_NONE,
50 GST_TYPE_LINE21DECODER);
52 ret &= gst_element_register (plugin, "cc708overlay", GST_RANK_PRIMARY,
53 GST_TYPE_CEA_CC_OVERLAY);
55 ret &= gst_element_register (plugin, "line21encoder", GST_RANK_NONE,
56 GST_TYPE_LINE21ENCODER);
61 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
64 "Closed Caption elements",
65 closedcaption_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)