Work in progress

This commit is contained in:
Rene Zeldenthuis
2024-02-18 12:47:17 +01:00
parent 6119020e7d
commit 2eb7a58e1c
14 changed files with 585 additions and 158 deletions

View File

@@ -0,0 +1,18 @@
#include <stddef.h>
#include "jpg_section.h"
class jpg
{
public:
bool decode(const uint8_t *jpg, size_t size);
const struct jpg_section *quantization_table_0_;
const struct jpg_section *quantization_table_1_;
const uint8_t *jpeg_data_start;
const uint8_t *jpeg_data_end;
private:
static const jpg_section *find_jpg_section(const uint8_t **ptr, const uint8_t *end, jpg_section::jpg_section_flag flag);
};