Skip to content

Commit

Permalink
Update for libvips 8.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lopcode committed Oct 31, 2024
1 parent 29ea9db commit 0cb3b61
Show file tree
Hide file tree
Showing 19 changed files with 3,301 additions and 1,238 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ repositories {
}

dependencies {
implementation("app.photofox.vips-ffm:vips-ffm-core:1.2.1")
implementation("app.photofox.vips-ffm:vips-ffm-core:1.2.2")
}
```
When running your project you must add `--enable-native-access=ALL-UNNAMED` to your JVM runtime arguments. If you
don't, you'll get a warning about "Restricted methods". In the future, the JVM will throw an error if you don't
explicitly include this flag.

As the project uses the Java FFM API, it must target JDK 22+. Bindings are currently generated from libvips `8.15.5`,
As the project uses the Java FFM API, it must target JDK 22+. Bindings are currently generated from libvips `8.16.0`,
however they use the underlying libvips operation API. Most operations **do not** use the C API directly (as described
in the [bindings docs](https://www.libvips.org/API/current/binding.html)) - they should be safe to use with different
libvips versions, assuming there haven't been major changes.
Expand Down
249 changes: 204 additions & 45 deletions core/src/main/java/app/photofox/vipsffm/VImage.java

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions core/src/main/java/app/photofox/vipsffm/enums/VipsSdfShape.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
package app.photofox.vipsffm.enums;

import app.photofox.vipsffm.VNamedEnum;
import java.lang.Override;
import java.lang.String;

/**
* <p>The SDF to generate,</p>
*
* <p>See also: {@link app.photofox.vipsffm.VImage#sdf}.</p>
*/
public enum VipsSdfShape implements VNamedEnum {
/**
* <p>a circle at {@code a}, radius {@code r}</p>
*/
SDF_SHAPE_CIRCLE("VIPS_SDF_SHAPE_CIRCLE", "circle", 0),

/**
* <p>a box from {@code a} to {@code b}</p>
*/
SDF_SHAPE_BOX("VIPS_SDF_SHAPE_BOX", "box", 1),

/**
* <p>a box with rounded {@code corners} from {@code a} to {@code b}</p>
*/
SDF_SHAPE_ROUNDED_BOX("VIPS_SDF_SHAPE_ROUNDED_BOX", "rounded-box", 2),

/**
* <p>a line from {@code a} to {@code b}</p>
*/
SDF_SHAPE_LINE("VIPS_SDF_SHAPE_LINE", "line", 3),

SDF_SHAPE_LAST("VIPS_SDF_SHAPE_LAST", "last", 4);

public static final String parentName = "VipsSdfShape";

private final String vipsName;

private final String vipsNickname;

private final int rawValue;

VipsSdfShape(String vipsName, String vipsNickname, int rawValue) {
this.vipsName = vipsName;
this.vipsNickname = vipsNickname;
this.rawValue = rawValue;
}

@Override
public String getName() {
return this.vipsName;
}

@Override
public String getNickname() {
return this.vipsNickname;
}

@Override
public int getRawValue() {
return this.rawValue;
}
}
Loading

0 comments on commit 0cb3b61

Please sign in to comment.