Main MRPT website > C++ reference for MRPT 1.9.9
Classes | Macros | Typedefs | Functions
CImage_JPEG_streams.cpp File Reference
#include "base-precomp.h"
#include <mrpt/utils/CImage.h>
#include <mrpt/utils/CStream.h>
#include <mrpt/otherlibs/do_opencv_includes.h>
#include <stdio.h>

Go to the source code of this file.

Classes

struct  mrpt_destination_mgr
 
struct  my_source_mgr
 

Macros

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

Typedefs

typedef mrpt_destination_mgrmrpt_dest_ptr
 
typedef my_source_mgrmy_src_ptr
 

Functions

 init_destination (j_compress_ptr cinfo)
 
 empty_output_buffer (j_compress_ptr cinfo)
 
 term_destination (j_compress_ptr cinfo)
 
 jpeg_stdio_dest (j_compress_ptr cinfo, CStream *out)
 
 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 cinfo)
 
 jpeg_stdio_src (j_decompress_ptr cinfo, CStream *in)
 

Macro Definition Documentation

◆ INPUT_BUF_SIZE

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

Definition at line 172 of file CImage_JPEG_streams.cpp.

Referenced by fill_input_buffer(), and jpeg_stdio_src().

◆ OUTPUT_BUF_SIZE

#define OUTPUT_BUF_SIZE   4096 /* choose an efficiently fwrite'able size */

Definition at line 58 of file CImage_JPEG_streams.cpp.

Referenced by empty_output_buffer(), init_destination(), and term_destination().

◆ XMD_H

#define XMD_H

Definition at line 28 of file CImage_JPEG_streams.cpp.

Typedef Documentation

◆ mrpt_dest_ptr

Definition at line 56 of file CImage_JPEG_streams.cpp.

◆ my_src_ptr

Definition at line 170 of file CImage_JPEG_streams.cpp.

Function Documentation

◆ empty_output_buffer()

empty_output_buffer ( j_compress_ptr  cinfo)

◆ fill_input_buffer()

fill_input_buffer ( j_decompress_ptr  cinfo)

Definition at line 225 of file CImage_JPEG_streams.cpp.

References FALSE, my_source_mgr::in, INPUT_BUF_SIZE, JPEG_EOI, mrpt::utils::CStream::ReadBuffer(), THROW_EXCEPTION, and TRUE.

Referenced by jpeg_stdio_src(), and skip_input_data().

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

◆ init_destination()

init_destination ( j_compress_ptr  cinfo)

◆ init_source()

init_source ( j_decompress_ptr  cinfo)

Definition at line 180 of file CImage_JPEG_streams.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_dest()

jpeg_stdio_dest ( j_compress_ptr  cinfo,
CStream out 
)

Definition at line 135 of file CImage_JPEG_streams.cpp.

References empty_output_buffer(), init_destination(), JPOOL_PERMANENT, mrpt_destination_mgr::out, mrpt_destination_mgr::pub, and term_destination().

Referenced by mrpt::utils::CImage::saveToStreamAsJPEG().

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

◆ jpeg_stdio_src()

jpeg_stdio_src ( j_decompress_ptr  cinfo,
CStream in 
)

Definition at line 319 of file CImage_JPEG_streams.cpp.

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

Referenced by mrpt::utils::CImage::loadFromStreamAsJPEG().

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

◆ skip_input_data()

skip_input_data ( j_decompress_ptr  cinfo,
long  num_bytes 
)

Definition at line 265 of file CImage_JPEG_streams.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_destination()

term_destination ( j_compress_ptr  cinfo)

Definition at line 125 of file CImage_JPEG_streams.cpp.

References mrpt_destination_mgr::buffer, jpeg_destination_mgr::free_in_buffer, mrpt_destination_mgr::out, OUTPUT_BUF_SIZE, mrpt_destination_mgr::pub, and mrpt::utils::CStream::WriteBuffer().

Referenced by jpeg_stdio_dest().

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

◆ term_source()

term_source ( j_decompress_ptr  cinfo)

Definition at line 306 of file CImage_JPEG_streams.cpp.

References MRPT_UNUSED_PARAM.

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