Package com.banuba.sdk.types
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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FullImageData.Orientation
Describes various information related to image orientation -
Constructor Summary
Constructors Constructor Description FullImageData(android.graphics.Bitmap image, FullImageData.Orientation orientation)
FullImageData(android.media.Image image, FullImageData.Orientation orientation)
FullImageData(android.media.Image image, FullImageData.Orientation orientation, ImageReleaser ir)
FullImageData(android.media.Image image, FullImageData.Orientation orientation, ImageReleaser ir, ColorRange colorRange, ColorStd colorStd)
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(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(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(java.nio.Buffer image, android.util.Size size, int rowStride, FullImageData.Orientation orientation)
-
Method Summary
Modifier and Type Method Description FullImageData.Orientation
getOrientation()
int
getPixelFormat()
android.util.Size
getSize()
void
setImageReleaser(ImageReleaser ir)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FullImageData
-
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
- Parameters:
image
- must beARGB_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
-
getSize
public android.util.Size getSize() -
getOrientation
-
getPixelFormat
public int getPixelFormat()
-