mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
mediafoundation: Add h265 encoder
Add Media Foundation HEVC encoder Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/760>
This commit is contained in:
parent
9625d19279
commit
565817abd8
4 changed files with 1196 additions and 0 deletions
1160
sys/mediafoundation/gstmfh265enc.cpp
Normal file
1160
sys/mediafoundation/gstmfh265enc.cpp
Normal file
File diff suppressed because it is too large
Load diff
33
sys/mediafoundation/gstmfh265enc.h
Normal file
33
sys/mediafoundation/gstmfh265enc.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) 2020 Seungha Yang <seungha.yang@navercorp.com>
|
||||
* Copyright (C) 2020 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.
|
||||
*/
|
||||
|
||||
#ifndef __GST_MF_H265_ENC_H__
|
||||
#define __GST_MF_H265_ENC_H__
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
void gst_mf_h265_enc_plugin_init (GstPlugin * plugin,
|
||||
guint rank);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_MF_H265_ENC_H__ */
|
|
@ -4,6 +4,7 @@ mf_sources = [
|
|||
'gstmftransform.cpp',
|
||||
'gstmfvideoenc.cpp',
|
||||
'gstmfh264enc.cpp',
|
||||
'gstmfh265enc.cpp',
|
||||
]
|
||||
|
||||
mf_desktop_sources = [
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#endif
|
||||
#include "gstmfutils.h"
|
||||
#include "gstmfh264enc.h"
|
||||
#include "gstmfh265enc.h"
|
||||
|
||||
GST_DEBUG_CATEGORY (gst_mf_debug);
|
||||
GST_DEBUG_CATEGORY (gst_mf_utils_debug);
|
||||
|
@ -71,6 +72,7 @@ plugin_init (GstPlugin * plugin)
|
|||
#endif
|
||||
|
||||
gst_mf_h264_enc_plugin_init (plugin, GST_RANK_SECONDARY);
|
||||
gst_mf_h265_enc_plugin_init (plugin, GST_RANK_SECONDARY);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue