#include "img-precomp.h"#include <mrpt/img/CImage.h>#include <mrpt/io/CStream.h>#include <mrpt/otherlibs/do_opencv_includes.h>#include <stdio.h>#include <jpeglib.h>
Go to the source code of this file.
Classes | |
| struct | mrpt_destination_mgr |
| struct | my_source_mgr |
Macros | |
| #define | XMD_H |
| #define | mrpt_jpeg_source_mgr jpeg_source_mgr |
| #define | OUTPUT_BUF_SIZE 4096 /* choose an efficiently fwrite'able size */ |
| #define | INPUT_BUF_SIZE 4096 /* choose an efficiently fread'able size */ |
Typedefs | |
| using | mrpt_dest_ptr = mrpt_destination_mgr * |
| using | my_src_ptr = my_source_mgr * |
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) | |
| #define INPUT_BUF_SIZE 4096 /* choose an efficiently fread'able size */ |
Definition at line 161 of file CImage_JPEG_streams.cpp.
| #define mrpt_jpeg_source_mgr jpeg_source_mgr |
Definition at line 33 of file CImage_JPEG_streams.cpp.
| #define OUTPUT_BUF_SIZE 4096 /* choose an efficiently fwrite'able size */ |
Definition at line 47 of file CImage_JPEG_streams.cpp.
| #define XMD_H |
Definition at line 28 of file CImage_JPEG_streams.cpp.
| using mrpt_dest_ptr = mrpt_destination_mgr* |
Definition at line 45 of file CImage_JPEG_streams.cpp.
| using my_src_ptr = my_source_mgr* |
Definition at line 159 of file CImage_JPEG_streams.cpp.
| empty_output_buffer | ( | j_compress_ptr | cinfo | ) |
Definition at line 92 of file CImage_JPEG_streams.cpp.
References mrpt_destination_mgr::buffer, jpeg_destination_mgr::free_in_buffer, jpeg_destination_mgr::next_output_byte, mrpt_destination_mgr::out, OUTPUT_BUF_SIZE, mrpt_destination_mgr::pub, TRUE, and mrpt::io::CStream::Write().
Referenced by jpeg_stdio_dest().
| fill_input_buffer | ( | j_decompress_ptr | cinfo | ) |
Definition at line 214 of file CImage_JPEG_streams.cpp.
References FALSE, my_source_mgr::in, INPUT_BUF_SIZE, JPEG_EOI, mrpt::io::CStream::Read(), THROW_EXCEPTION, and TRUE.
Referenced by jpeg_stdio_src(), and skip_input_data().
| init_destination | ( | j_compress_ptr | cinfo | ) |
Definition at line 55 of file CImage_JPEG_streams.cpp.
References mrpt_destination_mgr::buffer, jpeg_destination_mgr::free_in_buffer, JPOOL_IMAGE, jpeg_destination_mgr::next_output_byte, OUTPUT_BUF_SIZE, and mrpt_destination_mgr::pub.
Referenced by jpeg_stdio_dest().
| init_source | ( | j_decompress_ptr | cinfo | ) |
Definition at line 169 of file CImage_JPEG_streams.cpp.
References my_source_mgr::start_of_file, and TRUE.
Referenced by jpeg_stdio_src().
| jpeg_stdio_dest | ( | j_compress_ptr | cinfo, |
| CStream * | out | ||
| ) |
Definition at line 124 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::img::CImage::saveToStreamAsJPEG().
| jpeg_stdio_src | ( | j_decompress_ptr | cinfo, |
| CStream * | in | ||
| ) |
Definition at line 308 of file CImage_JPEG_streams.cpp.
References fill_input_buffer(), init_source(), INPUT_BUF_SIZE, JPOOL_PERMANENT, mrpt_jpeg_source_mgr, skip_input_data(), and term_source().
Referenced by mrpt::img::CImage::loadFromStreamAsJPEG().
| skip_input_data | ( | j_decompress_ptr | cinfo, |
| long | num_bytes | ||
| ) |
Definition at line 254 of file CImage_JPEG_streams.cpp.
References fill_input_buffer(), and my_source_mgr::pub.
Referenced by jpeg_stdio_src().
| term_destination | ( | j_compress_ptr | cinfo | ) |
Definition at line 114 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::io::CStream::Write().
Referenced by jpeg_stdio_dest().
| term_source | ( | j_decompress_ptr | cinfo | ) |
Definition at line 295 of file CImage_JPEG_streams.cpp.
References MRPT_UNUSED_PARAM.
Referenced by jpeg_stdio_src().
| Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST |