diff --git a/libraw/src/main/cpp/anrdroidraw.cpp b/libraw/src/main/cpp/anrdroidraw.cpp index 0139265..2275349 100644 --- a/libraw/src/main/cpp/anrdroidraw.cpp +++ b/libraw/src/main/cpp/anrdroidraw.cpp @@ -163,6 +163,9 @@ extern "C" JNIEXPORT void JNICALL Java_com_homesoft_photo_libraw_LibRaw_setHighl extern "C" JNIEXPORT void JNICALL Java_com_homesoft_photo_libraw_LibRaw_setOutputBps(JNIEnv* env, jobject jLibRaw,jint output_bps){ getLibRaw(env, jLibRaw)->imgdata.params.output_bps=output_bps; } +extern "C" JNIEXPORT void JNICALL Java_com_homesoft_photo_libraw_LibRaw_setFbddNoiseReduction(JNIEnv* env, jobject jLibRaw, jint mode){ + getLibRaw(env, jLibRaw)->imgdata.params.fbdd_noiserd=mode; +} extern "C" JNIEXPORT void JNICALL Java_com_homesoft_photo_libraw_LibRaw_setHalfSize(JNIEnv* env, jobject jLibRaw,jboolean half_size){ getLibRaw(env, jLibRaw)->imgdata.params.half_size=half_size; } diff --git a/libraw/src/main/java/com/homesoft/photo/libraw/LibRaw.java b/libraw/src/main/java/com/homesoft/photo/libraw/LibRaw.java index 8ade044..a1e9e61 100644 --- a/libraw/src/main/java/com/homesoft/photo/libraw/LibRaw.java +++ b/libraw/src/main/java/com/homesoft/photo/libraw/LibRaw.java @@ -232,6 +232,16 @@ public Map getAvailableWhiteBalanceCoefficientsWithTemps() { public native void setOutputColorSpace(int colorSpace); public native void setOutputBps(int outputBps); + /** + * Controls FBDD noise reduction before demosaic. + * See libraw_output_params_t.fbdd_noiserd + * + * @param mode 0 - do not use FBDD noise reduction + * 1 - light FBDD reduction + * 2 (and more) - full FBDD reduction + */ + public native void setFbddNoiseReduction(int mode); + /** * Interpolation Quality * See libraw_output_params_t.user_qual for a full list