2
* gstvaapiparse.c - Recent enough GStreamer video parsers
4
* Copyright (C) 2011 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
5
* Copyright (C) 2009 Tim-Philipp Müller <tim centricular net>
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public License
9
* as published by the Free Software Foundation; either version 2.1
10
* of the License, or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the Free
19
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20
* Boston, MA 02110-1301 USA
23
#include "gst/vaapi/sysdeps.h"
25
#include "gstvaapiparse.h"
26
#include "gsth264parse.h"
28
#define PLUGIN_NAME "vaapiparse"
29
#define PLUGIN_DESC "VA-API based elements"
30
#define PLUGIN_LICENSE "LGPL"
33
plugin_init (GstPlugin * plugin)
35
gboolean failure = FALSE;
37
failure |= !gst_element_register (plugin, "vaapiparse_h264",
38
GST_RANK_PRIMARY + 2, GST_TYPE_H264_PARSE);
43
#if GST_CHECK_VERSION(1,0,0)
44
/* XXX: use PLUGIN_NAME when GST_PLUGIN_DEFINE is fixed to use
45
G_STRINGIFY() for name argument, instead of plain #name */
46
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR,
47
vaapiparse, PLUGIN_DESC, plugin_init,
48
PACKAGE_VERSION, PLUGIN_LICENSE, PACKAGE, PACKAGE_BUGREPORT)
50
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR,
51
PLUGIN_NAME, PLUGIN_DESC, plugin_init,
52
PACKAGE_VERSION, PLUGIN_LICENSE, PACKAGE, PACKAGE_BUGREPORT)