Files
player/Project/Src/JPEG/picdeco.h
2025-07-05 19:47:28 +08:00

58 lines
440 B
C

#ifndef __PICLIB_H
#define __PICLIB_H
#include "base.h"
#include "ff.h"
#include "tjpgd.h"
#define JPEG_BufferSize 4096
typedef struct
{
int x_size;
int y_size;
u16 *buff;
}BITMAP_Struct;
u8 JPEG_Show(const u8 *filename,u16 x,u16 y);
u8 JPEG_Decode(const u8 *filename,BITMAP_Struct *bitmap);
//解码存储在ram中的jpeg数据
u8 JPEG_Decode_Ram(u8 *data,u32 size,BITMAP_Struct *bitmap);
#endif