mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
vaapidecode_props: add skeleton for h264 decoder properties
https://bugzilla.gnome.org/show_bug.cgi?id=783588
This commit is contained in:
parent
207486aa1f
commit
484033d039
5 changed files with 85 additions and 1 deletions
|
@ -56,6 +56,7 @@ libgstvaapi_source_c = \
|
|||
gstvaapivideobufferpool.c \
|
||||
gstvaapivideomemory.c \
|
||||
gstvaapivideometa_texture.c \
|
||||
gstvaapidecode_props.c \
|
||||
$(NULL)
|
||||
|
||||
libgstvaapi_source_h = \
|
||||
|
@ -73,6 +74,7 @@ libgstvaapi_source_h = \
|
|||
gstvaapivideobufferpool.h \
|
||||
gstvaapivideomemory.h \
|
||||
gstvaapivideometa_texture.h \
|
||||
gstvaapidecode_props.h \
|
||||
$(NULL)
|
||||
|
||||
libgstvaapi_enc_source_c = \
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <gst/vaapi/gstvaapidisplay.h>
|
||||
|
||||
#include "gstvaapidecode.h"
|
||||
#include "gstvaapidecode_props.h"
|
||||
#include "gstvaapipluginutil.h"
|
||||
#include "gstvaapivideobuffer.h"
|
||||
#if (USE_GLX || USE_EGL)
|
||||
|
@ -117,7 +118,8 @@ static const GstVaapiDecoderMap vaapi_decode_map[] = {
|
|||
{GST_VAAPI_CODEC_MPEG4, GST_RANK_PRIMARY, "mpeg4",
|
||||
"video/mpeg, mpegversion=4", NULL},
|
||||
{GST_VAAPI_CODEC_H263, GST_RANK_PRIMARY, "h263", "video/x-h263", NULL},
|
||||
{GST_VAAPI_CODEC_H264, GST_RANK_PRIMARY, "h264", "video/x-h264", NULL},
|
||||
{GST_VAAPI_CODEC_H264, GST_RANK_PRIMARY, "h264", "video/x-h264",
|
||||
gst_vaapi_decode_h264_install_properties},
|
||||
{GST_VAAPI_CODEC_VC1, GST_RANK_PRIMARY, "vc1",
|
||||
"video/x-wmv, wmvversion=3, format={WMV3,WVC1}", NULL},
|
||||
#if USE_VP8_DECODER
|
||||
|
|
43
gst/vaapi/gstvaapidecode_props.c
Normal file
43
gst/vaapi/gstvaapidecode_props.c
Normal file
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* gstvaapidecode_props.c - VA-API decoders specific properties
|
||||
*
|
||||
* Copyright (C) 2017 Intel Corporation
|
||||
* Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
|
||||
* Author: Victor Jaquez <vjaquez@igalia.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2.1
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this program; if not, write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "gstvaapidecode_props.h"
|
||||
|
||||
static void
|
||||
gst_vaapi_decode_h264_get_property (GObject * object, guint prop_id,
|
||||
GValue * value, GParamSpec * pspec)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
gst_vaapi_decode_h264_set_property (GObject * object, guint prop_id,
|
||||
const GValue * value, GParamSpec * pspec)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
gst_vaapi_decode_h264_install_properties (GObjectClass * klass)
|
||||
{
|
||||
klass->get_property = gst_vaapi_decode_h264_get_property;
|
||||
klass->set_property = gst_vaapi_decode_h264_set_property;
|
||||
}
|
36
gst/vaapi/gstvaapidecode_props.h
Normal file
36
gst/vaapi/gstvaapidecode_props.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* gstvaapidecode_props.h - VA-API decoders specific properties
|
||||
*
|
||||
* Copyright (C) 2017 Intel Corporation
|
||||
* Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
|
||||
* Author: Victor Jaquez <vjaquez@igalia.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2.1
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this program; if not, write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef GST_VAAPI_DECODE_PROPS_H
|
||||
#define GST_VAAPI_DECODE_PROPS_H
|
||||
|
||||
#include "gstcompat.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
void
|
||||
gst_vaapi_decode_h264_install_properties (GObjectClass * klass);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* GST_VAAPI_DECODE_PROPS_H */
|
|
@ -14,6 +14,7 @@ vaapi_sources = [
|
|||
'gstvaapivideobufferpool.c',
|
||||
'gstvaapivideomemory.c',
|
||||
'gstvaapivideometa_texture.c',
|
||||
'gstvaapidecode_props.c',
|
||||
]
|
||||
|
||||
if USE_ENCODERS
|
||||
|
|
Loading…
Reference in a new issue