java.lang.Object
uk.co.caprica.vlcj.media.Picture
Picture.
-
Constructor Summary
ConstructorsConstructorDescriptionPicture(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 TypeMethodDescriptionbyte[]buffer()Get the picture buffer.intheight()Get the picture height.intsize()Get the picture buffer size.intstride()Get the picture stride (depth).longtime()Get the timestamp when the picture was taken.toString()type()Get the picture type.intwidth()Get the picture width.
-
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
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
-