2023-05-04 18:12:57 +08:00
|
|
|
#ifndef __DRVJPEG_H__
|
|
|
|
#define __DRVJPEG_H__
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
#include "hal_data.h"
|
|
|
|
|
2023-05-05 14:37:37 +08:00
|
|
|
#define DCODE_BUFFER_SIZE (30 * 1024)
|
|
|
|
#define JPEG_TIMEOUT (100)
|
|
|
|
|
2023-05-04 18:12:57 +08:00
|
|
|
typedef struct _decode_drv_t
|
|
|
|
{
|
|
|
|
void *jpeg_out_buf;
|
|
|
|
void (*decode_read)(int32_t x, int32_t y, const void *pInBuffer, int32_t xSize, int32_t ySize);
|
|
|
|
}decode_drv_t;
|
|
|
|
|
|
|
|
int JPEG_Draw_frame(decode_drv_t *decode, void *pbuffer, int32_t x0, int32_t y0);
|
|
|
|
|
|
|
|
#endif
|