Package org.robolectric.nativeruntime
Class ImageReaderSurfaceImageNatives
java.lang.Object
org.robolectric.nativeruntime.ImageReaderSurfaceImageNatives
Native methods for
ImageReader
JNI registration.
Native method signatures are derived from:
API 31/32 (S, S_V2, Android 12, all above) https://cs.android.com/android/platform/superproject/+/android-12.0.0_r1:frameworks/base/media/java/android/media/ImageReader.java https://cs.android.com/android/platform/superproject/+/android-12.0.0_r1:frameworks/base/media/jni/android_media_ImageReader.cpp API 30 (R, Android 11) https://cs.android.com/android/platform/superproject/+/android-11.0.0_r1:frameworks/base/media/java/android/media/ImageReader.java API 29 (Q, Android 10) https://cs.android.com/android/platform/superproject/+/android-10.0.0_r1:frameworks/base/media/java/android/media/ImageReader.java
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionObject[]
nativeCreatePlanes
(int numPlanes, int readerFormat, long readerUsage) int
nativeGetFormat
(int readerFormat) int
int
static Object[]
nativeSurfaceImageCreatePlanes
(Object realSurfaceImage, int numPlanes, int readerFormat, long readerUsage) RNG-specific native trampoline methods to invoke the native member functions on the proper SurfaceImage object reference.static int
nativeSurfaceImageGetFormat
(Object realSurfaceImage, int readerFormat) static int
nativeSurfaceImageGetHeight
(Object realSurfaceImage) static int
nativeSurfaceImageGetWidth
(Object realSurfaceImage)
-
Constructor Details
-
ImageReaderSurfaceImageNatives
public ImageReaderSurfaceImageNatives()
-
-
Method Details
-
nativeCreatePlanes
-
nativeGetWidth
public int nativeGetWidth() -
nativeGetHeight
public int nativeGetHeight() -
nativeGetFormat
public int nativeGetFormat(int readerFormat) -
nativeSurfaceImageCreatePlanes
public static Object[] nativeSurfaceImageCreatePlanes(Object realSurfaceImage, int numPlanes, int readerFormat, long readerUsage) RNG-specific native trampoline methods to invoke the native member functions on the proper SurfaceImage object reference. -
nativeSurfaceImageGetWidth
-
nativeSurfaceImageGetHeight
-
nativeSurfaceImageGetFormat
-