mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
codec2json: Add h2652json element
This element convert H.265 frame parameters into human readable json data. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3865>
This commit is contained in:
parent
3a7fec4ea1
commit
8cd8eeff20
5 changed files with 1796 additions and 0 deletions
|
@ -6776,6 +6776,31 @@
|
||||||
},
|
},
|
||||||
"rank": "none"
|
"rank": "none"
|
||||||
},
|
},
|
||||||
|
"h2652json": {
|
||||||
|
"author": "Benjamin Gaignard <benjamin.gaignard@collabora.com>",
|
||||||
|
"description": "H265 to json element",
|
||||||
|
"hierarchy": [
|
||||||
|
"GstH2652json",
|
||||||
|
"GstElement",
|
||||||
|
"GstObject",
|
||||||
|
"GInitiallyUnowned",
|
||||||
|
"GObject"
|
||||||
|
],
|
||||||
|
"klass": "Transform",
|
||||||
|
"pad-templates": {
|
||||||
|
"sink": {
|
||||||
|
"caps": "video/x-h265:\n",
|
||||||
|
"direction": "sink",
|
||||||
|
"presence": "always"
|
||||||
|
},
|
||||||
|
"src": {
|
||||||
|
"caps": "text/x-json:\n format: h265\n",
|
||||||
|
"direction": "src",
|
||||||
|
"presence": "always"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rank": "none"
|
||||||
|
},
|
||||||
"vp82json": {
|
"vp82json": {
|
||||||
"author": "Benjamin Gaignard <benjamin.gaignard@collabora.com>",
|
"author": "Benjamin Gaignard <benjamin.gaignard@collabora.com>",
|
||||||
"description": "VP8 to json element",
|
"description": "VP8 to json element",
|
||||||
|
|
1732
subprojects/gst-plugins-bad/ext/codec2json/gsth2652json.c
Normal file
1732
subprojects/gst-plugins-bad/ext/codec2json/gsth2652json.c
Normal file
File diff suppressed because it is too large
Load diff
33
subprojects/gst-plugins-bad/ext/codec2json/gsth2652json.h
Normal file
33
subprojects/gst-plugins-bad/ext/codec2json/gsth2652json.h
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
/* GStreamer
|
||||||
|
* Copyright (C) 2023 Benjamin Gaignard <benjamin.gaignard@collabora.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_H265_2_JSON_H__
|
||||||
|
#define __GST_H265_2_JSON_H__
|
||||||
|
|
||||||
|
#include <gst/codecparsers/gsth265parser.h>
|
||||||
|
|
||||||
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
#define GST_TYPE_H265_2_JSON (gst_h265_2_json_get_type())
|
||||||
|
G_DECLARE_FINAL_TYPE (GstH2652json,
|
||||||
|
gst_h265_2_json, GST, H265_2_JSON, GstElement);
|
||||||
|
|
||||||
|
G_END_DECLS
|
||||||
|
|
||||||
|
#endif /* __GST_H265_2_TXT_H__ */
|
|
@ -1,6 +1,7 @@
|
||||||
codec2json_sources = files([
|
codec2json_sources = files([
|
||||||
'gstav12json.c',
|
'gstav12json.c',
|
||||||
'gsth2642json.c',
|
'gsth2642json.c',
|
||||||
|
'gsth2652json.c',
|
||||||
'gstvp82json.c',
|
'gstvp82json.c',
|
||||||
'plugin.c',
|
'plugin.c',
|
||||||
])
|
])
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
|
|
||||||
#include "gstav12json.h"
|
#include "gstav12json.h"
|
||||||
#include "gsth2642json.h"
|
#include "gsth2642json.h"
|
||||||
|
#include "gsth2652json.h"
|
||||||
#include "gstvp82json.h"
|
#include "gstvp82json.h"
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
@ -49,6 +50,10 @@ plugin_init (GstPlugin * plugin)
|
||||||
GST_TYPE_H264_2_JSON))
|
GST_TYPE_H264_2_JSON))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
if (!gst_element_register (plugin, "h2652json", GST_RANK_NONE,
|
||||||
|
GST_TYPE_H265_2_JSON))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue