#include <stdbool.h>
#include <stdio.h>
#include <setjmp.h>
#include "compiler.h"
#include "board.h"
#include "file.h"
#include "sdram_loader.h"
#include "jpeg_decoder.h"
#include "conf_jpeg_decoder.h"
#include "jpeglib.h"
#include "jinclude.h"
Data Structures | |
struct | extended_error_mgr |
struct | jpeg_lib |
struct | my_source_mgr |
Macros | |
#define | DEFAULT_MAX_IMAGE_HEIGHT 128 |
#define | DEFAULT_MAX_IMAGE_WIDTH 128 |
#define | DEFAULT_PIXEL_SIZE_IN_BYTES 2 |
#define | JPEG_INPUT_BUF_SIZE 1024 |
Typedefs | |
typedef struct extended_error_mgr * | extended_error_ptr |
typedef my_source_mgr * | my_src_ptr |
Functions | |
extended_error_exit (j_common_ptr cinfo) | |
static boolean | fill_input_buffer (j_decompress_ptr cinfo) |
static void | init_source (j_decompress_ptr cinfo) |
bool | jpeg_lib_decode (int offset) |
void * | jpeg_lib_decode_ex (int offset, uint16_t *width, uint16_t *height) |
void | jpeg_lib_exit (void) |
bool | jpeg_lib_init (void) |
void | jpeg_stdio_src (j_decompress_ptr cinfo, FILE *infile) |
static void | skip_input_data (j_decompress_ptr cinfo, long num_bytes) |
static void | term_source (j_decompress_ptr cinfo) |
Variables | |
static struct jpeg_lib | jpeg_lib_data |
uint16_t * | jpeg_out_buffer_pos |
#define DEFAULT_MAX_IMAGE_HEIGHT 128 |
#define DEFAULT_MAX_IMAGE_WIDTH 128 |
#define DEFAULT_PIXEL_SIZE_IN_BYTES 2 |
#define JPEG_INPUT_BUF_SIZE 1024 |
Referenced by fill_input_buffer(), and jpeg_stdio_src().
typedef struct extended_error_mgr* extended_error_ptr |
typedef my_source_mgr* my_src_ptr |
extended_error_exit | ( | j_common_ptr | cinfo | ) |
References extended_error_mgr::setjmp_buffer.
Referenced by jpeg_lib_init().
|
static |
|
static |
References jpeg_decompress_struct::src, and my_source_mgr::start_of_file.
Referenced by jpeg_stdio_src().
bool jpeg_lib_decode | ( | int | offset | ) |
References jpeg_lib::cinfo, jpeg_decompress_struct::dct_method, jpeg_decompress_struct::do_fancy_upsampling, file_close(), file_open(), file_seek(), FOPEN_MODE_R, FS_SEEK_SET, jpeg_decompress_struct::image_height, jpeg_decompress_struct::image_width, JCS_RGB565, JDCT_FASTEST, JPEG_HEADER_OK, jpeg_lib_data, jpeg_out_buffer_pos, jpeg_stdio_src(), max_lines, jpeg_decompress_struct::out_color_space, jpeg_decompress_struct::output_height, jpeg_lib::output_image, jpeg_decompress_struct::output_scanline, jpeg_decompress_struct::output_width, and jpeg_decompress_struct::scale_denom.
Referenced by jpeg_lib_decode_ex().
void* jpeg_lib_decode_ex | ( | int | offset, |
uint16_t * | width, | ||
uint16_t * | height | ||
) |
void jpeg_lib_exit | ( | void | ) |
References jpeg_lib::cinfo, jpeg_lib_data, mspace_free(), jpeg_lib::output_image, and sdram_mspace.
bool jpeg_lib_init | ( | void | ) |
References jpeg_lib::cinfo, extended_error_exit(), jpeg_create_decompress, JPEG_DECODER_MAX_IMAGE_HEIGHT, JPEG_DECODER_MAX_IMAGE_WIDTH, JPEG_DECODER_PIXEL_SIZE_IN_BYTES, jpeg_lib_data, mspace_free(), mspace_malloc(), jpeg_lib::output_image, and sdram_mspace.
Referenced by ai_usb_ms_mp3_support_init().
void jpeg_stdio_src | ( | j_decompress_ptr | cinfo, |
FILE * | infile | ||
) |
References my_source_mgr::buffer, jpeg_source_mgr::bytes_in_buffer, fill_input_buffer(), my_source_mgr::infile, init_source(), JPEG_INPUT_BUF_SIZE, JPOOL_PERMANENT, jpeg_source_mgr::next_input_byte, my_source_mgr::pub, SIZEOF, skip_input_data(), jpeg_decompress_struct::src, and term_source().
Referenced by jpeg_lib_decode().
|
static |
References jpeg_source_mgr::bytes_in_buffer, fill_input_buffer(), jpeg_source_mgr::next_input_byte, my_source_mgr::pub, and jpeg_decompress_struct::src.
Referenced by jpeg_stdio_src().
|
static |
Referenced by jpeg_stdio_src().
|
static |
Referenced by jpeg_lib_decode(), jpeg_lib_decode_ex(), jpeg_lib_exit(), and jpeg_lib_init().
uint16_t* jpeg_out_buffer_pos |
Referenced by jpeg_lib_decode().