LibreOffice Module vcl (master) 1
Macros | Functions
JpegWriter.cxx File Reference
#include <sal/config.h>
#include <sal/log.hxx>
#include "jpeg.h"
#include <jpeglib.h>
#include <jerror.h>
#include "JpegWriter.hxx"
#include <vcl/BitmapReadAccess.hxx>
#include <vcl/FilterConfigItem.hxx>
#include <tools/helpers.hxx>
#include <tools/stream.hxx>
Include dependency graph for JpegWriter.cxx:

Go to the source code of this file.

Macros

#define BUFFER_SIZE   4096
 

Functions

static void init_destination (j_compress_ptr cinfo)
 
static boolean empty_output_buffer (j_compress_ptr cinfo)
 
static void term_destination (j_compress_ptr cinfo)
 
void jpeg_svstream_dest (j_compress_ptr cinfo, void *output)
 

Macro Definition Documentation

◆ BUFFER_SIZE

#define BUFFER_SIZE   4096

Definition at line 33 of file JpegWriter.cxx.

Function Documentation

◆ empty_output_buffer()

static boolean empty_output_buffer ( j_compress_ptr  cinfo)
static

Definition at line 60 of file JpegWriter.cxx.

References BUFFER_SIZE, and TRUE.

Referenced by jpeg_svstream_dest().

◆ init_destination()

static void init_destination ( j_compress_ptr  cinfo)
static

Definition at line 48 of file JpegWriter.cxx.

References BUFFER_SIZE.

Referenced by jpeg_svstream_dest().

◆ jpeg_svstream_dest()

void jpeg_svstream_dest ( j_compress_ptr  cinfo,
void *  output 
)

Definition at line 92 of file JpegWriter.cxx.

References empty_output_buffer(), init_destination(), stream, and term_destination().

Referenced by Transform(), and WriteJPEG().

◆ term_destination()

static void term_destination ( j_compress_ptr  cinfo)
static

Definition at line 75 of file JpegWriter.cxx.

References BUFFER_SIZE.

Referenced by jpeg_svstream_dest().