/gdk/samples/PhotoEditor/jni/ |
D | _jni.h | 3 …void Backlight(JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat backlight); 4 void Blur(JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat scale); 5 void ColorTemp(JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat scale); 6 void Copy(JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap); 7 void CrossProcess(JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap); 8 …void Duotone(JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jint color1, jint c… 9 …void Fisheye(JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat focus_x, jfl… 10 void FlipHorizontal(JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap); 11 void FlipVertical(JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap); 12 void FlipBoth(JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap); [all …]
|
D | utils.cpp | 28 jobject src_bitmap, jobject dst_bitmap) { in ExtractInfoFromBitmap() argument 38 if ((ret = AndroidBitmap_getInfo(env, dst_bitmap, dst_info)) < 0) { in ExtractInfoFromBitmap() 45 int LockBitmaps(JNIEnv* env, jobject src_bitmap, jobject dst_bitmap, in LockBitmaps() argument 49 if ((ret = ExtractInfoFromBitmap(env, src_info, dst_info, src_bitmap, dst_bitmap)) < 0) { in LockBitmaps() 56 if ((ret = AndroidBitmap_lockPixels(env, dst_bitmap, dst_pixels)) < 0) { in LockBitmaps() 64 void UnlockBitmaps(JNIEnv* env, jobject src_bitmap, jobject dst_bitmap) { in UnlockBitmaps() argument 66 AndroidBitmap_unlockPixels(env, dst_bitmap); in UnlockBitmaps()
|
D | flip.cpp | 29 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap) { in Java_com_android_photoeditor_filters_ImageUtils_nativeFlipHorizontal() argument 31 return f(env, obj, src_bitmap, dst_bitmap); in Java_com_android_photoeditor_filters_ImageUtils_nativeFlipHorizontal() 35 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap) { in FlipHorizontal() argument 43 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in FlipHorizontal() 63 UnlockBitmaps(env, src_bitmap, dst_bitmap); in FlipHorizontal() 67 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap) { in Java_com_android_photoeditor_filters_ImageUtils_nativeFlipVertical() argument 69 return f(env, obj, src_bitmap, dst_bitmap); in Java_com_android_photoeditor_filters_ImageUtils_nativeFlipVertical() 73 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap) { in FlipVertical() argument 80 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in FlipVertical() 101 UnlockBitmaps(env, src_bitmap, dst_bitmap); in FlipVertical() [all …]
|
D | copy.cpp | 31 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap) { in Java_com_android_photoeditor_filters_ImageUtils_nativeCopy() argument 33 return f(env, obj, src_bitmap, dst_bitmap); in Java_com_android_photoeditor_filters_ImageUtils_nativeCopy() 37 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap) { in Copy() argument 44 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in Copy() 52 UnlockBitmaps(env, src_bitmap, dst_bitmap); in Copy()
|
D | blur.cpp | 31 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat scale) { in Java_com_android_photoeditor_filters_ImageUtils_nativeBlur() argument 33 return f(env, obj, src_bitmap, dst_bitmap, scale); in Java_com_android_photoeditor_filters_ImageUtils_nativeBlur() 37 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat scale) { in Blur() argument 44 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in Blur() 54 UnlockBitmaps(env, src_bitmap, dst_bitmap); in Blur()
|
D | sharpen.cpp | 31 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat scale) { in Java_com_android_photoeditor_filters_ImageUtils_nativeSharpen() argument 33 return f(env, obj, src_bitmap, dst_bitmap, scale); in Java_com_android_photoeditor_filters_ImageUtils_nativeSharpen() 37 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat scale) { in Sharpen() argument 44 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in Sharpen() 52 UnlockBitmaps(env, src_bitmap, dst_bitmap); in Sharpen()
|
D | warmify.cpp | 65 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap) { in Java_com_android_photoeditor_filters_ImageUtils_nativeWarmify() argument 67 return f(env, obj, src_bitmap, dst_bitmap); in Java_com_android_photoeditor_filters_ImageUtils_nativeWarmify() 71 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap) { in Warmify() argument 78 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in Warmify() 103 UnlockBitmaps(env, src_bitmap, dst_bitmap); in Warmify()
|
D | quantize.cpp | 33 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap) { in Java_com_android_photoeditor_filters_ImageUtils_nativeQuantize() argument 35 return f(env, obj, src_bitmap, dst_bitmap); in Java_com_android_photoeditor_filters_ImageUtils_nativeQuantize() 39 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap) { in Quantize() argument 46 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in Quantize() 75 UnlockBitmaps(env, src_bitmap, dst_bitmap); in Quantize()
|
D | negative.cpp | 30 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap) { in Java_com_android_photoeditor_filters_ImageUtils_nativeNegative() argument 32 return f(env, obj, src_bitmap, dst_bitmap); in Java_com_android_photoeditor_filters_ImageUtils_nativeNegative() 36 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap) { in Negative() argument 43 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in Negative() 68 UnlockBitmaps(env, src_bitmap, dst_bitmap); in Negative()
|
D | sepia.cpp | 30 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap) { in Java_com_android_photoeditor_filters_ImageUtils_nativeSepia() argument 32 return f(env, obj, src_bitmap, dst_bitmap); in Java_com_android_photoeditor_filters_ImageUtils_nativeSepia() 36 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap) { in Sepia() argument 43 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in Sepia() 76 UnlockBitmaps(env, src_bitmap, dst_bitmap); in Sepia()
|
D | crossprocess.cpp | 30 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap) { in Java_com_android_photoeditor_filters_ImageUtils_nativeCrossProcess() argument 32 return f(env, obj, src_bitmap, dst_bitmap); in Java_com_android_photoeditor_filters_ImageUtils_nativeCrossProcess() 36 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap) { in CrossProcess() argument 43 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in CrossProcess() 86 UnlockBitmaps(env, src_bitmap, dst_bitmap); in CrossProcess()
|
D | grayscale.cpp | 30 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat scale) { in Java_com_android_photoeditor_filters_ImageUtils_nativeGrayscale() argument 32 return f(env, obj, src_bitmap, dst_bitmap, scale); in Java_com_android_photoeditor_filters_ImageUtils_nativeGrayscale() 36 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat scale) { in Grayscale() argument 43 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in Grayscale() 77 UnlockBitmaps(env, src_bitmap, dst_bitmap); in Grayscale()
|
D | tint.cpp | 30 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jint tint) { in Java_com_android_photoeditor_filters_ImageUtils_nativeTint() argument 32 return f(env, obj, src_bitmap, dst_bitmap, tint); in Java_com_android_photoeditor_filters_ImageUtils_nativeTint() 36 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jint tint) { in Tint() argument 43 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in Tint() 89 UnlockBitmaps(env, src_bitmap, dst_bitmap); in Tint()
|
D | colortemp.cpp | 35 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat scale) { in Java_com_android_photoeditor_filters_ImageUtils_nativeColorTemp() argument 37 return f(env, obj, src_bitmap, dst_bitmap, scale); in Java_com_android_photoeditor_filters_ImageUtils_nativeColorTemp() 41 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat scale) { in ColorTemp() argument 48 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in ColorTemp() 95 UnlockBitmaps(env, src_bitmap, dst_bitmap); in ColorTemp()
|
D | vignetting.cpp | 35 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat range) { in Java_com_android_photoeditor_filters_ImageUtils_nativeVignetting() argument 37 return f(env, obj, src_bitmap, dst_bitmap, range); in Java_com_android_photoeditor_filters_ImageUtils_nativeVignetting() 41 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat range) { in Vignetting() argument 54 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in Vignetting() 85 UnlockBitmaps(env, src_bitmap, dst_bitmap); in Vignetting()
|
D | backlight.cpp | 32 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat backlight) { in Java_com_android_photoeditor_filters_ImageUtils_nativeBacklight() argument 34 return f(env, obj, src_bitmap, dst_bitmap, backlight); in Java_com_android_photoeditor_filters_ImageUtils_nativeBacklight() 37 extern "C" void Backlight(JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat … in Backlight() argument 44 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in Backlight() 104 UnlockBitmaps(env, src_bitmap, dst_bitmap); in Backlight()
|
D | utils.h | 56 jobject src_bitmap, jobject dst_bitmap); 58 int LockBitmaps(JNIEnv* env, jobject src_bitmap, jobject dst_bitmap, 62 void UnlockBitmaps(JNIEnv* env, jobject src_bitmap, jobject dst_bitmap);
|
D | duotone.cpp | 30 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jint color1, jint color2) { in Java_com_android_photoeditor_filters_ImageUtils_nativeDuotone() argument 32 return f(env, obj, src_bitmap, dst_bitmap, color1, color2); in Java_com_android_photoeditor_filters_ImageUtils_nativeDuotone() 36 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jint color1, jint color2) { in Duotone() argument 43 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in Duotone() 91 UnlockBitmaps(env, src_bitmap, dst_bitmap); in Duotone()
|
D | whiteblack.cpp | 47 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat white, jfloat black) { in Java_com_android_photoeditor_filters_ImageUtils_nativeWhiteBlack() argument 49 return f(env, obj, src_bitmap, dst_bitmap, white, black); in Java_com_android_photoeditor_filters_ImageUtils_nativeWhiteBlack() 53 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat white, jfloat black) { in WhiteBlack() argument 60 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in WhiteBlack() 110 UnlockBitmaps(env, src_bitmap, dst_bitmap); in WhiteBlack()
|
D | redeye.cpp | 33 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, in Java_com_android_photoeditor_filters_ImageUtils_nativeRedEye() argument 36 return f(env, obj, src_bitmap, dst_bitmap, redeye_positions, radius, intensity); in Java_com_android_photoeditor_filters_ImageUtils_nativeRedEye() 40 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, in RedEye() argument 48 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in RedEye() 106 UnlockBitmaps(env, src_bitmap, dst_bitmap); in RedEye()
|
D | saturate.cpp | 121 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat scale) { in Java_com_android_photoeditor_filters_ImageUtils_nativeSaturation() argument 123 return f(env, obj, src_bitmap, dst_bitmap, scale); in Java_com_android_photoeditor_filters_ImageUtils_nativeSaturation() 127 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat scale) { in Saturation() argument 134 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in Saturation() 147 UnlockBitmaps(env, src_bitmap, dst_bitmap); in Saturation()
|
D | grain.cpp | 126 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat noise_scale) { in Java_com_android_photoeditor_filters_ImageUtils_nativeGrain() argument 128 return f(env, obj, src_bitmap, dst_bitmap, noise_scale); in Java_com_android_photoeditor_filters_ImageUtils_nativeGrain() 132 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat noise_scale) { in Grain() argument 139 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in Grain() 181 UnlockBitmaps(env, src_bitmap, dst_bitmap); in Grain()
|
D | heq.cpp | 112 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat scale) { in Java_com_android_photoeditor_filters_ImageUtils_nativeHEQ() argument 114 return f(env, obj, src_bitmap, dst_bitmap, scale); in Java_com_android_photoeditor_filters_ImageUtils_nativeHEQ() 118 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, jfloat scale) { in HEQ() argument 125 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in HEQ() 251 UnlockBitmaps(env, src_bitmap, dst_bitmap); in HEQ()
|
D | fisheye.cpp | 92 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, in Java_com_android_photoeditor_filters_ImageUtils_nativeFisheye() argument 95 return f(env, obj, src_bitmap, dst_bitmap, focus_x, focus_y, scale); in Java_com_android_photoeditor_filters_ImageUtils_nativeFisheye() 99 JNIEnv *env, jobject obj, jobject src_bitmap, jobject dst_bitmap, in Fisheye() argument 107 env, src_bitmap, dst_bitmap, &src_info, &dst_info, &src_pixels, &dst_pixels); in Fisheye() 157 UnlockBitmaps(env, src_bitmap, dst_bitmap); in Fisheye()
|