OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossim/imaging/ossimJpegMemDest.h>
#include <cstdlib>
#include <cstdio>
#include <csetjmp>
#include <ostream>
#include <jpeglib.h>
Go to the source code of this file.
Classes | |
struct | cpp_dest_mgr |
for jmp_buf More... | |
Macros | |
#define | OUTPUT_BUF_SIZE 4096 /* choose an efficiently fwrite'able size */ |
Functions | |
void | init_destination (j_compress_ptr cinfo) |
boolean | empty_output_buffer (j_compress_ptr cinfo) |
void | term_destination (j_compress_ptr cinfo) |
void | jpeg_cpp_stream_dest (jpeg_compress_struct *cinfo, std::ostream &stream) |
Method which uses memory instead of a FILE* to write to. More... | |
#define OUTPUT_BUF_SIZE 4096 /* choose an efficiently fwrite'able size */ |
Definition at line 29 of file ossimJpegMemDest.cpp.
Referenced by empty_output_buffer(), init_destination(), and term_destination().
boolean empty_output_buffer | ( | j_compress_ptr | cinfo | ) |
Definition at line 43 of file ossimJpegMemDest.cpp.
References cpp_dest_mgr::buffer, OUTPUT_BUF_SIZE, cpp_dest_mgr::pub, cpp_dest_mgr::stream, and TRUE.
Referenced by jpeg_cpp_stream_dest().
void init_destination | ( | j_compress_ptr | cinfo | ) |
Definition at line 31 of file ossimJpegMemDest.cpp.
References cpp_dest_mgr::buffer, OUTPUT_BUF_SIZE, and cpp_dest_mgr::pub.
Referenced by jpeg_cpp_stream_dest().
void jpeg_cpp_stream_dest | ( | jpeg_compress_struct * | cinfo, |
std::ostream & | stream | ||
) |
Method which uses memory instead of a FILE* to write to.
Definition at line 69 of file ossimJpegMemDest.cpp.
References empty_output_buffer(), init_destination(), cpp_dest_mgr::pub, cpp_dest_mgr::stream, and term_destination().
Referenced by ossimJpegCodec::encode(), and ossimPdfWriter::writeJpegTile().
void term_destination | ( | j_compress_ptr | cinfo | ) |
Definition at line 55 of file ossimJpegMemDest.cpp.
References cpp_dest_mgr::buffer, if(), OUTPUT_BUF_SIZE, cpp_dest_mgr::pub, and cpp_dest_mgr::stream.
Referenced by jpeg_cpp_stream_dest().