ec/google/chromeec: Define ACPI_NOTIFY_CROS_EC_MKBP constant
[coreboot.git] / src / lib / jpeg.h
blobc5179c8c4f4905350191d7be94cab67abd75760a
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef __JPEG_H
4 #define __JPEG_H
6 #include <stdlib.h>
8 /* These functions return NULL on success and a short error message on
9 * failure. Callers should not free the returned pointer. */
11 const char *jpeg_fetch_size(unsigned char *filedata, size_t filesize, unsigned int *width,
12 unsigned int *height);
13 const char *jpeg_decode(unsigned char *filedata, size_t filesize, unsigned char *framebuffer,
14 unsigned int width, unsigned int height, unsigned int bytes_per_line,
15 unsigned int depth);
17 #endif