coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
jpeg.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
/*
4
* a tiny jpeg decoder.
5
*
6
* written in August 2001 by Michael Schroeder <mls@suse.de>
7
*/
8
9
#ifndef __JPEG_H
10
#define __JPEG_H
11
12
#define ERR_NO_SOI 1
13
#define ERR_NOT_8BIT 2
14
#define ERR_HEIGHT_MISMATCH 3
15
#define ERR_WIDTH_MISMATCH 4
16
#define ERR_BAD_WIDTH_OR_HEIGHT 5
17
#define ERR_TOO_MANY_COMPPS 6
18
#define ERR_ILLEGAL_HV 7
19
#define ERR_QUANT_TABLE_SELECTOR 8
20
#define ERR_NOT_YCBCR_221111 9
21
#define ERR_UNKNOWN_CID_IN_SCAN 10
22
#define ERR_NOT_SEQUENTIAL_DCT 11
23
#define ERR_WRONG_MARKER 12
24
#define ERR_NO_EOI 13
25
#define ERR_BAD_TABLES 14
26
#define ERR_DEPTH_MISMATCH 15
27
28
struct
jpeg_decdata
{
29
int
dcts
[6 * 64 + 16];
30
int
out
[64 * 6];
31
int
dquant
[3][64];
32
};
33
34
int
jpeg_decode
(
unsigned
char
*,
unsigned
char
*,
int
,
int
,
int
,
35
struct
jpeg_decdata
*);
36
void
jpeg_fetch_size
(
unsigned
char
*
buf
,
int
*
width
,
int
*
height
);
37
int
jpeg_check_size
(
unsigned
char
*,
int
,
int
);
38
39
#endif
width
static int width
Definition:
bochs.c:42
jpeg_fetch_size
void jpeg_fetch_size(unsigned char *buf, int *width, int *height)
Definition:
jpeg.c:244
jpeg_check_size
int jpeg_check_size(unsigned char *, int, int)
Definition:
jpeg.c:256
jpeg_decode
int jpeg_decode(unsigned char *, unsigned char *, int, int, int, struct jpeg_decdata *)
Definition:
jpeg.c:269
buf
static uint8_t * buf
Definition:
uart.c:7
jpeg_decdata
Definition:
jpeg.h:28
jpeg_decdata::dcts
int dcts[6 *64+16]
Definition:
jpeg.h:29
jpeg_decdata::dquant
int dquant[3][64]
Definition:
jpeg.h:31
jpeg_decdata::out
int out[64 *6]
Definition:
jpeg.h:30
height
#define height
src
lib
jpeg.h
Generated by
1.9.1