示例#1
0
 /**
  * Construct a new Caps from a string representation. Example:
  *
  * <p><code>
  *  Caps caps = Caps.fromString("video/x-raw, format=RGB, bpp=32, depth=24, width=640, height=480");
  * </code>
  *
  * @param caps The string representation of the caps.
  * @return The new Caps.
  */
 public static Caps fromString(String caps) {
   return new Caps(initializer(GSTCAPS_API.ptr_gst_caps_from_string(caps)));
 }
示例#2
0
 /**
  * Construct a new Caps from a string representation.
  *
  * @param caps The string representation of the caps.
  * @see #fromString
  */
 public Caps(String caps) {
   this(initializer(GSTCAPS_API.ptr_gst_caps_from_string(caps)));
 }