JFLib

img_core#

image I/O dispatch, records, metadata, colour, resampling, image operations -- crate root lib/img_core/lib.rs

img_core -- the shared part of the image codecs: records of img.inc (decode options,
metadata, encode options, codec descriptor, format table), error codes, and the modules
every codec builds on                                              [ASMLIB/inc/img.inc]

  ImgDec        decode options (IMGDEC): flags IMGD_*, frame, hint, pixel budget, cancel
  ImgMeta       decoded metadata (IMGMETA); to_bytes() = the 128-byte record of the
                assembly with the blob pointers zeroed (codectest op 261 compares it),
                incl. IM_CHRM (PNG cHRM) and the DDS fields IM_DXGI / IM_TEXFL / IM_TEXN
  ImgOpt        encode options (IMGOPT); from_bytes() reads the 64-byte record
  Codec         a codec descriptor (IMGCODEC): probe / decode / encode, caps, iom; and
                for the core formats the functions the assembly calls directly: scan
                (png_meta / jpeg_meta / ...), decode_fl (png_decode_fl / ...: the classic
                decoders of img_decode and BMP's embedded PNG / JPEG), save (png_encode /
                jpeg_encode / ...: the classic encoders of img_save); Codec::EMPTY for
                struct update syntax
  FmtInfo       a format table entry (IMGFMT)

Modules (owners during the R6 wave, see rewrite/AGENTS.md):
  checksum, inflate, deflate, gzip, meta (imgmeta.s), exif, icc, io (imgio.s, imgreg.s,
  imgcore.s glue), bits (the bit readers of img_int.inc)  -- R6-core
  yuv                                                     -- R6-jpeg
  quantize                                                -- R6-bgt (bmp / gif / tga)
  resample, xform, mip, ops (imgops.s)                    -- R6-xf
  icc_xform (+ icc_eval, icc_bi: icc_xform.s, icc.inc)    -- R6-icc
  icc_cms (every device space, f64 and grids; on icc_eval) -- U22

Decoded images are gfx::Surface values (FMT_PARGB, or FMT_ARGB with IMGD_STRAIGHT).

Sections

Source: docs/API.md in the JFLib repository.