hip: Add hipcompositor element
Feature-wise it's the same as cudacompositor Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8923>
This commit is contained in:
parent
2b0f4705a5
commit
1d6ae8791d
1609
subprojects/gst-plugins-bad/sys/hip/gsthipcompositor.cpp
Normal file
1609
subprojects/gst-plugins-bad/sys/hip/gsthipcompositor.cpp
Normal file
File diff suppressed because it is too large
Load Diff
37
subprojects/gst-plugins-bad/sys/hip/gsthipcompositor.h
Normal file
37
subprojects/gst-plugins-bad/sys/hip/gsthipcompositor.h
Normal file
@ -0,0 +1,37 @@
|
||||
/* GStreamer
|
||||
* Copyright (C) 2025 Seungha Yang <seungha@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 <gst/gst.h>
|
||||
#include <gst/video/video.h>
|
||||
#include <gst/video/gstvideoaggregator.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GST_TYPE_HIP_COMPOSITOR_PAD (gst_hip_compositor_pad_get_type())
|
||||
G_DECLARE_FINAL_TYPE (GstHipCompositorPad, gst_hip_compositor_pad,
|
||||
GST, HIP_COMPOSITOR_PAD, GstVideoAggregatorPad)
|
||||
|
||||
#define GST_TYPE_HIP_COMPOSITOR (gst_hip_compositor_get_type())
|
||||
G_DECLARE_FINAL_TYPE (GstHipCompositor, gst_hip_compositor,
|
||||
GST, HIP_COMPOSITOR, GstVideoAggregator)
|
||||
|
||||
G_END_DECLS
|
||||
|
@ -11,6 +11,7 @@ hip_sources = [
|
||||
'gsthiprtc.cpp',
|
||||
'gsthiputils.cpp',
|
||||
'gsthip-interop.cpp',
|
||||
'gsthipcompositor.cpp',
|
||||
'plugin.cpp',
|
||||
]
|
||||
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "gsthipdevice.h"
|
||||
#include "gsthipmemorycopy.h"
|
||||
#include "gsthipconvertscale.h"
|
||||
#include "gsthipcompositor.h"
|
||||
#include "gsthiprtc.h"
|
||||
|
||||
static gboolean
|
||||
@ -59,6 +60,8 @@ plugin_init (GstPlugin * plugin)
|
||||
"hipconvert", GST_RANK_NONE, GST_TYPE_HIP_CONVERT);
|
||||
gst_element_register (plugin,
|
||||
"hipscale", GST_RANK_NONE, GST_TYPE_HIP_SCALE);
|
||||
gst_element_register (plugin,
|
||||
"hipcompositor", GST_RANK_NONE, GST_TYPE_HIP_COMPOSITOR);
|
||||
}
|
||||
|
||||
gst_clear_object (&device);
|
||||
|
Loading…
x
Reference in New Issue
Block a user