Class Picture

java.lang.Object
uk.co.caprica.vlcj.media.Picture

public final class Picture extends Object
Picture.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Picture(int width, int height, PictureType type, int stride, long time, byte[] buffer, int size)
     
    Picture(uk.co.caprica.vlcj.binding.internal.libvlc_picture_t picture)
    Create a picture.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Get the picture buffer.
    int
    Get the picture height.
    int
    Get the picture buffer size.
    int
    Get the picture stride (depth).
    long
    Get the timestamp when the picture was taken.
     
    Get the picture type.
    int
    Get the picture width.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Picture

      public Picture(uk.co.caprica.vlcj.binding.internal.libvlc_picture_t picture)
      Create a picture.
      Parameters:
      picture - native picture instance
    • Picture

      public Picture(int width, int height, PictureType type, int stride, long time, byte[] buffer, int size)
  • Method Details

    • width

      public int width()
      Get the picture width.
      Returns:
      width
    • height

      public int height()
      Get the picture height.
      Returns:
      height
    • stride

      public int stride()
      Get the picture stride (depth).
      Returns:
      stride
    • type

      public PictureType type()
      Get the picture type.
      Returns:
      type
    • time

      public long time()
      Get the timestamp when the picture was taken.
      Returns:
      time
    • buffer

      public byte[] buffer()
      Get the picture buffer.
      Returns:
      buffer
    • size

      public int size()
      Get the picture buffer size.
      Returns:
      buffer size
    • toString

      public String toString()
      Overrides:
      toString in class Object