1 #pragma once 2 3 #include <csetjmp> 4 5 #ifdef __cplusplus 6 extern "C" { 7 #endif 8 9 #include <jpeglib.h> 10 11 extern GLOBAL(struct jpeg_error_mgr *) 12 my_jpeg_std_error (struct jpeg_error_mgr * err); 13 14 extern GLOBAL(void) 15 my_jpeg_stdio_src (j_decompress_ptr cinfo, FILE * infile); 16 17 GLOBAL(void) 18 jpeg_memory_src (j_decompress_ptr cinfo, const JOCTET * buffer, size_t bufsize); 19 20 /** 21 * @brief jpeg from file and memory use this as base to managers 22 */ 23 typedef struct { 24 struct jpeg_source_mgr pub; /* public fields */ 25 jmp_buf error_jmp_buf; /* error handler for this instance */ 26 } rt_jpeg_error_mgr; 27 28 #ifdef __cplusplus 29 } 30 #endif 31