/
DimaO87
/
jpegloader
Обзор
Документация
Войти
/
DimaO87
/
jpegloader
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/jpegcom.h
31 строка
829 B
Khruschev Dmitry aka DimaO
Fix BUG with Huffman decoding. Remove DEBUG_LOG sections. Add COM checkout
25 ноя 2025, 16:13
25 ноя 2025, 16:13
b2c3966
Код
Авторство
О чём код?
/** * \file * \brief COM extract module */ #ifndef JPEGCOM_H #define JPEGCOM_H #include <stdbool.h> #include <stddef.h> #include <stdint.h> typedef struct jpeg_context_tag jpeg_context_t; /** * \brief Extract COM * \param [in, out] context -- Previously initialized JPEG context * \param [in] stream -- Memory data stream * \param [in] stream_size -- Size of the whole stream * \param [in, out] pos -- Current position in the stream * \return Returns \c true if extraction was successful * * \note \c pos points to the byte after segment length. It will be moved * forward by ```segment_size```. * * \note COM segment will remains in the context. */ bool jpeg_com_extract (jpeg_context_t *context, const uint8_t *stream, size_t stream_size, size_t *pos); #endif // JPEGCOM_H