org.gstreamer
Class Video

java.lang.Object
  extended by org.gstreamer.Video

public class Video
extends java.lang.Object


Method Summary
static Fraction getVideoFrameRate(Pad pad)
          A convenience function to retrieve a GValue holding the framerate from the caps on a pad.
static java.awt.Dimension getVideoSize(Pad pad)
          Inspect the caps of the provided pad and retrieve the width and height of the video frames it is configured for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getVideoFrameRate

public static Fraction getVideoFrameRate(Pad pad)
A convenience function to retrieve a GValue holding the framerate from the caps on a pad. The pad needs to have negotiated caps containing a framerate property.

Parameters:
pad -
Returns:
video framerate, otherwise null if the pad has no configured caps or the configured caps do not contain a framerate.

getVideoSize

public static java.awt.Dimension getVideoSize(Pad pad)
Inspect the caps of the provided pad and retrieve the width and height of the video frames it is configured for. The pad needs to have negotiated caps containing width and height properties.

Parameters:
pad -
Returns:
dimensions of the video, otherwise null if the video size could not be retrieved