[gstreamer-bugs] [Bug 626181] [pbutils] Add enhanced gstfactorylists
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Aug 16 05:03:09 PDT 2010
https://bugzilla.gnome.org/show_bug.cgi?id=626181
GStreamer | gst-plugins-base | git
--- Comment #14 from Edward Hervey <bilboed at gmail.com> 2010-08-16 12:03:08 UTC ---
(In reply to comment #13)
> > > @@ +61,3 @@
> > > + GST_FACTORY_LIST_DEPAYLOADER = (1 << 8),
> > > +
> > > + GST_FACTORY_LIST_MAX_ELEMENTS = (1 << 16),
> > >
> > > If you want to add special purpose elements here 16 might be too small
> >
> > I'll make it << 24, that should be enough.
>
> I was more thinking of a 64 bit enum
Something like this ?
typedef guint64 GstFactoryListType;
#define GST_FACTORY_LIST_DECODER (1 << 0)
#define GST_FACTORY_LIST_ENCODER (1 << 1)
#define GST_FACTORY_LIST_SINK (1 << 2)
#define GST_FACTORY_LIST_SRC (1 << 3)
#define GST_FACTORY_LIST_MUXER (1 << 4)
#define GST_FACTORY_LIST_DEMUXER (1 << 5)
#define GST_FACTORY_LIST_PARSER (1 << 6)
#define GST_FACTORY_LIST_PAYLOADER (1 << 7)
#define GST_FACTORY_LIST_DEPAYLOADER (1 << 8)
#define GST_FACTORY_LIST_MAX_ELEMENTS ((guint64) 1 << 48)
#define GST_FACTORY_LIST_VIDEO ((guint64) 1 << 49)
#define GST_FACTORY_LIST_AUDIO ((guint64) 1 << 50)
#define GST_FACTORY_LIST_IMAGE ((guint64) 1 << 51)
#define GST_FACTORY_LIST_SUBTITLE ((guint64) 1 << 52)
#define GST_FACTORY_LIST_METADATA ((guint64) 1 << 53)
--
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