1 /* SPDX-License-Identifier: GPL-2.0-only */
8 #define JPEG_DECODE_FAILED 1
10 int jpeg_fetch_size(unsigned char *filedata
, size_t filesize
, unsigned int *width
,
11 unsigned int *height
);
12 int jpeg_decode(unsigned char *filedata
, size_t filesize
, unsigned char *framebuffer
,
13 unsigned int width
, unsigned int height
, unsigned int bytes_per_line
,