SatDump 2.0.0-alpha-520736c72
Loading...
Searching...
No Matches
jpeg12_utils.h File Reference

Utilities specific to 12-bit JPEG manipulation (from memory) More...

#include "image.h"
#include <cstdint>

Go to the source code of this file.

Functions

Image satdump::image::decompress_jpeg12 (uint8_t *data, int length, bool ignore_errors=false)
 Decompress 12-bit JPEG Data from memory.

Detailed Description

Utilities specific to 12-bit JPEG manipulation (from memory)

Function Documentation

◆ decompress_jpeg12()

Image satdump::image::decompress_jpeg12 ( uint8_t * data,
int length,
bool ignore_errors = false )

Decompress 12-bit JPEG Data from memory.

Parameters
datainput buffer
lengthbuffer size
ignore_errorsif true, ignore some errors (needed for a few satellites sending slightly malformed but still valid JPEGs)
Returns
the image