Atmel Software Framework

avr32/applications/uc3-audio-player/jpg/jdatasrc.c File Reference
#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_DECODER_MAX_IMAGE_HEIGHT   DEFAULT_MAX_IMAGE_HEIGHT
 
#define JPEG_DECODER_MAX_IMAGE_WIDTH   DEFAULT_MAX_IMAGE_WIDTH
 
#define JPEG_DECODER_PIXEL_SIZE_IN_BYTES   DEFAULT_PIXEL_SIZE_IN_BYTES
 
#define JPEG_INPUT_BUF_SIZE   1024
 

Typedefs

typedef struct extended_error_mgrextended_error_ptr
 
typedef my_source_mgrmy_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_DECODER_MAX_IMAGE_HEIGHT   DEFAULT_MAX_IMAGE_HEIGHT

Referenced by jpeg_lib_init().

#define JPEG_DECODER_MAX_IMAGE_WIDTH   DEFAULT_MAX_IMAGE_WIDTH

Referenced by jpeg_lib_init().

#define JPEG_DECODER_PIXEL_SIZE_IN_BYTES   DEFAULT_PIXEL_SIZE_IN_BYTES

Referenced by jpeg_lib_init().

#define JPEG_INPUT_BUF_SIZE   1024

extended_error_exit ( j_common_ptr  cinfo)

References cinfo, and extended_error_mgr::setjmp_buffer.

Referenced by jpeg_lib_init().

static void init_source ( j_decompress_ptr  cinfo)
static
bool jpeg_lib_decode ( int  offset)

Referenced by jpeg_lib_decode_ex().

void* jpeg_lib_decode_ex ( int  offset,
uint16_t *  width,
uint16_t *  height 
)
void jpeg_lib_exit ( void  )

Referenced by main().

bool jpeg_lib_init ( void  )

Referenced by ai_usb_ms_mp3_support_init(), and main().

static void skip_input_data ( j_decompress_ptr  cinfo,
long  num_bytes 
)
static
static void term_source ( j_decompress_ptr  cinfo)
static

Referenced by jpeg_stdio_src().

struct jpeg_lib jpeg_lib_data
static
uint16_t* jpeg_out_buffer_pos