va: Implement the VA vp8 decoder.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1587>
This commit is contained in:
parent
ae8f97ae34
commit
709bec8f07
@ -559,6 +559,7 @@ gst_va_h264_dec_new_picture (GstH264Decoder * decoder,
|
|||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
pic = gst_va_decode_picture_new (frame->output_buffer);
|
pic = gst_va_decode_picture_new (frame->output_buffer);
|
||||||
|
|
||||||
gst_h264_picture_set_user_data (picture, pic,
|
gst_h264_picture_set_user_data (picture, pic,
|
||||||
(GDestroyNotify) gst_va_decode_picture_free);
|
(GDestroyNotify) gst_va_decode_picture_free);
|
||||||
|
|
||||||
|
1197
sys/va/gstvavp8dec.c
Normal file
1197
sys/va/gstvavp8dec.c
Normal file
File diff suppressed because it is too large
Load Diff
33
sys/va/gstvavp8dec.h
Normal file
33
sys/va/gstvavp8dec.h
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/* GStreamer
|
||||||
|
* Copyright (C) 2020 Intel Corporation
|
||||||
|
* Author: He Junyan <junyan.he@intel.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 the0
|
||||||
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||||
|
* Boston, MA 02110-1301, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "gstvadevice.h"
|
||||||
|
|
||||||
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
gboolean gst_va_vp8_dec_register (GstPlugin * plugin,
|
||||||
|
GstVaDevice * device,
|
||||||
|
GstCaps * sink_caps,
|
||||||
|
GstCaps * src_caps,
|
||||||
|
guint rank);
|
||||||
|
|
||||||
|
G_END_DECLS
|
@ -9,6 +9,7 @@ va_sources = [
|
|||||||
'gstvadevice.c',
|
'gstvadevice.c',
|
||||||
'gstvafilter.c',
|
'gstvafilter.c',
|
||||||
'gstvah264dec.c',
|
'gstvah264dec.c',
|
||||||
|
'gstvavp8dec.c',
|
||||||
'gstvapool.c',
|
'gstvapool.c',
|
||||||
'gstvaprofile.c',
|
'gstvaprofile.c',
|
||||||
'gstvautils.c',
|
'gstvautils.c',
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
#include "gstvacaps.h"
|
#include "gstvacaps.h"
|
||||||
#include "gstvadevice.h"
|
#include "gstvadevice.h"
|
||||||
#include "gstvah264dec.h"
|
#include "gstvah264dec.h"
|
||||||
|
#include "gstvavp8dec.h"
|
||||||
#include "gstvaprofile.h"
|
#include "gstvaprofile.h"
|
||||||
#include "gstvavpp.h"
|
#include "gstvavpp.h"
|
||||||
|
|
||||||
@ -96,6 +97,13 @@ plugin_register_decoders (GstPlugin * plugin, GstVaDevice * device,
|
|||||||
device->render_device_path);
|
device->render_device_path);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case VP8:
|
||||||
|
if (!gst_va_vp8_dec_register (plugin, device, sinkcaps, srccaps,
|
||||||
|
GST_RANK_NONE)) {
|
||||||
|
GST_WARNING ("Failed to register H264 decoder: %s",
|
||||||
|
device->render_device_path);
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
GST_DEBUG ("No decoder implementation for %" GST_FOURCC_FORMAT,
|
GST_DEBUG ("No decoder implementation for %" GST_FOURCC_FORMAT,
|
||||||
GST_FOURCC_ARGS (codec));
|
GST_FOURCC_ARGS (codec));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user