#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <stdint.h>
#include <string.h>
#include "pjpeg.h"
#include "image_u8.h"
#include "image_u8x3.h"
#include "debug_print.h"
Go to the source code of this file.
Classes | |
struct | bit_decoder |
struct | pjpeg_decode_state |
struct | pjpeg_huffman_code |
Functions | |
static uint32_t | bd_consume_bits (struct bit_decoder *bd, int nbits) |
static void | bd_discard_bytes (struct bit_decoder *bd, int nbytes) |
static void | bd_discard_to_byte_boundary (struct bit_decoder *bd) |
static void | bd_ensure (struct bit_decoder *bd, int nbits) |
static uint32_t | bd_get_offset (struct bit_decoder *bd) |
static int | bd_has_more (struct bit_decoder *bd) |
static uint32_t | bd_peek_bits (struct bit_decoder *bd, int nbits) |
static uint8_t | clamp_u8 (int32_t v) |
static uint8_t | clampd (double v) |
static uint8_t | max_u8 (uint8_t a, uint8_t b) |
pjpeg_t * | pjpeg_create_from_buffer (uint8_t *buf, int buflen, uint32_t flags, int *error) |
pjpeg_t * | pjpeg_create_from_file (const char *path, uint32_t flags, int *error) |
static int | pjpeg_decode_buffer (struct pjpeg_decode_state *pjd) |
void | pjpeg_destroy (pjpeg_t *pj) |
void | pjpeg_idct_2D_double (int32_t in[64], uint8_t *out, uint32_t outstride) |
void | pjpeg_idct_2D_nanojpeg (int32_t in[64], uint8_t *out, uint32_t outstride) |
void | pjpeg_idct_2D_u32 (int32_t in[64], uint8_t *out, uint32_t outstride) |
image_u8_t * | pjpeg_to_u8_baseline (pjpeg_t *pj) |
image_u8x3_t * | pjpeg_to_u8x3_baseline (pjpeg_t *pj) |
Variables | |
static uint8_t | mjpeg_dht [] |
static const char | ZZ [64] |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
pjpeg_t* pjpeg_create_from_buffer | ( | uint8_t * | buf, |
int | buflen, | ||
uint32_t | flags, | ||
int * | error | ||
) |
pjpeg_t* pjpeg_create_from_file | ( | const char * | path, |
uint32_t | flags, | ||
int * | error | ||
) |
|
static |
void pjpeg_idct_2D_double | ( | int32_t | in[64], |
uint8_t * | out, | ||
uint32_t | outstride | ||
) |
Definition at line 241 of file pjpeg-idct.c.
void pjpeg_idct_2D_nanojpeg | ( | int32_t | in[64], |
uint8_t * | out, | ||
uint32_t | outstride | ||
) |
Definition at line 380 of file pjpeg-idct.c.
void pjpeg_idct_2D_u32 | ( | int32_t | in[64], |
uint8_t * | out, | ||
uint32_t | outstride | ||
) |
Definition at line 179 of file pjpeg-idct.c.
image_u8_t* pjpeg_to_u8_baseline | ( | pjpeg_t * | pj | ) |
image_u8x3_t* pjpeg_to_u8x3_baseline | ( | pjpeg_t * | pj | ) |
|
static |