Atmel Software Framework

thirdparty/ijg/example/jdatasrc.c File Reference
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <setjmp.h>
#include "compiler.h"
#include "board.h"
#include "et024006dhu.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_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, U16 *width, U16 *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)
 
void stream_close ()
 
void stream_open (void)
 
size_t stream_read (JOCTET *buffer, size_t nb_byte)
 
void stream_seek (int offset)
 
static void term_source (j_decompress_ptr cinfo)
 

Variables

static struct jpeg_lib jpeg_lib_data
 
uint16_t * jpeg_out_buffer_pos
 
const U8stream_jpeg_src_ptr
 
static size_t stream_offset
 
U16 stream_src_size
 

#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

extended_error_exit ( j_common_ptr  cinfo)
static void init_source ( j_decompress_ptr  cinfo)
static
void jpeg_lib_exit ( void  )
static void skip_input_data ( j_decompress_ptr  cinfo,
long  num_bytes 
)
static
void stream_close ( )

Referenced by jpeg_lib_decode().

void stream_open ( void  )

References stream_offset.

Referenced by jpeg_lib_decode().

size_t stream_read ( JOCTET buffer,
size_t  nb_byte 
)
void stream_seek ( int  offset)

References stream_offset.

Referenced by jpeg_lib_decode().

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
const U8* stream_jpeg_src_ptr

Referenced by main(), and stream_read().

size_t stream_offset
static
U16 stream_src_size

Referenced by main(), and stream_read().