cl-jpeg

API Reference

cl-jpeg

A self-contained baseline JPEG codec implementation

JPEG

  • Condition JPEG-ERROR  (ERROR)
  • Condition JPEG-ENCODER-ERROR  (JPEG-ERROR)
  • Condition JPEG-DECODER-ERROR  (JPEG-ERROR)
  • Condition UNSUPPORTED-JPEG-FORMAT  (JPEG-DECODER-ERROR)
  • Condition UNRECOGNIZED-FILE-FORMAT  (JPEG-DECODER-ERROR)
  • Function ENCODE-IMAGE (filename image ncomp h w &rest args)
  • Function DESCRIPTOR-SOURCE-CACHE (instance)
  • Function (setf DESCRIPTOR-SOURCE-CACHE) (value instance)
  • Function READ-DHT (image)
    Loads huffman tables on specified destinations
  • Function CONVERT-CMYK-TO-RGB (buffer h w &key rgb-buffer)
  • Function ALLOCATE-BUFFER (height width ncomp)
  • Function DECODE-STREAM (stream &key buffer (colorspace-conversion t) descriptor cached-source-p)
    Return image array, height, width, number of components and APP14 Adobe transform. Does not support progressive DCT-based JPEGs.
  • Function DECODE-IMAGE (filename &key buffer (colorspace-conversion t) cached-source-p)
  • Function JPEG-FILE-DIMENSIONS (filename)
    Return image height, width and number of components, plus the type of Adobe colorpsace transform
  • Function JPEG-TO-BMP (&key infile outfile)