mirror of
https://github.com/rzeldent/esp32cam-rtsp.git
synced 2025-11-14 12:08:02 +00:00
Work in progress
This commit is contained in:
19
lib/micro-rtsp-server/include/micro_rtsp_jpeg.h
Normal file
19
lib/micro-rtsp-server/include/micro_rtsp_jpeg.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <tuple>
|
||||
|
||||
class micro_rtsp_jpeg
|
||||
{
|
||||
public:
|
||||
micro_rtsp_jpeg(const uint8_t *jpeg, size_t size);
|
||||
|
||||
protected:
|
||||
bool decode_jpeg(uint8_t *jpg, size_t size);
|
||||
std::tuple<const uint8_t *, size_t> find_jpeg_section(uint8_t **ptr, uint8_t *end, uint8_t flag);
|
||||
|
||||
std::tuple<const uint8_t *, size_t> quantization_table_0_;
|
||||
std::tuple<const uint8_t *, size_t> quantization_table_1_;
|
||||
std::tuple<const uint8_t *, size_t> jpeg_data_;
|
||||
};
|
||||
Reference in New Issue
Block a user