usefulness / webp-imageio

Java ImageIO WebP support (includes ARM chips support)
Apache License 2.0
35 stars 5 forks source link

Reduce public api surface, auto-generage JNI headers #100

Closed mateuszkwiecinski closed 1 year ago

github-actions[bot] commented 1 year ago

Jar size:

Jar size change: +557.0B (3.0MiB -> 3.0MiB)

Diffuse output:

OLD: diffuse-source-file
NEW: pull-request-artifact.jar

       │          compressed          │         uncompressed         
       ├──────────┬──────────┬────────┼──────────┬──────────┬────────
 JAR   │ old      │ new      │ diff   │ old      │ new      │ diff   
───────┼──────────┼──────────┼────────┼──────────┼──────────┼────────
 class │ 31.9 KiB │ 32.4 KiB │ +557 B │ 67.1 KiB │ 67.7 KiB │ +647 B 
 other │    3 MiB │    3 MiB │    0 B │  6.4 MiB │  6.4 MiB │    0 B 
───────┼──────────┼──────────┼────────┼──────────┼──────────┼────────
 total │    3 MiB │    3 MiB │ +557 B │  6.5 MiB │  6.5 MiB │ +647 B 

 CLASSES │ old │ new │ diff        
─────────┼─────┼─────┼─────────────
 classes │  15 │  16 │ +1 (+2 -1)  
 methods │ 518 │ 521 │ +3 (+12 -9) 
  fields │  47 │  47 │  0 (+2 -2)
JAR ``` compressed │ uncompressed │ ──────────┬──────────┼──────────┬──────────┤ size │ diff │ size │ diff │ path ──────────┼──────────┼──────────┼──────────┼──────────────────────────────────────────────────── 1.7 KiB │ +1.7 KiB │ 3.1 KiB │ +3.1 KiB │ + com/luciad/imageio/webp/WebPWrapper.class 428 B │ -1.3 KiB │ 401 B │ -2.7 KiB │ ∆ com/luciad/imageio/webp/WebP.class 641 B │ +641 B │ 772 B │ +772 B │ + com/luciad/imageio/webp/WebPWrapper_1.class │ -622 B │ │ -751 B │ - com/luciad/imageio/webp/WebP_1.class 2.9 KiB │ +70 B │ 8 KiB │ +128 B │ ∆ com/luciad/imageio/webp/WebPWriteParam.class 1.4 KiB │ +68 B │ 3.9 KiB │ +128 B │ ∆ com/luciad/imageio/webp/WebPReadParam.class 1.6 KiB │ -11 B │ 4 KiB │ -7 B │ ∆ com/luciad/imageio/webp/WebPDecoderOptions.class 2.5 KiB │ -9 B │ 7.4 KiB │ -7 B │ ∆ com/luciad/imageio/webp/WebPEncoderOptions.class 5.3 KiB │ +4 B │ 11.9 KiB │ +7 B │ ∆ com/luciad/imageio/webp/WebPWriter.class 3.5 KiB │ -4 B │ 6.1 KiB │ 0 B │ ∆ com/luciad/imageio/webp/internal/OSInfo.class 2.8 KiB │ -1 B │ 5.3 KiB │ -33 B │ ∆ com/luciad/imageio/webp/WebPReader.class 1.1 KiB │ -1 B │ 1.8 KiB │ 0 B │ ∆ com/luciad/imageio/webp/VP8StatusCode.class ──────────┼──────────┼──────────┼──────────┼──────────────────────────────────────────────────── 23.7 KiB │ +557 B │ 52.5 KiB │ +647 B │ (total) ```
CLASSES ``` CLASSES: old │ new │ diff ─────┼─────┼──────────── 15 │ 16 │ +1 (+2 -1) + com.luciad.imageio.webp.WebPWrapper + com.luciad.imageio.webp.WebPWrapper_1 - com.luciad.imageio.webp.WebP_1 METHODS: old │ new │ diff ─────┼─────┼───────────── 518 │ 521 │ +3 (+12 -9) + com.luciad.imageio.webp.WebPDecoderOptions close() + com.luciad.imageio.webp.WebPEncoderOptions close() + com.luciad.imageio.webp.WebPReadParam () + com.luciad.imageio.webp.WebPWrapper () + com.luciad.imageio.webp.WebPWrapper () + com.luciad.imageio.webp.WebPWrapper decode(WebPDecoderOptions, byte[], int, int, int[]) → int[] + com.luciad.imageio.webp.WebPWrapper encodeRGB(WebPEncoderOptions, byte[], int, int, int) → byte[] + com.luciad.imageio.webp.WebPWrapper encodeRGBA(WebPEncoderOptions, byte[], int, int, int) → byte[] + com.luciad.imageio.webp.WebPWrapper getInfo(byte[], int, int) → int[] + com.luciad.imageio.webp.WebPWrapper loadNativeLibrary() + com.luciad.imageio.webp.WebPWrapper_1 () + com.luciad.imageio.webp.WebPWriteParam () - com.luciad.imageio.webp.WebP () - com.luciad.imageio.webp.WebP decode(WebPDecoderOptions, byte[], int, int, int[]) → int[] - com.luciad.imageio.webp.WebP encodeRGB(WebPEncoderOptions, byte[], int, int, int) → byte[] - com.luciad.imageio.webp.WebP encodeRGBA(WebPEncoderOptions, byte[], int, int, int) → byte[] - com.luciad.imageio.webp.WebP getInfo(byte[], int, int) → int[] - com.luciad.imageio.webp.WebP loadNativeLibrary() - com.luciad.imageio.webp.WebP_1 () - com.luciad.imageio.webp.WebPDecoderOptions () - com.luciad.imageio.webp.WebPEncoderOptions () FIELDS: old │ new │ diff ─────┼─────┼─────────── 47 │ 47 │ 0 (+2 -2) + com.luciad.imageio.webp.WebPWrapper NATIVE_LIBRARY_LOADED: boolean + com.luciad.imageio.webp.WebPWrapper_1 _SwitchMap_com_luciad_imageio_webp_VP8StatusCode: int[] - com.luciad.imageio.webp.WebP NATIVE_LIBRARY_LOADED: boolean - com.luciad.imageio.webp.WebP_1 _SwitchMap_com_luciad_imageio_webp_VP8StatusCode: int[] ```