mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
va: Implement the vajpegenc plugin
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6022>
This commit is contained in:
parent
f7e434028d
commit
4550671b6f
4 changed files with 1344 additions and 0 deletions
1301
subprojects/gst-plugins-bad/sys/va/gstvajpegenc.c
Normal file
1301
subprojects/gst-plugins-bad/sys/va/gstvajpegenc.c
Normal file
File diff suppressed because it is too large
Load diff
34
subprojects/gst-plugins-bad/sys/va/gstvajpegenc.h
Normal file
34
subprojects/gst-plugins-bad/sys/va/gstvajpegenc.h
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
/* GStreamer
|
||||||
|
* Copyright (C) 2024 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 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_jpeg_enc_register (GstPlugin * plugin,
|
||||||
|
GstVaDevice * device,
|
||||||
|
GstCaps * sink_caps,
|
||||||
|
GstCaps * src_caps,
|
||||||
|
guint rank,
|
||||||
|
VAEntrypoint entrypoint);
|
||||||
|
|
||||||
|
G_END_DECLS
|
|
@ -18,6 +18,7 @@ va_sources = [
|
||||||
'gstvah265dec.c',
|
'gstvah265dec.c',
|
||||||
'gstvah265enc.c',
|
'gstvah265enc.c',
|
||||||
'gstvajpegdec.c',
|
'gstvajpegdec.c',
|
||||||
|
'gstvajpegenc.c',
|
||||||
'gstvampeg2dec.c',
|
'gstvampeg2dec.c',
|
||||||
'gstvapluginutils.c',
|
'gstvapluginutils.c',
|
||||||
'gstvaprofile.c',
|
'gstvaprofile.c',
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
#include "gstvah265dec.h"
|
#include "gstvah265dec.h"
|
||||||
#include "gstvah265enc.h"
|
#include "gstvah265enc.h"
|
||||||
#include "gstvajpegdec.h"
|
#include "gstvajpegdec.h"
|
||||||
|
#include "gstvajpegenc.h"
|
||||||
#include "gstvampeg2dec.h"
|
#include "gstvampeg2dec.h"
|
||||||
#include "gstvaprofile.h"
|
#include "gstvaprofile.h"
|
||||||
#include "gstvavp8dec.h"
|
#include "gstvavp8dec.h"
|
||||||
|
@ -223,6 +224,13 @@ plugin_register_encoders (GstPlugin * plugin, GstVaDevice * device,
|
||||||
device->render_device_path);
|
device->render_device_path);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case JPEG:
|
||||||
|
if (!gst_va_jpeg_enc_register (plugin, device, sinkcaps, srccaps,
|
||||||
|
GST_RANK_NONE, entrypoint)) {
|
||||||
|
GST_WARNING ("Failed to register JPEG encoder: %s",
|
||||||
|
device->render_device_path);
|
||||||
|
}
|
||||||
|
break;
|
||||||
#if VA_CHECK_VERSION(1, 15, 0)
|
#if VA_CHECK_VERSION(1, 15, 0)
|
||||||
case AV1:
|
case AV1:
|
||||||
if (!gst_va_av1_enc_register (plugin, device, sinkcaps, srccaps,
|
if (!gst_va_av1_enc_register (plugin, device, sinkcaps, srccaps,
|
||||||
|
|
Loading…
Reference in a new issue