Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pango: allow per feature registration
Split plugin into features including dynamic types which can be indiviually registered during a static build. More details here: https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/199 https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/661 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1029>
- Loading branch information
Stéphane Cerveau
authored and
GStreamer Marge Bot
committed
Mar 16, 2021
1 parent
d41e8c6
commit 59163a1
Showing
9 changed files
with
154 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* GStreamer | ||
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu> | ||
* Copyright (C) <2003> David Schleef <ds@schleef.org> | ||
* Copyright (C) <2006> Julien Moutte <julien@moutte.net> | ||
* Copyright (C) <2006> Zeeshan Ali <zeeshan.ali@nokia.com> | ||
* Copyright (C) <2006-2008> Tim-Philipp Müller <tim centricular net> | ||
* Copyright (C) <2009> Young-Ho Cha <ganadist@gmail.com> | ||
* Copyright (C) 2020 Huawei Technologies Co., Ltd. | ||
* @Author: Stéphane Cerveau <scerveau@collabora.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 "gstpangoelements.h" | ||
|
||
GST_DEBUG_CATEGORY (pango_debug); | ||
#define GST_CAT_DEFAULT pango_debug | ||
|
||
void | ||
pango_element_init (GstPlugin * plugin) | ||
{ | ||
static gsize res = FALSE; | ||
if (g_once_init_enter (&res)) { | ||
/*texttestsrc_plugin_init(module, plugin); */ | ||
GST_DEBUG_CATEGORY_INIT (pango_debug, "pango", 0, "Pango elements"); | ||
g_once_init_leave (&res, TRUE); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* GStreamer | ||
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu> | ||
* Copyright (C) <2003> David Schleef <ds@schleef.org> | ||
* Copyright (C) <2006> Julien Moutte <julien@moutte.net> | ||
* Copyright (C) <2006> Zeeshan Ali <zeeshan.ali@nokia.com> | ||
* Copyright (C) <2006-2008> Tim-Philipp Müller <tim centricular net> | ||
* Copyright (C) <2009> Young-Ho Cha <ganadist@gmail.com> | ||
* Copyright (C) 2020 Huawei Technologies Co., Ltd. | ||
* @Author: Stéphane Cerveau <scerveau@collabora.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. | ||
*/ | ||
|
||
#ifndef __GST_PANGO_ELEMENTS_H__ | ||
#define __GST_PANGO_ELEMENTS_H__ | ||
|
||
#include <gst/gst.h> | ||
|
||
G_BEGIN_DECLS | ||
|
||
G_GNUC_INTERNAL void pango_element_init (GstPlugin * plugin); | ||
|
||
GST_ELEMENT_REGISTER_DECLARE (textoverlay); | ||
GST_ELEMENT_REGISTER_DECLARE (timeoverlay); | ||
GST_ELEMENT_REGISTER_DECLARE (clockoverlay); | ||
GST_ELEMENT_REGISTER_DECLARE (textrender); | ||
|
||
G_END_DECLS | ||
|
||
#endif /* __GST_PANGO_ELEMENTS_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* GStreamer | ||
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu> | ||
* Copyright (C) <2003> David Schleef <ds@schleef.org> | ||
* Copyright (C) <2006> Julien Moutte <julien@moutte.net> | ||
* Copyright (C) <2006> Zeeshan Ali <zeeshan.ali@nokia.com> | ||
* Copyright (C) <2006-2008> Tim-Philipp Müller <tim centricular net> | ||
* Copyright (C) <2009> Young-Ho Cha <ganadist@gmail.com> | ||
* Copyright (C) 2020 Huawei Technologies Co., Ltd. | ||
* @Author: Stéphane Cerveau <scerveau@collabora.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 "gstpangoelements.h" | ||
|
||
static gboolean | ||
plugin_init (GstPlugin * plugin) | ||
{ | ||
gboolean ret = FALSE; | ||
|
||
ret |= GST_ELEMENT_REGISTER (textoverlay, plugin); | ||
ret |= GST_ELEMENT_REGISTER (timeoverlay, plugin); | ||
ret |= GST_ELEMENT_REGISTER (clockoverlay, plugin); | ||
ret |= GST_ELEMENT_REGISTER (textrender, plugin); | ||
|
||
return ret; | ||
} | ||
|
||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, | ||
pango, "Pango-based text rendering and overlay", plugin_init, | ||
VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters