mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
vulkanh265dec: add H.265 decoder
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6089>
This commit is contained in:
parent
4268268a79
commit
b485417d03
4 changed files with 1728 additions and 1 deletions
|
@ -42,6 +42,7 @@
|
|||
|
||||
#if GST_VULKAN_HAVE_VIDEO_EXTENSIONS
|
||||
#include "vkh264dec.h"
|
||||
#include "vkh265dec.h"
|
||||
#endif
|
||||
|
||||
static gboolean
|
||||
|
@ -69,6 +70,7 @@ plugin_init (GstPlugin * plugin)
|
|||
|
||||
#if GST_VULKAN_HAVE_VIDEO_EXTENSIONS
|
||||
GST_ELEMENT_REGISTER (vulkanh264dec, plugin);
|
||||
GST_ELEMENT_REGISTER (vulkanh265dec, plugin);
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
|
|
|
@ -36,7 +36,7 @@ vulkan_plugin_enum_headers = files(
|
|||
extra_deps = []
|
||||
extra_args = []
|
||||
if vulkan_conf.get('GST_VULKAN_HAVE_VIDEO_EXTENSIONS') == 1
|
||||
vulkan_sources += files('vkh264dec.c')
|
||||
vulkan_sources += files('vkh264dec.c', 'vkh265dec.c')
|
||||
extra_deps += gstcodecs_dep
|
||||
extra_args += ['-DGST_USE_UNSTABLE_API']
|
||||
endif
|
||||
|
|
1694
subprojects/gst-plugins-bad/ext/vulkan/vkh265dec.c
Normal file
1694
subprojects/gst-plugins-bad/ext/vulkan/vkh265dec.c
Normal file
File diff suppressed because it is too large
Load diff
31
subprojects/gst-plugins-bad/ext/vulkan/vkh265dec.h
Normal file
31
subprojects/gst-plugins-bad/ext/vulkan/vkh265dec.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) 2024 Igalia, S.L.
|
||||
*
|
||||
* 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/codecs/gsth265decoder.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GST_TYPE_VULKAN_H265_DECODER (gst_vulkan_h265_decoder_get_type())
|
||||
G_DECLARE_FINAL_TYPE (GstVulkanH265Decoder, gst_vulkan_h265_decoder, GST, VULKAN_H265_DECODER, GstH265Decoder)
|
||||
|
||||
GST_ELEMENT_REGISTER_DECLARE (vulkanh265dec);
|
||||
|
||||
G_END_DECLS
|
Loading…
Reference in a new issue