1 #ifndef __DRVJPEG_H__ 2 #define __DRVJPEG_H__ 3 4 #include <rtthread.h> 5 #include "hal_data.h" 6 7 #define DCODE_BUFFER_SIZE (30 * 1024) 8 #define JPEG_TIMEOUT (100) 9 10 typedef struct _decode_drv_t 11 { 12 void *jpeg_out_buf; 13 void (*decode_read)(int32_t x, int32_t y, const void *pInBuffer, int32_t xSize, int32_t ySize); 14 }decode_drv_t; 15 16 int JPEG_Draw_frame(decode_drv_t *decode, void *pbuffer, int32_t x0, int32_t y0); 17 18 #endif 19