mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
va: Added VP8 encoder
Fixes #3430 Fixes #3576 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6959>
This commit is contained in:
parent
982bfe4f5d
commit
f31581544c
4 changed files with 1536 additions and 0 deletions
1493
subprojects/gst-plugins-bad/sys/va/gstvavp8enc.c
Normal file
1493
subprojects/gst-plugins-bad/sys/va/gstvavp8enc.c
Normal file
File diff suppressed because it is too large
Load diff
34
subprojects/gst-plugins-bad/sys/va/gstvavp8enc.h
Normal file
34
subprojects/gst-plugins-bad/sys/va/gstvavp8enc.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) 2024 Centricular Ltd
|
||||
* Author: Jochen Henneberg <jochen@centricular.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 the
|
||||
* 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_enc_register (GstPlugin * plugin,
|
||||
GstVaDevice * device,
|
||||
GstCaps * sink_caps,
|
||||
GstCaps * src_caps,
|
||||
guint rank,
|
||||
VAEntrypoint entrypoint);
|
||||
|
||||
G_END_DECLS
|
|
@ -23,6 +23,7 @@ va_sources = [
|
|||
'gstvapluginutils.c',
|
||||
'gstvaprofile.c',
|
||||
'gstvavp8dec.c',
|
||||
'gstvavp8enc.c',
|
||||
'gstvavp9dec.c',
|
||||
'gstvavp9enc.c',
|
||||
'gstvavpp.c',
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
#include "gstvampeg2dec.h"
|
||||
#include "gstvaprofile.h"
|
||||
#include "gstvavp8dec.h"
|
||||
#include "gstvavp8enc.h"
|
||||
#include "gstvavp9dec.h"
|
||||
#include "gstvavp9enc.h"
|
||||
#include "gstvavpp.h"
|
||||
|
@ -217,6 +218,13 @@ plugin_register_encoders (GstPlugin * plugin, GstVaDevice * device,
|
|||
device->render_device_path);
|
||||
}
|
||||
break;
|
||||
case VP8:
|
||||
if (!gst_va_vp8_enc_register (plugin, device, sinkcaps, srccaps,
|
||||
GST_RANK_NONE, entrypoint)) {
|
||||
GST_WARNING ("Failed to register VP8 encoder: %s",
|
||||
device->render_device_path);
|
||||
}
|
||||
break;
|
||||
case VP9:
|
||||
if (!gst_va_vp9_enc_register (plugin, device, sinkcaps, srccaps,
|
||||
GST_RANK_NONE, entrypoint)) {
|
||||
|
|
Loading…
Reference in a new issue