MRPT
2.0.4
|
#include "img-precomp.h"
#include <mrpt/img/CImage.h>
#include <mrpt/io/CStream.h>
#include "CImage_impl.h"
#include <mrpt/3rdparty/do_opencv_includes.h>
#include <cstdio>
#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 ([[maybe_unused]] 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 163 of file CImage_JPEG_streams.cpp.
Referenced by fill_input_buffer(), and jpeg_stdio_src().
#define mrpt_jpeg_source_mgr jpeg_source_mgr |
Definition at line 34 of file CImage_JPEG_streams.cpp.
Referenced by jpeg_stdio_src().
#define OUTPUT_BUF_SIZE 4096 /* choose an efficiently fwrite'able size */ |
Definition at line 48 of file CImage_JPEG_streams.cpp.
Referenced by empty_output_buffer(), init_destination(), and term_destination().
#define XMD_H |
Definition at line 29 of file CImage_JPEG_streams.cpp.
using mrpt_dest_ptr = mrpt_destination_mgr* |
Definition at line 46 of file CImage_JPEG_streams.cpp.
using my_src_ptr = my_source_mgr* |
Definition at line 161 of file CImage_JPEG_streams.cpp.
empty_output_buffer | ( | j_compress_ptr | cinfo | ) |
Definition at line 94 of file CImage_JPEG_streams.cpp.
References OUTPUT_BUF_SIZE.
Referenced by jpeg_stdio_dest().
fill_input_buffer | ( | j_decompress_ptr | cinfo | ) |
Definition at line 216 of file CImage_JPEG_streams.cpp.
References INPUT_BUF_SIZE, JPEG_EOI, and THROW_EXCEPTION.
Referenced by jpeg_stdio_src(), and skip_input_data().
init_destination | ( | j_compress_ptr | cinfo | ) |
Definition at line 56 of file CImage_JPEG_streams.cpp.
References mrpt_destination_mgr::buffer, JPOOL_IMAGE, and OUTPUT_BUF_SIZE.
Referenced by jpeg_stdio_dest().
init_source | ( | j_decompress_ptr | cinfo | ) |
Definition at line 171 of file CImage_JPEG_streams.cpp.
Referenced by jpeg_stdio_src().
jpeg_stdio_dest | ( | j_compress_ptr | cinfo, |
CStream * | out | ||
) |
Definition at line 126 of file CImage_JPEG_streams.cpp.
References empty_output_buffer(), init_destination(), JPOOL_PERMANENT, out, 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 309 of file CImage_JPEG_streams.cpp.
References my_source_mgr::buffer, fill_input_buffer(), my_source_mgr::in, init_source(), INPUT_BUF_SIZE, JPOOL_PERMANENT, mrpt_jpeg_source_mgr, my_source_mgr::pub, 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 256 of file CImage_JPEG_streams.cpp.
References fill_input_buffer().
Referenced by jpeg_stdio_src().
term_destination | ( | j_compress_ptr | cinfo | ) |
Definition at line 116 of file CImage_JPEG_streams.cpp.
References OUTPUT_BUF_SIZE.
Referenced by jpeg_stdio_dest().
term_source | ( | [[maybe_unused] ] j_decompress_ptr | cinfo | ) |
Definition at line 297 of file CImage_JPEG_streams.cpp.
Referenced by jpeg_stdio_src().
Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020 |