![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Data Structures | |
struct | in |
union | hufftblp |
struct | scan |
struct | dec_hufftbl |
struct | comp |
struct | jpginfo |
Macros | |
#define | __LITTLE_ENDIAN |
#define | ISHIFT 11 |
#define | IFIX(a) ((int)((a) * (1 << ISHIFT) + .5)) |
#define | IMULT(a, b) (((a) * (b)) >> ISHIFT) |
#define | ITOINT(a) ((a) >> ISHIFT) |
#define | __P(x) x |
#define | M_BADHUFF -1 |
#define | M_EOF 0x80 |
#define | DECBITS 10 /* seems to be the optimum */ |
#define | PREC int |
#define | M_SOI 0xd8 |
#define | M_APP0 0xe0 |
#define | M_DQT 0xdb |
#define | M_SOF0 0xc0 |
#define | M_DHT 0xc4 |
#define | M_DRI 0xdd |
#define | M_SOS 0xda |
#define | M_RST0 0xd0 |
#define | M_EOI 0xd9 |
#define | M_COM 0xfe |
#define | MAXCOMP 4 |
#define | dec_huffdc (dhuff + 0) |
#define | dec_huffac (dhuff + 2) |
#define | LEBI_DCL int le, bi |
#define | LEBI_GET(in) (le = in->left, bi = in->bits) |
#define | LEBI_PUT(in) (in->left = le, in->bits = bi) |
#define | GETBITS(in, n) |
#define | UNGETBITS(in, n) |
#define | DEC_REC(in, hu, r, i) |
#define | ONE ((PREC)IFIX(1.)) |
#define | S2 ((PREC)IFIX(0.382683432)) |
#define | C2 ((PREC)IFIX(0.923879532)) |
#define | C4 ((PREC)IFIX(0.707106781)) |
#define | S22 ((PREC)IFIX(2 * 0.382683432)) |
#define | C22 ((PREC)IFIX(2 * 0.923879532)) |
#define | IC4 ((PREC)IFIX(1 / 0.707106781)) |
#define | C3IC1 ((PREC)IFIX(0.847759065)) /* c3/c1 */ |
#define | C5IC1 ((PREC)IFIX(0.566454497)) /* c5/c1 */ |
#define | C7IC1 ((PREC)IFIX(0.198912367)) /* c7/c1 */ |
#define | XPP(a, b) (t = a + b, b = a - b, a = t) |
#define | XMP(a, b) (t = a - b, b = a + b, a = t) |
#define | XPM(a, b) (t = a + b, b = b - a, a = t) |
#define | ROT(a, b, s, c) |
#define | IDCT |
#define | ROUND |
#define | STORECLAMP(a, x) |
#define | CLAMP(x) ((unsigned int)(x) >= 256 ? ((x) < 0 ? 0 : 255) : (x)) |
#define | CBCRCG(yin, xin) |
#define | PIC(yin, xin, p, xout) |
#define | PIC_16(yin, xin, p, xout, add) |
#define | PIC_32(yin, xin, p, xout) |
#define | PIC221111(xin) |
#define | PIC221111_16(xin) |
#define | PIC221111_32(xin) |
Functions | |
static void decode_mcus | __P ((struct in *, int *, int, struct scan *, int *)) |
static int dec_readmarker | __P ((struct in *)) |
static void dec_makehuff | __P ((struct dec_hufftbl *, int *, unsigned char *)) |
static void setinput | __P ((struct in *, unsigned char *)) |
static void idctqtab | __P ((unsigned char *, PREC *)) |
static void idct | __P ((int *, int *, PREC *, PREC, int)) |
static void scaleidctqtab | __P ((PREC *, PREC)) |
static void initcol | __P ((PREC[][64])) |
static void col221111 | __P ((int *, unsigned char *, int)) |
static int | getbyte (void) |
static int | getword (void) |
static int | readtables (int till) |
static void | dec_initscans (void) |
static int | dec_checkmarker (void) |
void | jpeg_fetch_size (unsigned char *buf, int *width, int *height) |
int | jpeg_check_size (unsigned char *buf, int width, int height) |
int | jpeg_decode (unsigned char *buf, unsigned char *pic, int width, int height, int depth, struct jpeg_decdata *decdata) |
static int fillbits | __P ((struct in *, int, unsigned int)) |
static int dec_rec2 | __P ((struct in *, struct dec_hufftbl *, int *, int, int)) |
static void | setinput (struct in *in, unsigned char *p) |
static int | fillbits (struct in *in, int le, unsigned int bi) |
static int | dec_readmarker (struct in *in) |
static int | dec_rec2 (struct in *in, struct dec_hufftbl *hu, int *runp, int c, int i) |
static void | decode_mcus (struct in *in, int *dct, int n, struct scan *sc, int *maxp) |
static void | dec_makehuff (struct dec_hufftbl *hu, int *hufflen, unsigned char *huffvals) |
void | idct (int *in, int *out, PREC *lquant, PREC off, int max) |
static void | idctqtab (unsigned char *qin, PREC *qout) |
static void | scaleidctqtab (PREC *q, PREC sc) |
static void | initcol (PREC q[][64]) |
static void | col221111 (int *out, unsigned char *pic, int width) |
static void | col221111_16 (int *out, unsigned char *pic, int width) |
static void | col221111_32 (int *out, unsigned char *pic, int width) |
Variables | |
static unsigned char * | datap |
static struct jpginfo | info |
static struct comp | comps [MAXCOMP] |
static struct scan | dscans [MAXCOMP] |
static unsigned char | quant [4][64] |
static struct dec_hufftbl | dhuff [4] |
static struct in | glob_in |
static unsigned char | zig2 [64] |
static unsigned char | zig [64] |
static PREC | aaidct [8] |
#define CBCRCG | ( | yin, | |
xin | |||
) |
#define DEC_REC | ( | in, | |
hu, | |||
r, | |||
i | |||
) |
#define GETBITS | ( | in, | |
n | |||
) |
#define IDCT |
#define PIC | ( | yin, | |
xin, | |||
p, | |||
xout | |||
) |
#define PIC221111 | ( | xin | ) |
#define PIC221111_16 | ( | xin | ) |
#define PIC221111_32 | ( | xin | ) |
#define PIC_16 | ( | yin, | |
xin, | |||
p, | |||
xout, | |||
add | |||
) |
#define PIC_32 | ( | yin, | |
xin, | |||
p, | |||
xout | |||
) |
#define STORECLAMP | ( | a, | |
x | |||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 953 of file jpeg.c.
References PIC221111_16, width, and y.
Referenced by jpeg_decode().
Definition at line 977 of file jpeg.c.
References PIC221111_32, width, and y.
Referenced by jpeg_decode().
|
static |
Definition at line 231 of file jpeg.c.
References dec_readmarker(), jpginfo::dri, dscans, glob_in, info, jpginfo::nm, jpginfo::ns, and jpginfo::rm.
Referenced by jpeg_decode().
Definition at line 221 of file jpeg.c.
References jpginfo::dri, dscans, info, M_RST0, jpginfo::nm, jpginfo::ns, and jpginfo::rm.
Referenced by jpeg_decode().
|
static |
Definition at line 574 of file jpeg.c.
References c, DECBITS, dec_hufftbl::llvals, dec_hufftbl::maxcode, dec_hufftbl::valptr, dec_hufftbl::vals, and x.
Referenced by readtables().
|
static |
Definition at line 462 of file jpeg.c.
References in::bits, fillbits(), in::left, m, and in::marker.
Referenced by dec_checkmarker(), and jpeg_decode().
|
static |
Definition at line 490 of file jpeg.c.
References c, DECBITS, GETBITS, LEBI_DCL, LEBI_GET, LEBI_PUT, M_BADHUFF, in::marker, dec_hufftbl::maxcode, UNGETBITS, dec_hufftbl::valptr, and dec_hufftbl::vals.
Definition at line 542 of file jpeg.c.
References scan::dc, DEC_REC, hufftblp::dhuff, scan::huac, scan::hudc, LEBI_DCL, LEBI_GET, LEBI_PUT, memset(), and scan::next.
Referenced by jpeg_decode().
Definition at line 428 of file jpeg.c.
References in::bits, in::data, m, M_EOF, in::marker, and in::p.
Referenced by dec_readmarker().
|
static |
Definition at line 106 of file jpeg.c.
References datap.
Referenced by jpeg_check_size(), jpeg_decode(), jpeg_fetch_size(), and readtables().
|
static |
Definition at line 111 of file jpeg.c.
Referenced by jpeg_check_size(), jpeg_decode(), jpeg_fetch_size(), and readtables().
Definition at line 813 of file jpeg.c.
References IFIX, and scaleidctqtab().
Referenced by jpeg_decode().
int jpeg_check_size | ( | unsigned char * | buf, |
int | width, | ||
int | height | ||
) |
int jpeg_decode | ( | unsigned char * | buf, |
unsigned char * | pic, | ||
int | width, | ||
int | height, | ||
int | depth, | ||
struct jpeg_decdata * | decdata | ||
) |
Definition at line 269 of file jpeg.c.
References buf, scan::cid, comp::cid, col221111(), col221111_16(), col221111_32(), comps, datap, jpeg_decdata::dcts, dec_checkmarker(), dec_huffac, dec_huffdc, dec_initscans(), dec_readmarker(), decode_mcus(), hufftblp::dhuff, jpeg_decdata::dquant, jpginfo::dri, dscans, ERR_BAD_TABLES, ERR_BAD_WIDTH_OR_HEIGHT, ERR_DEPTH_MISMATCH, ERR_HEIGHT_MISMATCH, ERR_ILLEGAL_HV, ERR_NO_EOI, ERR_NO_SOI, ERR_NOT_8BIT, ERR_NOT_SEQUENTIAL_DCT, ERR_NOT_YCBCR_221111, ERR_QUANT_TABLE_SELECTOR, ERR_TOO_MANY_COMPPS, ERR_UNKNOWN_CID_IN_SCAN, ERR_WIDTH_MISMATCH, ERR_WRONG_MARKER, getbyte(), getword(), glob_in, height, scan::huac, scan::hudc, scan::hv, comp::hv, idct(), idctqtab(), IFIX, info, initcol(), m, M_EOI, M_SOF0, M_SOI, M_SOS, MAXCOMP, jpginfo::nc, scan::next, jpginfo::nm, jpginfo::ns, jpeg_decdata::out, quant, readtables(), setinput(), scan::tq, comp::tq, and width.
Referenced by set_bootsplash().
|
static |
Definition at line 148 of file jpeg.c.
References dec_makehuff(), dhuff, jpginfo::dri, getbyte(), getword(), info, m, M_DHT, M_DQT, M_DRI, and quant.
Referenced by jpeg_check_size(), jpeg_decode(), and jpeg_fetch_size().
Definition at line 420 of file jpeg.c.
References in::bits, in::left, in::marker, and in::p.
Referenced by jpeg_decode().
|
static |
Definition at line 111 of file jpeg.c.
Referenced by jpeg_decode().
|
static |
Definition at line 104 of file jpeg.c.
Referenced by getbyte(), jpeg_check_size(), jpeg_decode(), and jpeg_fetch_size().
|
static |
Definition at line 139 of file jpeg.c.
Referenced by readtables().
Definition at line 111 of file jpeg.c.
Referenced by dec_checkmarker(), dec_initscans(), and jpeg_decode().
|
static |
Definition at line 139 of file jpeg.c.
Referenced by dec_checkmarker(), and jpeg_decode().
|
static |
Definition at line 111 of file jpeg.c.
Referenced by dec_checkmarker(), dec_initscans(), jpeg_decode(), and readtables().
|
static |
Definition at line 139 of file jpeg.c.
Referenced by jpeg_decode(), and readtables().
|
static |
Definition at line 749 of file jpeg.c.
Referenced by idctqtab().
|
static |
Definition at line 672 of file jpeg.c.
Referenced by idct().