This is the jpeg-turbo Reference Manual, version 1.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Tue Jul 15 05:26:27 2025 GMT+0.
The main system appears first, followed by any subsystem dependency.
jpeg-turbolibjpeg-turbo wrapper for Common Lisp
Vasily Postnicov <shamaz.mazum@gmail.com>
Vasily Postnicov <shamaz.mazum@gmail.com>
2-clause BSD
1.0
cffi-grovel (system).
cffi (system).
src/package.lisp (file).
src/grovel.lisp (file).
src/jpeg-turbo.lisp (file).
Files are sorted by type and then listed depth-first from the systems components trees.
jpeg-turbo/jpeg-turbo.asdjpeg-turbo/src/package.lispjpeg-turbo/src/grovel.lispjpeg-turbo/src/jpeg-turbo.lispjpeg-turbo/src/grovel.lispsrc/package.lisp (file).
jpeg-turbo (system).
jpeg-turbo/src/jpeg-turbo.lispsrc/grovel.lisp (file).
jpeg-turbo (system).
compress (function).
compress-to-octets (function).
decompress (function).
decompress-from-octets (function).
decompress-header (function).
decompress-header-from-octets (function).
jpeg-error (condition).
scaling-factors (function).
with-compressor (macro).
with-decompressor (macro).
*pixel-sizes* (special variable).
buf-size% (function).
destroy-handle% (function).
init-compress% (function).
init-decompress% (function).
jpeg-error-string (reader method).
last-error (function).
pixel-size (function).
scale (function).
scaling-factor-tclass (class).
Packages are listed by definition order.
jpeg-turbocffi.
common-lisp.
compress (function).
compress-to-octets (function).
decompress (function).
decompress-from-octets (function).
decompress-header (function).
decompress-header-from-octets (function).
jpeg-error (condition).
scaling-factors (function).
with-compressor (macro).
with-decompressor (macro).
*pixel-sizes* (special variable).
buf-size% (function).
destroy-handle% (function).
init-compress% (function).
init-decompress% (function).
jpeg-error-string (generic reader).
last-error (function).
pixel-size (function).
scale (function).
scaling-factor-tclass (class).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Execute the macro’s body in the lexical scope of created compressor handle @c(handle). The handle is safely freed after use.
Execute the macro’s body in the lexical scope of created decompressor handle @c(handle). The handle is safely freed after use.
Compress an image to jpeg format and write it to file with the name @c(filename). See @c(compress-to-octets) for more info.
Compress an image to jpeg format. @c(handle) is a compressor handle
created with @c(with-compressor). @c(array) is a simple array of
@c((unsigned-byte 8)) values containing pixel data. Values of
@c(pixel-format) described in section @ref[id=pf](pixel
formats). @c(quality) is an integer from 1 to 100. Higher values mean
better quality. @c(subsamp) is described in
@ref[id=subsamp](subsampling) section and @c(flags) in
@ref[id=flags](flags) section.
Decompress an image directly from file with the name @c(filename). See @c(decompress-from-octets) for more info
Decompress a jpeg image. @c(handle) is a decompressor handle created with @c(with-decompressor). @c(array) is a simple array of @c((unsigned-byte 8)) values containing a compressed image. If @c(pixel-format) is specified, @c(libjpeg-turbo) converts output pixel format to a specified value. For the values of @c(pixel-format) see the section @ref[id=pf](pixel formats). For more information about @c(flags) see the section @ref[id=flags](flags). If @c(scaling-factor) is specified @c(librurbo-jpeg) will scale the output image to this scaling factor. Possible values are returned by @c(scaling-factors).
Return a decompressed image as a simple-array of @c((unsigned-byte 8)) value in the same manner as @c(cl-jpeg) does.
This is function is like @c(decompress-header-from-octets) but reads compressed image directly from file with the name @c(filename).
Decompress header of an image. @c(handle) must be a handle to
decompressor created with @c(with-decompressor). @c(array) must be a
simple array of @c((unsigned-byte 8)) values containing compressed
jpeg image. Function returns four values:
@begin(enum)
@item(Width of an image.)
@item(Height of an image.)
@item(Chroma subsampling. See @ref[id=subsamp](subsampling) section.)
@item(Colorspace. See @ref[id=cs](colorspaces) section.)
@end(enum)
Return scaling factors supported by @c(libjpeg-turbo)
Size of a pixel in bytes for each pixel format
Initialize jpeg compressor returning a handle to it. The handle must be freed with @c(destroy-handle%) after use. Use @c(with-compressor) macro instead of this function.
Initialize decompressor handle or signal an error. The handle must be destroyed after use with @c(destroy-handle%). It’s preferred to use @c(with-decompressor) macro which safely destroys the handle in the case of an error instead of this function.
jpeg-error)) ¶foreign-struct-type.
translatable-foreign-type.
| Jump to: | B C D F G I J L M P S W |
|---|
| Jump to: | B C D F G I J L M P S W |
|---|
| Jump to: | *
E S |
|---|
| Index Entry | Section | ||
|---|---|---|---|
| | |||
| * | |||
*pixel-sizes*: | Private special variables | ||
| | |||
| E | |||
error-string: | Public conditions | ||
| | |||
| S | |||
Slot, error-string: | Public conditions | ||
Special Variable, *pixel-sizes*: | Private special variables | ||
| | |||
| Jump to: | *
E S |
|---|
| Jump to: | C F J P S |
|---|
| Jump to: | C F J P S |
|---|