Skip to content

Commit 7517af5

Browse files
authored
Update for libvips 8.16.0 (#113)
1 parent 29ea9db commit 7517af5

File tree

19 files changed

+3301
-1238
lines changed

19 files changed

+3301
-1238
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ repositories {
2323
}
2424

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

33-
As the project uses the Java FFM API, it must target JDK 22+. Bindings are currently generated from libvips `8.15.5`,
33+
As the project uses the Java FFM API, it must target JDK 22+. Bindings are currently generated from libvips `8.16.0`,
3434
however they use the underlying libvips operation API. Most operations **do not** use the C API directly (as described
3535
in the [bindings docs](https://www.libvips.org/API/current/binding.html)) - they should be safe to use with different
3636
libvips versions, assuming there haven't been major changes.

core/src/main/java/app/photofox/vipsffm/VImage.java

Lines changed: 204 additions & 45 deletions
Large diffs are not rendered by default.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
package app.photofox.vipsffm.enums;
2+
3+
import app.photofox.vipsffm.VNamedEnum;
4+
import java.lang.Override;
5+
import java.lang.String;
6+
7+
/**
8+
* <p>The SDF to generate,</p>
9+
*
10+
* <p>See also: {@link app.photofox.vipsffm.VImage#sdf}.</p>
11+
*/
12+
public enum VipsSdfShape implements VNamedEnum {
13+
/**
14+
* <p>a circle at {@code a}, radius {@code r}</p>
15+
*/
16+
SDF_SHAPE_CIRCLE("VIPS_SDF_SHAPE_CIRCLE", "circle", 0),
17+
18+
/**
19+
* <p>a box from {@code a} to {@code b}</p>
20+
*/
21+
SDF_SHAPE_BOX("VIPS_SDF_SHAPE_BOX", "box", 1),
22+
23+
/**
24+
* <p>a box with rounded {@code corners} from {@code a} to {@code b}</p>
25+
*/
26+
SDF_SHAPE_ROUNDED_BOX("VIPS_SDF_SHAPE_ROUNDED_BOX", "rounded-box", 2),
27+
28+
/**
29+
* <p>a line from {@code a} to {@code b}</p>
30+
*/
31+
SDF_SHAPE_LINE("VIPS_SDF_SHAPE_LINE", "line", 3),
32+
33+
SDF_SHAPE_LAST("VIPS_SDF_SHAPE_LAST", "last", 4);
34+
35+
public static final String parentName = "VipsSdfShape";
36+
37+
private final String vipsName;
38+
39+
private final String vipsNickname;
40+
41+
private final int rawValue;
42+
43+
VipsSdfShape(String vipsName, String vipsNickname, int rawValue) {
44+
this.vipsName = vipsName;
45+
this.vipsNickname = vipsNickname;
46+
this.rawValue = rawValue;
47+
}
48+
49+
@Override
50+
public String getName() {
51+
return this.vipsName;
52+
}
53+
54+
@Override
55+
public String getNickname() {
56+
return this.vipsNickname;
57+
}
58+
59+
@Override
60+
public int getRawValue() {
61+
return this.rawValue;
62+
}
63+
}

0 commit comments

Comments
 (0)