~ubuntu-branches/ubuntu/vivid/gstreamer-vaapi/vivid

« back to all changes in this revision

Viewing changes to gst/vaapi/gstvaapiparse.c

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng
  • Date: 2014-08-06 23:56:00 UTC
  • mfrom: (0.1.4 sid) (1.1.3)
  • Revision ID: package-import@ubuntu.com-20140806235600-fg1kcmiu67k315q5
Tags: 0.5.9-2
* Remove spurious build-deps: libva-drm1, libavcodec-dev. (Closes: #757283)
* Drop Build-Depends-Indep and build docs unconditionally on all archs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  gstvaapiparse.c - Recent enough GStreamer video parsers
 
3
 *
 
4
 *  Copyright (C) 2011 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
 
5
 *  Copyright (C) 2009 Tim-Philipp Müller <tim centricular net>
 
6
 *
 
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.
 
11
 *
 
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.
 
16
 *
 
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
 
21
 */
 
22
 
 
23
#include "gst/vaapi/sysdeps.h"
 
24
#include <gst/gst.h>
 
25
#include "gstvaapiparse.h"
 
26
#include "gsth264parse.h"
 
27
 
 
28
#define PLUGIN_NAME     "vaapiparse"
 
29
#define PLUGIN_DESC     "VA-API based elements"
 
30
#define PLUGIN_LICENSE  "LGPL"
 
31
 
 
32
static gboolean
 
33
plugin_init (GstPlugin * plugin)
 
34
{
 
35
  gboolean failure = FALSE;
 
36
 
 
37
  failure |= !gst_element_register (plugin, "vaapiparse_h264",
 
38
      GST_RANK_PRIMARY + 2, GST_TYPE_H264_PARSE);
 
39
 
 
40
  return !failure;
 
41
}
 
42
 
 
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)
 
49
#else
 
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)
 
53
#endif