Skip to content

Commit

Permalink
add JNI hints for embed images
Browse files Browse the repository at this point in the history
  • Loading branch information
danthe1st committed Nov 14, 2024
1 parent 2d7a99f commit 44f5795
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine
FROM alpine:latest
RUN apk add --no-cache libsm libxrender libxext libxtst libxi gcompat ttf-dejavu

COPY build/native/nativeCompile /work
Expand Down
16 changes: 16 additions & 0 deletions graal/jni-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
{
"name":"[Lsun.java2d.loops.GraphicsPrimitive;"
},
{
"name":"com.sun.imageio.plugins.jpeg.JPEGImageReader",
"methods":[{"name":"acceptPixels","parameterTypes":["int","boolean"] }, {"name":"passComplete","parameterTypes":[] }, {"name":"passStarted","parameterTypes":["int"] }, {"name":"pushBack","parameterTypes":["int"] }, {"name":"readInputData","parameterTypes":["byte[]","int","int"] }, {"name":"setImageData","parameterTypes":["int","int","int","int","int","byte[]"] }, {"name":"skipInputBytes","parameterTypes":["long"] }, {"name":"skipPastImage","parameterTypes":["int"] }, {"name":"warningOccurred","parameterTypes":["int"] }, {"name":"warningWithMessage","parameterTypes":["java.lang.String"] }]
},
{
"name":"java.awt.AlphaComposite",
"fields":[{"name":"extraAlpha"}, {"name":"rule"}]
Expand Down Expand Up @@ -82,6 +86,18 @@
"name":"sun.awt.SunHints",
"fields":[{"name":"INTVAL_STROKE_PURE"}]
},
{
"name":"javax.imageio.plugins.jpeg.JPEGHuffmanTable",
"fields":[{"name":"lengths"}, {"name":"values"}]
},
{
"name":"javax.imageio.plugins.jpeg.JPEGQTable",
"fields":[{"name":"qTable"}]
},
{
"name":"sun.awt.image.ByteComponentRaster",
"fields":[{"name":"data"}, {"name":"dataOffsets"}, {"name":"pixelStride"}, {"name":"scanlineStride"}, {"name":"type"}]
},
{
"name":"sun.awt.image.BufImgSurfaceData$ICMColorData",
"fields":[{"name":"pData"}],
Expand Down

0 comments on commit 44f5795

Please sign in to comment.