2 * gstvaapi.c - VA-API element registration
4 * Copyright (C) 2011-2012 Intel Corporation
5 * Copyright (C) 2011 Collabora Ltd.
6 * Author: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2.1
11 * of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301 USA
30 #include "gstvaapidownload.h"
31 #include "gstvaapiupload.h"
32 #include "gstvaapidecode.h"
33 #include "gstvaapipostproc.h"
34 #include "gstvaapisink.h"
37 #include "gstvaapiencode.h"
38 #include "gstvaapiencode_h264.h"
39 #include "gstvaapiencode_h263.h"
40 #include "gstvaapiencode_mpeg4.h"
42 /* encoder plugin register*/
44 vaapi_encoder_plugins_init (GstPlugin * plugin)
48 ret &= gst_element_register (plugin, "vaapiencodeh264", GST_RANK_PRIMARY,
49 GST_TYPE_VAAPI_ENCODE_H264);
50 ret &= gst_element_register (plugin, "vaapiencodeh263", GST_RANK_PRIMARY,
51 GST_TYPE_VAAPI_ENCODE_H263);
52 ret &= gst_element_register (plugin, "vaapiencodempeg4", GST_RANK_PRIMARY,
53 GST_TYPE_VAAPI_ENCODE_MPEG4);
59 plugin_init (GstPlugin *plugin)
61 gst_element_register(plugin, "vaapidownload",
63 GST_TYPE_VAAPIDOWNLOAD);
64 gst_element_register(plugin, "vaapiupload",
66 GST_TYPE_VAAPIUPLOAD);
67 gst_element_register(plugin, "vaapidecode",
69 GST_TYPE_VAAPIDECODE);
70 gst_element_register(plugin, "vaapipostproc",
72 GST_TYPE_VAAPIPOSTPROC);
73 gst_element_register(plugin, "vaapisink",
77 return vaapi_encoder_plugins_init(plugin);
83 GST_VERSION_MAJOR, GST_VERSION_MINOR,
85 "VA-API based elements",