Main MRPT website > C++ reference for MRPT 1.9.9
Classes | Macros | Typedefs | Functions
jdatasrc.cpp File Reference
#include "jinclude.h"
#include "mrpt_jpeglib.h"
#include "jerror.h"

Go to the source code of this file.

Classes

struct  my_source_mgr
 

Macros

#define INPUT_BUF_SIZE   4096 /* choose an efficiently fread'able size */
 

Typedefs

typedef my_source_mgrmy_src_ptr
 

Functions

 init_source (j_decompress_ptr cinfo)
 
 fill_input_buffer (j_decompress_ptr cinfo)
 
 skip_input_data (j_decompress_ptr cinfo, long num_bytes)
 
 term_source (j_decompress_ptr)
 
 jpeg_stdio_src (j_decompress_ptr cinfo, FILE *infile)
 

Macro Definition Documentation

◆ INPUT_BUF_SIZE

#define INPUT_BUF_SIZE   4096 /* choose an efficiently fread'able size */

Definition at line 28 of file jdatasrc.cpp.

Referenced by fill_input_buffer(), and jpeg_stdio_src().

Typedef Documentation

◆ my_src_ptr

Definition at line 26 of file jdatasrc.cpp.

Function Documentation

◆ fill_input_buffer()

fill_input_buffer ( j_decompress_ptr  cinfo)

Definition at line 81 of file jdatasrc.cpp.

References ERREXIT, FALSE, INPUT_BUF_SIZE, JFREAD, JPEG_EOI, TRUE, and WARNMS.

Referenced by jpeg_stdio_src(), and skip_input_data().

Here is the caller graph for this function:

◆ init_source()

init_source ( j_decompress_ptr  cinfo)

Definition at line 36 of file jdatasrc.cpp.

References my_source_mgr::start_of_file, and TRUE.

Referenced by jpeg_stdio_src().

Here is the caller graph for this function:

◆ jpeg_stdio_src()

jpeg_stdio_src ( j_decompress_ptr  cinfo,
FILE *  infile 
)

Definition at line 168 of file jdatasrc.cpp.

References fill_input_buffer(), infile, init_source(), INPUT_BUF_SIZE, jpeg_resync_to_restart(), JPOOL_PERMANENT, SIZEOF, skip_input_data(), and term_source().

Here is the call graph for this function:

◆ skip_input_data()

skip_input_data ( j_decompress_ptr  cinfo,
long  num_bytes 
)

Definition at line 119 of file jdatasrc.cpp.

References fill_input_buffer(), and my_source_mgr::pub.

Referenced by jpeg_stdio_src().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ term_source()

term_source ( j_decompress_ptr  )

Definition at line 160 of file jdatasrc.cpp.

Referenced by jpeg_stdio_src().

Here is the caller graph for this function:



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019