Class FullImageData

java.lang.Object
com.banuba.sdk.types.FullImageData

public class FullImageData
extends java.lang.Object
Container for image data designed for Banuba SDK.
  • Constructor Details

    • FullImageData

      public FullImageData​(android.media.Image image, FullImageData.Orientation orientation)
    • FullImageData

      public FullImageData​(android.media.Image image, FullImageData.Orientation orientation, ImageReleaser ir)
    • FullImageData

      public FullImageData​(android.media.Image image, FullImageData.Orientation orientation, ImageReleaser ir, ColorRange colorRange, ColorStd colorStd)
    • FullImageData

      public FullImageData​(android.util.Size size, java.nio.Buffer plane0, java.nio.Buffer plane1, java.nio.Buffer plane2, int rowStride0, int rowStride1, int rowStride2, int pixelStride0, int pixelStride1, int pixelStride2, FullImageData.Orientation orientation)
      Accepts both planar and biplanar (`plane2 = null`) YUV420 images.
    • FullImageData

      public FullImageData​(android.util.Size size, java.nio.Buffer plane0, java.nio.Buffer plane1, java.nio.Buffer plane2, int rowStride0, int rowStride1, int rowStride2, int pixelStride0, int pixelStride1, int pixelStride2, FullImageData.Orientation orientation, ImageReleaser ir)
    • FullImageData

      public FullImageData​(android.util.Size size, java.nio.Buffer plane0, java.nio.Buffer plane1, java.nio.Buffer plane2, int rowStride0, int rowStride1, int rowStride2, int pixelStride0, int pixelStride1, int pixelStride2, FullImageData.Orientation orientation, ImageReleaser ir, ColorRange colorRange, ColorStd colorStd)
    • FullImageData

      public FullImageData​(android.graphics.Bitmap image, FullImageData.Orientation orientation)
      Parameters:
      image - must be ARGB_8888.
    • FullImageData

      public FullImageData​(java.nio.Buffer image, android.util.Size size, int rowStride, FullImageData.Orientation orientation)
      Parameters:
      image - pixel layout is identical to `Bitmap.Config.ARGB_8888`
      rowStride - in bytes
  • Method Details

    • setImageReleaser

      public void setImageReleaser​(ImageReleaser ir)
    • getSize

      public android.util.Size getSize()
    • getOrientation

      public FullImageData.Orientation getOrientation()
    • getPixelFormat

      public int getPixelFormat()