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:
He Junyan 2020-09-22 14:54:19 +08:00 committed by GStreamer Merge Bot
parent 057fedd178
commit fe19bc0a2e
4 changed files with 1743 additions and 0 deletions

File diff suppressed because it is too large Load diff

View 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__ */

View file

@ -13,6 +13,7 @@ vparse_sources = [
'gstvideoparseutils.c',
'gstjpeg2000parse.c',
'gstvp9parse.c',
'gstav1parse.c',
]
gstvideoparsersbad = library('gstvideoparsersbad',

View file

@ -32,6 +32,7 @@
#include "gstvc1parse.h"
#include "gsth265parse.h"
#include "gstvp9parse.h"
#include "gstav1parse.h"
GST_DEBUG_CATEGORY (videoparseutils_debug);
@ -70,6 +71,14 @@ plugin_init (GstPlugin * plugin)
ret |= gst_element_register (plugin, "vp9parse",
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;
}