Package uk.co.caprica.vlcj.media
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
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.String
toString()
PictureType
type()
Get the picture type.int
width()
Get the picture width.
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-