mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
codec2json: Add av12json element
This element convert AV1 frame header into human readable json data. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3734>
This commit is contained in:
parent
fd588a50e4
commit
16ad80179b
5 changed files with 1100 additions and 0 deletions
|
@ -5362,6 +5362,31 @@
|
|||
"codec2json": {
|
||||
"description": "Plugin with feature to annotate and format CODEC bitstream in JSON",
|
||||
"elements": {
|
||||
"av12json": {
|
||||
"author": "Benjamin Gaignard <benjamin.gaignard@collabora.com>",
|
||||
"description": "AV1 to json element",
|
||||
"hierarchy": [
|
||||
"GstAV12json",
|
||||
"GstElement",
|
||||
"GstObject",
|
||||
"GInitiallyUnowned",
|
||||
"GObject"
|
||||
],
|
||||
"klass": "Transform",
|
||||
"pad-templates": {
|
||||
"sink": {
|
||||
"caps": "video/x-av1:\n",
|
||||
"direction": "sink",
|
||||
"presence": "always"
|
||||
},
|
||||
"src": {
|
||||
"caps": "text/x-json:\n format: av1\n",
|
||||
"direction": "src",
|
||||
"presence": "always"
|
||||
}
|
||||
},
|
||||
"rank": "none"
|
||||
},
|
||||
"vp82json": {
|
||||
"author": "Benjamin Gaignard <benjamin.gaignard@collabora.com>",
|
||||
"description": "VP8 to json element",
|
||||
|
|
1036
subprojects/gst-plugins-bad/ext/codec2json/gstav12json.c
Normal file
1036
subprojects/gst-plugins-bad/ext/codec2json/gstav12json.c
Normal file
File diff suppressed because it is too large
Load diff
33
subprojects/gst-plugins-bad/ext/codec2json/gstav12json.h
Normal file
33
subprojects/gst-plugins-bad/ext/codec2json/gstav12json.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_AV1_2_JSON_H__
|
||||
#define __GST_AV1_2_JSON_H__
|
||||
|
||||
#include <gst/codecparsers/gstav1parser.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GST_TYPE_AV1_2_JSON (gst_av1_2_json_get_type())
|
||||
G_DECLARE_FINAL_TYPE (GstAV12json,
|
||||
gst_av1_2_json, GST, AV1_2_JSON, GstElement);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_AV1_2_TXT_H__ */
|
|
@ -1,4 +1,5 @@
|
|||
codec2json_sources = files([
|
||||
'gstav12json.c',
|
||||
'gstvp82json.c',
|
||||
'plugin.c',
|
||||
])
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "gstav12json.h"
|
||||
#include "gstvp82json.h"
|
||||
|
||||
static gboolean
|
||||
|
@ -39,6 +40,10 @@ plugin_init (GstPlugin * plugin)
|
|||
GST_TYPE_VP8_2_JSON))
|
||||
return FALSE;
|
||||
|
||||
if (!gst_element_register (plugin, "av12json", GST_RANK_NONE,
|
||||
GST_TYPE_AV1_2_JSON))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue