coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
jpeg.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  jpeg_decdata
 

Macros

#define ERR_NO_SOI   1
 
#define ERR_NOT_8BIT   2
 
#define ERR_HEIGHT_MISMATCH   3
 
#define ERR_WIDTH_MISMATCH   4
 
#define ERR_BAD_WIDTH_OR_HEIGHT   5
 
#define ERR_TOO_MANY_COMPPS   6
 
#define ERR_ILLEGAL_HV   7
 
#define ERR_QUANT_TABLE_SELECTOR   8
 
#define ERR_NOT_YCBCR_221111   9
 
#define ERR_UNKNOWN_CID_IN_SCAN   10
 
#define ERR_NOT_SEQUENTIAL_DCT   11
 
#define ERR_WRONG_MARKER   12
 
#define ERR_NO_EOI   13
 
#define ERR_BAD_TABLES   14
 
#define ERR_DEPTH_MISMATCH   15
 

Functions

int jpeg_decode (unsigned char *, unsigned char *, int, int, int, struct jpeg_decdata *)
 
void jpeg_fetch_size (unsigned char *buf, int *width, int *height)
 
int jpeg_check_size (unsigned char *, int, int)
 

Macro Definition Documentation

◆ ERR_BAD_TABLES

#define ERR_BAD_TABLES   14

Definition at line 25 of file jpeg.h.

◆ ERR_BAD_WIDTH_OR_HEIGHT

#define ERR_BAD_WIDTH_OR_HEIGHT   5

Definition at line 16 of file jpeg.h.

◆ ERR_DEPTH_MISMATCH

#define ERR_DEPTH_MISMATCH   15

Definition at line 26 of file jpeg.h.

◆ ERR_HEIGHT_MISMATCH

#define ERR_HEIGHT_MISMATCH   3

Definition at line 14 of file jpeg.h.

◆ ERR_ILLEGAL_HV

#define ERR_ILLEGAL_HV   7

Definition at line 18 of file jpeg.h.

◆ ERR_NO_EOI

#define ERR_NO_EOI   13

Definition at line 24 of file jpeg.h.

◆ ERR_NO_SOI

#define ERR_NO_SOI   1

Definition at line 12 of file jpeg.h.

◆ ERR_NOT_8BIT

#define ERR_NOT_8BIT   2

Definition at line 13 of file jpeg.h.

◆ ERR_NOT_SEQUENTIAL_DCT

#define ERR_NOT_SEQUENTIAL_DCT   11

Definition at line 22 of file jpeg.h.

◆ ERR_NOT_YCBCR_221111

#define ERR_NOT_YCBCR_221111   9

Definition at line 20 of file jpeg.h.

◆ ERR_QUANT_TABLE_SELECTOR

#define ERR_QUANT_TABLE_SELECTOR   8

Definition at line 19 of file jpeg.h.

◆ ERR_TOO_MANY_COMPPS

#define ERR_TOO_MANY_COMPPS   6

Definition at line 17 of file jpeg.h.

◆ ERR_UNKNOWN_CID_IN_SCAN

#define ERR_UNKNOWN_CID_IN_SCAN   10

Definition at line 21 of file jpeg.h.

◆ ERR_WIDTH_MISMATCH

#define ERR_WIDTH_MISMATCH   4

Definition at line 15 of file jpeg.h.

◆ ERR_WRONG_MARKER

#define ERR_WRONG_MARKER   12

Definition at line 23 of file jpeg.h.

Function Documentation

◆ jpeg_check_size()

int jpeg_check_size ( unsigned char *  buf,
int  width,
int  height 
)

Definition at line 256 of file jpeg.c.

References buf, datap, getbyte(), getword(), height, M_SOF0, readtables(), and width.

Here is the call graph for this function:

◆ jpeg_decode()

◆ jpeg_fetch_size()

void jpeg_fetch_size ( unsigned char *  buf,
int *  width,
int *  height 
)

Definition at line 244 of file jpeg.c.

References buf, datap, getbyte(), getword(), height, M_SOF0, readtables(), and width.

Referenced by set_bootsplash().

Here is the call graph for this function:
Here is the caller graph for this function: