From a0323458b18e7302adeee9037360a60151be673d Mon Sep 17 00:00:00 2001 From: lanthale Date: Mon, 3 Apr 2023 20:38:19 +0200 Subject: [PATCH] Update README.md --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a851790..9fb5de6 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ All raw formats can be loaded with the Image class and manipulated by Pixelwrite **JDK 18 is required for v1.8.0** because of the foreign linker API usage and the big changes for threading happenend in Panama in JDK18 -**JDK 19 and JavaFX 19 is required for v1.8.2** because of the foreign linker API usage, changes in JavaFX 19 and the big changes for threading happenend in Panama in JDK19. Warning: The lib is actually not working on Apple M1 due to a bug in JDK19. This will be fixed with JDK20. +**JDK 20 and JavaFX 20 is required for v1.8.4** because of the foreign linker API usage, changes in JavaFX 19 and the big changes for threading happenend in Panama in JDK19/20. ## Status Now the lib is in production ready status. That means it is tested on all operating systems (OSX, Linux, Win10) and under different threading scenarious. @@ -43,12 +43,12 @@ Point to the maven coordinates: 1.8.0 ``` -**JDK19** +**JDK20** ``` org.librawfx LibRawFX - 1.8.3 + 1.8.4 ``` @@ -68,7 +68,7 @@ Point to the maven coordinates: --add-exports=javafx.graphics/com.sun.javafx.iio.common=org.librawfx ``` -- and add the following lines to your java config on JDK 19: +- and add the following lines to your java config on JDK 20: ``` --enable-preview --enable-native-access=org.librawfx --add-exports=javafx.graphics/com.sun.javafx.iio=org.librawfx @@ -87,6 +87,9 @@ metaData.entrySet().forEach((entry) -> { }); ``` +- **RAW Settings** +You can get the default settings for all camera models with the call RAWImageLoaderFactory.getDecoderSettings(). Afterwards use the getters/setters to update the raw settings. There is also a method called getCameraMaker() which extracts the camera model and afterwards you can now build a model based raw setting engine and feed always before loading an image with the right settings for the camera model. + - **Module name: org.librawfx** You can have a look into the class TestAPP.java to see how to use it, but generally just create an Image with the URL/stream and add it to the image view: @@ -113,7 +116,7 @@ You can also use the lib without adding the file handler. What I mean is that yo # Notes: - The lib is using unoffical JavaFX interfaces -- The lib is using heavily the foreign memory API from Java 18 including functions from the project Panama and therefore the tool `JExtract` (Available only in JDK 19) +- The lib is using heavily the foreign memory API from Java 18 including functions from the project Panama and therefore the tool `JExtract` (Available only in JDK 19/20) - All classes inside of package `org.libraw.win` / `org.libraw.linuxosx` are generated by jextract but tuned for operating system specifica - Inside of these packages above I exposed also the raw interface to libraw - The main class to interact with the native lib is the class `LibrawImage.java` in package `org.librawfx`