Class YUVMediaImage
- Last UpdatedMar 28, 2025
- 1 minute read
com.here.see.livesense.ar_lib.yuv
- java.lang.Object
-
- com.here.see.livesense.ar_lib.yuv.YUVMediaImage
-
-
Constructor Summary
Constructors Constructor and Description YUVMediaImage(Image image)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
fillYuvBytes(int i, byte[][] yuvBytes)
Copy bytes from image plane to arrayint
getHeight()
int
getPixelStride(int index)
Pixel stride for plane of imageint
getRowStride(int index)
Row stride for plane of imageint
getWidth()
-
-
-
Constructor Detail
-
YUVMediaImage
public YUVMediaImage(Image image)
- Parameters:
image
- Image in YUV format- Throws:
IllegalArgumentException
- If image is not YUV format
-
-
Method Detail
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
getRowStride
public int getRowStride(int index)
Description copied from interface:YUVImage
Row stride for plane of image- Specified by:
getRowStride
in interfaceYUVImage
- Parameters:
index
- Image plane index- Returns:
- row stride of plane
-
getPixelStride
public int getPixelStride(int index)
Description copied from interface:YUVImage
Pixel stride for plane of image- Specified by:
getPixelStride
in interfaceYUVImage
- Parameters:
index
- Image plane index- Returns:
- pixel stride of plane
-
fillYuvBytes
public void fillYuvBytes(int i, byte[][] yuvBytes)
Description copied from interface:YUVImage
Copy bytes from image plane to array- Specified by:
fillYuvBytes
in interfaceYUVImage
- Parameters:
i
- Image plane indexyuvBytes
- Array to fill, 2nd dimension need not be populated
-
-