videoparsers: av1: Add the AV1 parse.
This AV1 parse implements the conversion between alignment of obu, tu and frame, and the conversion between stream-format of obu-stream and annexb. TODO: 1. May need a property of operating_point to filter the OBUs 2. May add a property to disable deep parse. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1614>
This commit is contained in:
parent
057fedd178
commit
fe19bc0a2e
1699
gst/videoparsers/gstav1parse.c
Normal file
1699
gst/videoparsers/gstav1parse.c
Normal file
File diff suppressed because it is too large
Load Diff
34
gst/videoparsers/gstav1parse.h
Normal file
34
gst/videoparsers/gstav1parse.h
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
/* GStreamer
|
||||||
|
* Copyright (C) 2020 He Junyan <junyan.he@intel.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_PARSE_H__
|
||||||
|
#define __GST_AV1_PARSE_H__
|
||||||
|
|
||||||
|
#include <gst/gst.h>
|
||||||
|
#include <gst/base/gstbaseparse.h>
|
||||||
|
|
||||||
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
#define GST_TYPE_AV1_PARSE (gst_av1_parse_get_type())
|
||||||
|
G_DECLARE_FINAL_TYPE (GstAV1Parse,
|
||||||
|
gst_av1_parse, GST, AV1_PARSE, GstBaseParse);
|
||||||
|
|
||||||
|
G_END_DECLS
|
||||||
|
|
||||||
|
#endif /* __GST_AV1_PARSE_H__ */
|
@ -13,6 +13,7 @@ vparse_sources = [
|
|||||||
'gstvideoparseutils.c',
|
'gstvideoparseutils.c',
|
||||||
'gstjpeg2000parse.c',
|
'gstjpeg2000parse.c',
|
||||||
'gstvp9parse.c',
|
'gstvp9parse.c',
|
||||||
|
'gstav1parse.c',
|
||||||
]
|
]
|
||||||
|
|
||||||
gstvideoparsersbad = library('gstvideoparsersbad',
|
gstvideoparsersbad = library('gstvideoparsersbad',
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
#include "gstvc1parse.h"
|
#include "gstvc1parse.h"
|
||||||
#include "gsth265parse.h"
|
#include "gsth265parse.h"
|
||||||
#include "gstvp9parse.h"
|
#include "gstvp9parse.h"
|
||||||
|
#include "gstav1parse.h"
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY (videoparseutils_debug);
|
GST_DEBUG_CATEGORY (videoparseutils_debug);
|
||||||
|
|
||||||
@ -70,6 +71,14 @@ plugin_init (GstPlugin * plugin)
|
|||||||
ret |= gst_element_register (plugin, "vp9parse",
|
ret |= gst_element_register (plugin, "vp9parse",
|
||||||
GST_RANK_SECONDARY, GST_TYPE_VP9_PARSE);
|
GST_RANK_SECONDARY, GST_TYPE_VP9_PARSE);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* element-av1parse:
|
||||||
|
*
|
||||||
|
* Since: 1.20
|
||||||
|
*/
|
||||||
|
ret |= gst_element_register (plugin, "av1parse",
|
||||||
|
GST_RANK_SECONDARY, GST_TYPE_AV1_PARSE);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user