Class SPNG

java.lang.Object
org.lwjgl.util.spng.SPNG

public class SPNG extends Object
  • Field Details

  • Method Details

    • spng_ctx_new

      public static long spng_ctx_new(int flags)
      spng_ctx * spng_ctx_new(int flags)
    • nspng_ctx_new2

      public static long nspng_ctx_new2(long alloc, int flags)
      spng_ctx * spng_ctx_new2(struct spng_alloc * alloc, int flags)
    • spng_ctx_new2

      public static long spng_ctx_new2(spng_alloc alloc, int flags)
      spng_ctx * spng_ctx_new2(struct spng_alloc * alloc, int flags)
    • nspng_ctx_free

      public static void nspng_ctx_free(long ctx)
      void spng_ctx_free(spng_ctx * ctx)
    • spng_ctx_free

      public static void spng_ctx_free(long ctx)
      void spng_ctx_free(spng_ctx * ctx)
    • nspng_set_png_buffer

      public static int nspng_set_png_buffer(long ctx, long buf, long size)
      int spng_set_png_buffer(spng_ctx * ctx, void const * buf, size_t size)
    • spng_set_png_buffer

      public static int spng_set_png_buffer(long ctx, ByteBuffer buf)
      int spng_set_png_buffer(spng_ctx * ctx, void const * buf, size_t size)
    • nspng_set_png_stream

      public static int nspng_set_png_stream(long ctx, long rw_func, long user)
      int spng_set_png_stream(spng_ctx * ctx, spng_rw_fn * rw_func, void * user)
    • spng_set_png_stream

      public static int spng_set_png_stream(long ctx, spng_rw_fnI rw_func, long user)
      int spng_set_png_stream(spng_ctx * ctx, spng_rw_fn * rw_func, void * user)
    • nspng_get_png_buffer

      public static long nspng_get_png_buffer(long ctx, long len, long error)
      void * spng_get_png_buffer(spng_ctx * ctx, size_t * len, int * error)
    • spng_get_png_buffer

      public static @Nullable ByteBuffer spng_get_png_buffer(long ctx, IntBuffer error)
      void * spng_get_png_buffer(spng_ctx * ctx, size_t * len, int * error)
    • nspng_set_image_limits

      public static int nspng_set_image_limits(long ctx, int width, int height)
      int spng_set_image_limits(spng_ctx * ctx, uint32_t width, uint32_t height)
    • spng_set_image_limits

      public static int spng_set_image_limits(long ctx, int width, int height)
      int spng_set_image_limits(spng_ctx * ctx, uint32_t width, uint32_t height)
    • nspng_get_image_limits

      public static int nspng_get_image_limits(long ctx, long width, long height)
      int spng_get_image_limits(spng_ctx * ctx, uint32_t * width, uint32_t * height)
    • spng_get_image_limits

      public static int spng_get_image_limits(long ctx, IntBuffer width, IntBuffer height)
      int spng_get_image_limits(spng_ctx * ctx, uint32_t * width, uint32_t * height)
    • nspng_set_chunk_limits

      public static int nspng_set_chunk_limits(long ctx, long chunk_size, long cache_size)
      int spng_set_chunk_limits(spng_ctx * ctx, size_t chunk_size, size_t cache_size)
    • spng_set_chunk_limits

      public static int spng_set_chunk_limits(long ctx, long chunk_size, long cache_size)
      int spng_set_chunk_limits(spng_ctx * ctx, size_t chunk_size, size_t cache_size)
    • nspng_get_chunk_limits

      public static int nspng_get_chunk_limits(long ctx, long chunk_size, long cache_size)
      int spng_get_chunk_limits(spng_ctx * ctx, size_t * chunk_size, size_t * cache_size)
    • spng_get_chunk_limits

      public static int spng_get_chunk_limits(long ctx, PointerBuffer chunk_size, PointerBuffer cache_size)
      int spng_get_chunk_limits(spng_ctx * ctx, size_t * chunk_size, size_t * cache_size)
    • nspng_set_crc_action

      public static int nspng_set_crc_action(long ctx, int critical, int ancillary)
      int spng_set_crc_action(spng_ctx * ctx, int critical, int ancillary)
    • spng_set_crc_action

      public static int spng_set_crc_action(long ctx, int critical, int ancillary)
      int spng_set_crc_action(spng_ctx * ctx, int critical, int ancillary)
    • nspng_set_option

      public static int nspng_set_option(long ctx, int option, int value)
      int spng_set_option(spng_ctx * ctx, enum spng_option option, int value)
    • spng_set_option

      public static int spng_set_option(long ctx, int option, int value)
      int spng_set_option(spng_ctx * ctx, enum spng_option option, int value)
    • nspng_get_option

      public static int nspng_get_option(long ctx, int option, long value)
      int spng_get_option(spng_ctx * ctx, enum spng_option option, int * value)
    • spng_get_option

      public static int spng_get_option(long ctx, int option, IntBuffer value)
      int spng_get_option(spng_ctx * ctx, enum spng_option option, int * value)
    • nspng_decoded_image_size

      public static int nspng_decoded_image_size(long ctx, int fmt, long len)
      int spng_decoded_image_size(spng_ctx * ctx, int fmt, size_t * len)
    • spng_decoded_image_size

      public static int spng_decoded_image_size(long ctx, int fmt, PointerBuffer len)
      int spng_decoded_image_size(spng_ctx * ctx, int fmt, size_t * len)
    • nspng_decode_image

      public static int nspng_decode_image(long ctx, long out, long len, int fmt, int flags)
      int spng_decode_image(spng_ctx * ctx, void * out, size_t len, int fmt, int flags)
    • spng_decode_image

      public static int spng_decode_image(long ctx, ByteBuffer out, int fmt, int flags)
      int spng_decode_image(spng_ctx * ctx, void * out, size_t len, int fmt, int flags)
    • nspng_decode_scanline

      public static int nspng_decode_scanline(long ctx, long out, long len)
      int spng_decode_scanline(spng_ctx * ctx, void * out, size_t len)
    • spng_decode_scanline

      public static int spng_decode_scanline(long ctx, ByteBuffer out)
      int spng_decode_scanline(spng_ctx * ctx, void * out, size_t len)
    • nspng_decode_row

      public static int nspng_decode_row(long ctx, long out, long len)
      int spng_decode_row(spng_ctx * ctx, void * out, size_t len)
    • spng_decode_row

      public static int spng_decode_row(long ctx, ByteBuffer out)
      int spng_decode_row(spng_ctx * ctx, void * out, size_t len)
    • nspng_decode_chunks

      public static int nspng_decode_chunks(long ctx)
      int spng_decode_chunks(spng_ctx * ctx)
    • spng_decode_chunks

      public static int spng_decode_chunks(long ctx)
      int spng_decode_chunks(spng_ctx * ctx)
    • nspng_get_row_info

      public static int nspng_get_row_info(long ctx, long row_info)
      int spng_get_row_info(spng_ctx * ctx, struct spng_row_info * row_info)
    • spng_get_row_info

      public static int spng_get_row_info(long ctx, spng_row_info row_info)
      int spng_get_row_info(spng_ctx * ctx, struct spng_row_info * row_info)
    • nspng_encode_image

      public static int nspng_encode_image(long ctx, long img, long len, int fmt, int flags)
      int spng_encode_image(spng_ctx * ctx, void const * img, size_t len, int fmt, int flags)
    • spng_encode_image

      public static int spng_encode_image(long ctx, ByteBuffer img, int fmt, int flags)
      int spng_encode_image(spng_ctx * ctx, void const * img, size_t len, int fmt, int flags)
    • nspng_encode_scanline

      public static int nspng_encode_scanline(long ctx, long scanline, long len)
      int spng_encode_scanline(spng_ctx * ctx, void const * scanline, size_t len)
    • spng_encode_scanline

      public static int spng_encode_scanline(long ctx, ByteBuffer scanline)
      int spng_encode_scanline(spng_ctx * ctx, void const * scanline, size_t len)
    • nspng_encode_row

      public static int nspng_encode_row(long ctx, long row, long len)
      int spng_encode_row(spng_ctx * ctx, void const * row, size_t len)
    • spng_encode_row

      public static int spng_encode_row(long ctx, ByteBuffer row)
      int spng_encode_row(spng_ctx * ctx, void const * row, size_t len)
    • nspng_encode_chunks

      public static int nspng_encode_chunks(long ctx)
      int spng_encode_chunks(spng_ctx * ctx)
    • spng_encode_chunks

      public static int spng_encode_chunks(long ctx)
      int spng_encode_chunks(spng_ctx * ctx)
    • nspng_get_ihdr

      public static int nspng_get_ihdr(long ctx, long ihdr)
      int spng_get_ihdr(spng_ctx * ctx, struct spng_ihdr * ihdr)
    • spng_get_ihdr

      public static int spng_get_ihdr(long ctx, spng_ihdr ihdr)
      int spng_get_ihdr(spng_ctx * ctx, struct spng_ihdr * ihdr)
    • nspng_get_plte

      public static int nspng_get_plte(long ctx, long plte)
      int spng_get_plte(spng_ctx * ctx, struct spng_plte * plte)
    • spng_get_plte

      public static int spng_get_plte(long ctx, spng_plte plte)
      int spng_get_plte(spng_ctx * ctx, struct spng_plte * plte)
    • nspng_get_trns

      public static int nspng_get_trns(long ctx, long trns)
      int spng_get_trns(spng_ctx * ctx, struct spng_trns * trns)
    • spng_get_trns

      public static int spng_get_trns(long ctx, spng_trns trns)
      int spng_get_trns(spng_ctx * ctx, struct spng_trns * trns)
    • nspng_get_chrm

      public static int nspng_get_chrm(long ctx, long chrm)
      int spng_get_chrm(spng_ctx * ctx, struct spng_chrm * chrm)
    • spng_get_chrm

      public static int spng_get_chrm(long ctx, spng_chrm chrm)
      int spng_get_chrm(spng_ctx * ctx, struct spng_chrm * chrm)
    • nspng_get_chrm_int

      public static int nspng_get_chrm_int(long ctx, long chrm_int)
      int spng_get_chrm_int(spng_ctx * ctx, struct spng_chrm_int * chrm_int)
    • spng_get_chrm_int

      public static int spng_get_chrm_int(long ctx, spng_chrm_int chrm_int)
      int spng_get_chrm_int(spng_ctx * ctx, struct spng_chrm_int * chrm_int)
    • nspng_get_gama

      public static int nspng_get_gama(long ctx, long gamma)
      int spng_get_gama(spng_ctx * ctx, double * gamma)
    • spng_get_gama

      public static int spng_get_gama(long ctx, DoubleBuffer gamma)
      int spng_get_gama(spng_ctx * ctx, double * gamma)
    • nspng_get_gama_int

      public static int nspng_get_gama_int(long ctx, long gama_int)
      int spng_get_gama_int(spng_ctx * ctx, uint32_t * gama_int)
    • spng_get_gama_int

      public static int spng_get_gama_int(long ctx, IntBuffer gama_int)
      int spng_get_gama_int(spng_ctx * ctx, uint32_t * gama_int)
    • nspng_get_iccp

      public static int nspng_get_iccp(long ctx, long iccp)
      int spng_get_iccp(spng_ctx * ctx, struct spng_iccp * iccp)
    • spng_get_iccp

      public static int spng_get_iccp(long ctx, spng_iccp iccp)
      int spng_get_iccp(spng_ctx * ctx, struct spng_iccp * iccp)
    • nspng_get_sbit

      public static int nspng_get_sbit(long ctx, long sbit)
      int spng_get_sbit(spng_ctx * ctx, struct spng_sbit * sbit)
    • spng_get_sbit

      public static int spng_get_sbit(long ctx, spng_sbit sbit)
      int spng_get_sbit(spng_ctx * ctx, struct spng_sbit * sbit)
    • nspng_get_srgb

      public static int nspng_get_srgb(long ctx, long rendering_intent)
      int spng_get_srgb(spng_ctx * ctx, uint8_t * rendering_intent)
    • spng_get_srgb

      public static int spng_get_srgb(long ctx, ByteBuffer rendering_intent)
      int spng_get_srgb(spng_ctx * ctx, uint8_t * rendering_intent)
    • nspng_get_text

      public static int nspng_get_text(long ctx, long text, long n_text)
      int spng_get_text(spng_ctx * ctx, struct spng_text * text, uint32_t * n_text)
    • spng_get_text

      public static int spng_get_text(long ctx, spng_text text, IntBuffer n_text)
      int spng_get_text(spng_ctx * ctx, struct spng_text * text, uint32_t * n_text)
    • nspng_get_bkgd

      public static int nspng_get_bkgd(long ctx, long bkgd)
      int spng_get_bkgd(spng_ctx * ctx, struct spng_bkgd * bkgd)
    • spng_get_bkgd

      public static int spng_get_bkgd(long ctx, spng_bkgd bkgd)
      int spng_get_bkgd(spng_ctx * ctx, struct spng_bkgd * bkgd)
    • nspng_get_hist

      public static int nspng_get_hist(long ctx, long hist)
      int spng_get_hist(spng_ctx * ctx, struct spng_hist * hist)
    • spng_get_hist

      public static int spng_get_hist(long ctx, spng_hist hist)
      int spng_get_hist(spng_ctx * ctx, struct spng_hist * hist)
    • nspng_get_phys

      public static int nspng_get_phys(long ctx, long phys)
      int spng_get_phys(spng_ctx * ctx, struct spng_phys * phys)
    • spng_get_phys

      public static int spng_get_phys(long ctx, spng_phys phys)
      int spng_get_phys(spng_ctx * ctx, struct spng_phys * phys)
    • nspng_get_splt

      public static int nspng_get_splt(long ctx, long splt, long n_splt)
      int spng_get_splt(spng_ctx * ctx, struct spng_splt * splt, uint32_t * n_splt)
    • spng_get_splt

      public static int spng_get_splt(long ctx, spng_splt splt, IntBuffer n_splt)
      int spng_get_splt(spng_ctx * ctx, struct spng_splt * splt, uint32_t * n_splt)
    • nspng_get_time

      public static int nspng_get_time(long ctx, long time)
      int spng_get_time(spng_ctx * ctx, struct spng_time * time)
    • spng_get_time

      public static int spng_get_time(long ctx, spng_time time)
      int spng_get_time(spng_ctx * ctx, struct spng_time * time)
    • nspng_get_unknown_chunks

      public static int nspng_get_unknown_chunks(long ctx, long chunks, long n_chunks)
      int spng_get_unknown_chunks(spng_ctx * ctx, struct spng_unknown_chunk * chunks, uint32_t * n_chunks)
    • spng_get_unknown_chunks

      public static int spng_get_unknown_chunks(long ctx, spng_unknown_chunk chunks, IntBuffer n_chunks)
      int spng_get_unknown_chunks(spng_ctx * ctx, struct spng_unknown_chunk * chunks, uint32_t * n_chunks)
    • nspng_get_offs

      public static int nspng_get_offs(long ctx, long offs)
      int spng_get_offs(spng_ctx * ctx, struct spng_offs * offs)
    • spng_get_offs

      public static int spng_get_offs(long ctx, spng_offs offs)
      int spng_get_offs(spng_ctx * ctx, struct spng_offs * offs)
    • nspng_get_exif

      public static int nspng_get_exif(long ctx, long exif)
      int spng_get_exif(spng_ctx * ctx, struct spng_exif * exif)
    • spng_get_exif

      public static int spng_get_exif(long ctx, spng_exif exif)
      int spng_get_exif(spng_ctx * ctx, struct spng_exif * exif)
    • nspng_set_ihdr

      public static int nspng_set_ihdr(long ctx, long ihdr)
      int spng_set_ihdr(spng_ctx * ctx, struct spng_ihdr * ihdr)
    • spng_set_ihdr

      public static int spng_set_ihdr(long ctx, spng_ihdr ihdr)
      int spng_set_ihdr(spng_ctx * ctx, struct spng_ihdr * ihdr)
    • nspng_set_plte

      public static int nspng_set_plte(long ctx, long plte)
      int spng_set_plte(spng_ctx * ctx, struct spng_plte * plte)
    • spng_set_plte

      public static int spng_set_plte(long ctx, spng_plte plte)
      int spng_set_plte(spng_ctx * ctx, struct spng_plte * plte)
    • nspng_set_trns

      public static int nspng_set_trns(long ctx, long trns)
      int spng_set_trns(spng_ctx * ctx, struct spng_trns * trns)
    • spng_set_trns

      public static int spng_set_trns(long ctx, spng_trns trns)
      int spng_set_trns(spng_ctx * ctx, struct spng_trns * trns)
    • nspng_set_chrm

      public static int nspng_set_chrm(long ctx, long chrm)
      int spng_set_chrm(spng_ctx * ctx, struct spng_chrm * chrm)
    • spng_set_chrm

      public static int spng_set_chrm(long ctx, spng_chrm chrm)
      int spng_set_chrm(spng_ctx * ctx, struct spng_chrm * chrm)
    • nspng_set_chrm_int

      public static int nspng_set_chrm_int(long ctx, long chrm_int)
      int spng_set_chrm_int(spng_ctx * ctx, struct spng_chrm_int * chrm_int)
    • spng_set_chrm_int

      public static int spng_set_chrm_int(long ctx, spng_chrm_int chrm_int)
      int spng_set_chrm_int(spng_ctx * ctx, struct spng_chrm_int * chrm_int)
    • nspng_set_gama

      public static int nspng_set_gama(long ctx, double gamma)
      int spng_set_gama(spng_ctx * ctx, double gamma)
    • spng_set_gama

      public static int spng_set_gama(long ctx, double gamma)
      int spng_set_gama(spng_ctx * ctx, double gamma)
    • nspng_set_gama_int

      public static int nspng_set_gama_int(long ctx, int gamma)
      int spng_set_gama_int(spng_ctx * ctx, uint32_t gamma)
    • spng_set_gama_int

      public static int spng_set_gama_int(long ctx, int gamma)
      int spng_set_gama_int(spng_ctx * ctx, uint32_t gamma)
    • nspng_set_iccp

      public static int nspng_set_iccp(long ctx, long iccp)
      int spng_set_iccp(spng_ctx * ctx, struct spng_iccp * iccp)
    • spng_set_iccp

      public static int spng_set_iccp(long ctx, spng_iccp iccp)
      int spng_set_iccp(spng_ctx * ctx, struct spng_iccp * iccp)
    • nspng_set_sbit

      public static int nspng_set_sbit(long ctx, long sbit)
      int spng_set_sbit(spng_ctx * ctx, struct spng_sbit * sbit)
    • spng_set_sbit

      public static int spng_set_sbit(long ctx, spng_sbit sbit)
      int spng_set_sbit(spng_ctx * ctx, struct spng_sbit * sbit)
    • nspng_set_srgb

      public static int nspng_set_srgb(long ctx, byte rendering_intent)
      int spng_set_srgb(spng_ctx * ctx, uint8_t rendering_intent)
    • spng_set_srgb

      public static int spng_set_srgb(long ctx, byte rendering_intent)
      int spng_set_srgb(spng_ctx * ctx, uint8_t rendering_intent)
    • nspng_set_text

      public static int nspng_set_text(long ctx, long text, int n_text)
      int spng_set_text(spng_ctx * ctx, struct spng_text * text, uint32_t n_text)
    • spng_set_text

      public static int spng_set_text(long ctx, spng_text text, int n_text)
      int spng_set_text(spng_ctx * ctx, struct spng_text * text, uint32_t n_text)
    • nspng_set_bkgd

      public static int nspng_set_bkgd(long ctx, long bkgd)
      int spng_set_bkgd(spng_ctx * ctx, struct spng_bkgd * bkgd)
    • spng_set_bkgd

      public static int spng_set_bkgd(long ctx, spng_bkgd bkgd)
      int spng_set_bkgd(spng_ctx * ctx, struct spng_bkgd * bkgd)
    • nspng_set_hist

      public static int nspng_set_hist(long ctx, long hist)
      int spng_set_hist(spng_ctx * ctx, struct spng_hist * hist)
    • spng_set_hist

      public static int spng_set_hist(long ctx, spng_hist hist)
      int spng_set_hist(spng_ctx * ctx, struct spng_hist * hist)
    • nspng_set_phys

      public static int nspng_set_phys(long ctx, long phys)
      int spng_set_phys(spng_ctx * ctx, struct spng_phys * phys)
    • spng_set_phys

      public static int spng_set_phys(long ctx, spng_phys phys)
      int spng_set_phys(spng_ctx * ctx, struct spng_phys * phys)
    • nspng_set_splt

      public static int nspng_set_splt(long ctx, long splt, int n_splt)
      int spng_set_splt(spng_ctx * ctx, struct spng_splt * splt, uint32_t n_splt)
    • spng_set_splt

      public static int spng_set_splt(long ctx, spng_splt splt, int n_splt)
      int spng_set_splt(spng_ctx * ctx, struct spng_splt * splt, uint32_t n_splt)
    • nspng_set_time

      public static int nspng_set_time(long ctx, long time)
      int spng_set_time(spng_ctx * ctx, struct spng_time * time)
    • spng_set_time

      public static int spng_set_time(long ctx, spng_time time)
      int spng_set_time(spng_ctx * ctx, struct spng_time * time)
    • nspng_set_unknown_chunks

      public static int nspng_set_unknown_chunks(long ctx, long chunks, int n_chunks)
      int spng_set_unknown_chunks(spng_ctx * ctx, struct spng_unknown_chunk * chunks, uint32_t n_chunks)
    • spng_set_unknown_chunks

      public static int spng_set_unknown_chunks(long ctx, spng_unknown_chunk.Buffer chunks)
      int spng_set_unknown_chunks(spng_ctx * ctx, struct spng_unknown_chunk * chunks, uint32_t n_chunks)
    • nspng_set_offs

      public static int nspng_set_offs(long ctx, long offs)
      int spng_set_offs(spng_ctx * ctx, struct spng_offs * offs)
    • spng_set_offs

      public static int spng_set_offs(long ctx, spng_offs offs)
      int spng_set_offs(spng_ctx * ctx, struct spng_offs * offs)
    • nspng_set_exif

      public static int nspng_set_exif(long ctx, long exif)
      int spng_set_exif(spng_ctx * ctx, struct spng_exif * exif)
    • spng_set_exif

      public static int spng_set_exif(long ctx, spng_exif exif)
      int spng_set_exif(spng_ctx * ctx, struct spng_exif * exif)
    • nspng_strerror

      public static long nspng_strerror(int err)
      char const * spng_strerror(int err)
    • spng_strerror

      public static @Nullable String spng_strerror(int err)
      char const * spng_strerror(int err)
    • nspng_version_string

      public static long nspng_version_string()
      char const * spng_version_string(void)
    • spng_version_string

      public static @Nullable String spng_version_string()
      char const * spng_version_string(void)