mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
23 lines
No EOL
529 B
C++
23 lines
No EOL
529 B
C++
#pragma once
|
|
|
|
/**
|
|
* @file j2k_utils.h
|
|
* @brief Utilities specific to JPEG2000 manipulation (from memory)
|
|
*/
|
|
|
|
#include "image/image.h"
|
|
#include <cstdint>
|
|
|
|
namespace satdump
|
|
{
|
|
namespace image
|
|
{
|
|
/**
|
|
* @brief Decompress J2K Data from memory with OpenJP2, returns a 16-bit image
|
|
* @param data input buffer
|
|
* @param length buffer size
|
|
* @return the image
|
|
*/
|
|
Image decompress_j2k_openjp2(uint8_t *data, int length);
|
|
} // namespace image
|
|
} // namespace satdump
|