mirror of
https://github.com/apache/nuttx.git
synced 2026-08-23 14:38:25 +00:00
30 lines
804 B
ReStructuredText
30 lines
804 B
ReStructuredText
==========================================
|
|
``libjpeg`` JPEG image encoding library
|
|
==========================================
|
|
|
|
``libjpeg`` is an open-source library that provides functionality for encoding and decoding images in the JPEG format.
|
|
It implements the baseline JPEG standard and is commonly used in image-related applications and utilities.
|
|
|
|
Including the library
|
|
=====================
|
|
|
|
To use ``libjpeg`` in a C program, include the main header:
|
|
|
|
.. code-block:: c
|
|
|
|
#include <jpeglib.h>
|
|
|
|
Configuration
|
|
=============
|
|
|
|
Support for ``libjpeg`` must be enabled in Kconfig:
|
|
|
|
CONFIG_LIBJPEG=y
|
|
|
|
Example
|
|
=======
|
|
|
|
NuttX provides an example application that demonstrates how to encode, decode, and resize JPEG images using ``libjpeg``.
|
|
It can be found under:
|
|
|
|
``apps/graphics/jpgresizetool``
|