Powered by Zoomin Software. For more details please contactZoomin

HERE Live Sense SDK for Android - API Reference

Product category
Technology
Doc type
Version
Product lifecycle
This publication

HERE Live Sense SDK for Android - API Reference: Class YUVMediaImage

Table of Contents

Class YUVMediaImage

com.here.see.livesense.ar_lib.yuv
  • All Implemented Interfaces:
    YUVImage


    public class YUVMediaImage
    extends Object
    implements YUVImage
    YUV image from Image
    • 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()
        Specified by:
        getWidth in interface YUVImage
        Returns:
        Pixel width of image
      • getHeight

        public int getHeight()
        Specified by:
        getHeight in interface YUVImage
        Returns:
        Pixel height of image
      • getRowStride

        public int getRowStride(int index)
        Description copied from interface: YUVImage
        Row stride for plane of image
        Specified by:
        getRowStride in interface YUVImage
        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 interface YUVImage
        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 interface YUVImage
        Parameters:
        i - Image plane index
        yuvBytes - Array to fill, 2nd dimension need not be populated
Was this article helpful?
TitleResults for “How to create a CRG?”Also Available inAlert