You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
implement BitmapFactory.decodeStream() using gdk_pixbuf_new_from_stream
The java InputStream is wrapped into a custom GInputStream implementation
This commit is contained in:
@@ -19,6 +19,14 @@ extern "C" {
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_Bitmap_native_1bitmap_1from_1path
|
||||
(JNIEnv *, jobject, jobject);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: native_copy
|
||||
* Signature: (J)J
|
||||
*/
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_Bitmap_native_1copy
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: getWidth
|
||||
@@ -86,10 +94,10 @@ JNIEXPORT void JNICALL Java_android_graphics_Bitmap_nativeErase
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeRowBytes
|
||||
* Signature: (I)I
|
||||
* Signature: (J)I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL Java_android_graphics_Bitmap_nativeRowBytes
|
||||
(JNIEnv *, jclass, jint);
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
|
||||
@@ -12,9 +12,9 @@ extern "C" {
|
||||
/*
|
||||
* Class: android_graphics_BitmapFactory
|
||||
* Method: nativeDecodeStream
|
||||
* Signature: (Ljava/io/InputStream;[BLandroid/graphics/Rect;Landroid/graphics/BitmapFactory/Options;)Landroid/graphics/Bitmap;
|
||||
* Signature: (Ljava/io/InputStream;[BLandroid/graphics/Rect;Landroid/graphics/BitmapFactory/Options;)J
|
||||
*/
|
||||
JNIEXPORT jobject JNICALL Java_android_graphics_BitmapFactory_nativeDecodeStream
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_BitmapFactory_nativeDecodeStream
|
||||
(JNIEnv *, jclass, jobject, jbyteArray, jobject, jobject);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user