jdatasrc.c File Reference

#include "jinclude.h"
#include "jpeglib.h"
#include "jerror.h"

Go to the source code of this file.

Data Structures

struct  my_source_mgr

Defines

#define INPUT_BUF_SIZE   4096

Typedefs

typedef my_source_mgrmy_src_ptr

Functions

 init_source (j_decompress_ptr cinfo)
 term_source (j_decompress_ptr cinfo)


Define Documentation

#define INPUT_BUF_SIZE   4096

Definition at line 35 of file jdatasrc.c.


Typedef Documentation

Definition at line 33 of file jdatasrc.c.


Function Documentation

init_source ( j_decompress_ptr  cinfo  ) 

Definition at line 44 of file jdatasrc.c.

References my_source_mgr::start_of_file, and TRUE.

00045 {
00046   my_src_ptr src = (my_src_ptr) cinfo->src;
00047 
00048   /* We reset the empty-input-file flag for each image,
00049    * but we don't clear the input buffer.
00050    * This is correct behavior for reading a series of images from one source.
00051    */
00052   src->start_of_file = TRUE;
00053 }

term_source ( j_decompress_ptr  cinfo  ) 

Definition at line 172 of file jdatasrc.c.

00173 {
00174   /* no work necessary here */
00175 }


Generated on Fri Feb 19 02:31:02 2010 for AVR32 - IJG JPEG Decoder Example by  doxygen 1.5.5