managed to get the projects compiling, jpg has been disabled for now and I wasn't able to test the runtime until I can get my hands on the files required by libgldemo

This commit is contained in:
Jip 2024-05-02 20:32:10 +02:00
parent a380de3a44
commit b99359078e
601 changed files with 334759 additions and 69 deletions

View file

@ -16,9 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "FileHandler.hpp"
#include <jpeglib.h>
#include <jerror.h>
#include "FileHandler.h"
//#include <jpeglib.h>
//#include <jerror.h>
#include <png.h>
#include <setjmp.h> //Used for libpng
#include "bmp/read_bmp.h"
@ -120,6 +120,7 @@ static uint8_t * ReadBMP(Image_t * Image, const uint8_t * InData, size_t FileSiz
// libjpeg-turbo v6 doesn't support jpeg_mem_src, so we have to implement it here
/*
static void term_source(j_decompress_ptr){}
static int fill_mem_input_buffer(j_decompress_ptr cinfo){
ERREXIT(cinfo, JERR_FILE_READ);
@ -136,7 +137,10 @@ static void skip_input_data(j_decompress_ptr cinfo, long bytes)
src->next_input_byte += bytes;
src->bytes_in_buffer -= bytes;
}
*/
static uint8_t * ReadJPG(Image_t * Image, const uint8_t * InData, size_t FileSize){
/*
//Initialize
jpeg_decompress_struct cinfo;
jpeg_error_mgr jerr;
@ -197,6 +201,8 @@ static uint8_t * ReadJPG(Image_t * Image, const uint8_t * InData, size_t FileSiz
Image->Data = OutData;
}
return OutData;
*/
return NULL;
}
struct pngdata_t {