[gstreamer-bugs] [Bug 584744] Add libgstvideo bindings

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Jun 3 10:02:53 PDT 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=584744

  GStreamer | gst-sharp | Ver: git




------- Comment #1 from Maarten Bosmans  2009-06-03 17:02 UTC -------
Created an attachment (id=135890)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=135890&action=view)
First attempt for a patch

This patch adds the following api:

namespace Gst.Video {
  public enum VideoFormat;

  public class VideoFormatUtil {
    public VideoFormatUtil ();
    public static int GetSize (VideoFormat format, int width, int height);
    public static bool HasAlpha (VideoFormat format);
    public static bool IsRgb (VideoFormat format);
    public static bool IsYuv (VideoFormat format);
    public static bool ParseCaps (Gst.Caps caps, out VideoFormat format, out
int width, out int height);
    public static bool ParseCapsFramerate (Gst.Caps caps, out int fps_n, out
int fps_d);
    public static bool ParseCapsInterlaced (Gst.Caps caps, out bool
interlaced);
    public static bool ParseCapsPixelAspectRation (Gst.Caps caps, out int
par_n, out int par_d);
  }
}

I'll probably rename VideoFormatUtil to VideoUtil and then move both VideoUtil
and VideoFormat to the main Gst namespace.

I'd also like to add some more static methods, but specifying them in
Gstreamer.metadata seems a bit redundant as the gapi-parser should be able to
generate them automatically, right? It probably doesn't because most of
functions of libgstvideo operate on VideoFormat and that is an enum.
Any suggestions?


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=584744.




More information about the Gstreamer-bugs mailing list