java.lang.Object
uk.co.caprica.vlcj.media.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.int
height()
Get the picture height.int
size()
Get the picture buffer size.int
stride()
Get the picture stride (depth).long
time()
Get the timestamp when the picture was taken.toString()
type()
Get the picture type.int
width()
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
-
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
-