[gstreamer-bugs] [Bug 619828] [API] adapter: add masked_scan_uint32_peek

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Jun 2 05:17:29 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=619828
  GStreamer | gstreamer (core) | git

Tim-Philipp Müller <t.i.m> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |t.i.m at zen.co.uk
     Ever Confirmed|0                           |1

--- Comment #3 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2010-06-02 12:17:28 UTC ---
+ guint  gst_adapter_masked_scan_uint32_peek  (GstAdapter * adapter,
+                                              guint32 mask, guint32 pattern,
+                                              guint offset, guint size,
+                                              guint32 * value);

Why not, seems like a worthwhile addition to me - if you have a use for it,
go for it.


Some additional / alternative ideas:

 - maybe add masked scan variants that automatically
   flush all data to the match? Then you could just
   return a boolean instead of an offset, and/or
   return the peek value directly, using 0 for
   'not found' (with guards to make sure that mask
   and pattern won't yield 0)

-- 
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