nuttx/Documentation/applications/graphics/libjpeg/index.rst
Kevin Witteveen (MartiniMarter) 32a8caf66b documentation: JPEGResizeTool application and libjpeg
Signed-off-by: Kevin Witteveen (MartiniMarter) <kevinwit1999@gmail.com>
2025-10-26 09:44:46 -04:00

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``