[Bug 691712] [API] codecparsers: add GstMetas to pass parsing results downstream
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Jul 15 05:47:48 PDT 2013
https://bugzilla.gnome.org/show_bug.cgi?id=691712
GStreamer | gst-plugins-bad | git
--- Comment #6 from sreerenj <bsreerenj at gmail.com> 2013-07-15 12:47:44 UTC ---
Okay,, So if the downstream supports only frame_level api then the parser
doesn't need to parse all the slices since it is bit expensive. And if the
downstream supports slice_level api, then the parser should parse every slices.
METHOD1:
--------------
How about splitting GstMpegVideoMeta in to two Metas:
--The GstMpegVideoMeta for all the generic headers like seq_hdr, pic_hdr etc
--The GstMpegVideoSliceMeta to keep an array of GstMpegVideoSliceHdr and
slice_offsets
So as per the request from downstream elements, parser can add the necessary
metas:
METHOD2:
--------------
Otherwise we can use an API specific parameter need_slice_parsing.
So the downstream elements which need to get the slice information should add
"need_slice_parsing=TRUE" to the GstStructure field @parm in
gst_query_add_allocation_meta().
And we can keep an array of GstMpegVideoSliceS with in GstMpegVideoMeta to
store both GstMpegVideoSliceHdr and slice_offset.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list