LibreOffice Module vcl (master)  1
Classes | Functions
jpegc.cxx File Reference
#include <sal/config.h>
#include <sal/log.hxx>
#include <o3tl/safeint.hxx>
#include <stdio.h>
#include <setjmp.h>
#include <jpeglib.h>
#include <com/sun/star/task/XStatusIndicator.hpp>
#include "transupp.h"
#include "jpeg.h"
#include "JpegReader.hxx"
#include "JpegWriter.hxx"
#include <memory>
#include <unotools/configmgr.hxx>
#include <vcl/graphicfilter.hxx>
Include dependency graph for jpegc.cxx:

Go to the source code of this file.

Classes

struct  ErrorManagerStruct
 
class  JpegDecompressOwner
 
class  JpegCompressOwner
 
struct  JpegStuff
 

Functions

static void errorExit (j_common_ptr cinfo)
 
static void outputMessage (j_common_ptr cinfo)
 
static int GetWarningLimit ()
 
static void emitMessage (j_common_ptr cinfo, int msg_level)
 
static void ReadJPEG (JpegStuff &rContext, JPEGReader *pJPEGReader, void *pInputStream, long *pLines, Size const &previewSize, GraphicFilterImportFlags nImportFlags, BitmapScopedWriteAccess *ppAccess)
 
void ReadJPEG (JPEGReader *pJPEGReader, void *pInputStream, long *pLines, Size const &previewSize, GraphicFilterImportFlags nImportFlags, BitmapScopedWriteAccess *ppAccess)
 
bool WriteJPEG (JPEGWriter *pJPEGWriter, void *pOutputStream, long nWidth, long nHeight, basegfx::B2DSize const &rPPI, bool bGreys, long nQualityPercent, long aChromaSubsampling, css::uno::Reference< css::task::XStatusIndicator > const &status)
 
void Transform (void *pInputStream, void *pOutputStream, long nAngle)
 

Function Documentation

static void emitMessage ( j_common_ptr  cinfo,
int  msg_level 
)
static

Definition at line 83 of file jpegc.cxx.

References GetWarningLimit().

Referenced by ReadJPEG().

static void errorExit ( j_common_ptr  cinfo)
static

Definition at line 58 of file jpegc.cxx.

References SAL_WARN, and ErrorManagerStruct::setjmp_buffer.

Referenced by ReadJPEG(), Transform(), and WriteJPEG().

static int GetWarningLimit ( )
static

Definition at line 76 of file jpegc.cxx.

References utl::ConfigManager::IsFuzzing().

Referenced by emitMessage().

static void outputMessage ( j_common_ptr  cinfo)
static

Definition at line 67 of file jpegc.cxx.

References SAL_WARN.

Referenced by ReadJPEG(), Transform(), and WriteJPEG().

static void ReadJPEG ( JpegStuff rContext,
JPEGReader pJPEGReader,
void pInputStream,
long *  pLines,
Size const &  previewSize,
GraphicFilterImportFlags  nImportFlags,
BitmapScopedWriteAccess ppAccess 
)
static
void ReadJPEG ( JPEGReader pJPEGReader,
void pInputStream,
long *  pLines,
Size const &  previewSize,
GraphicFilterImportFlags  nImportFlags,
BitmapScopedWriteAccess ppAccess 
)

Definition at line 350 of file jpegc.cxx.

References ReadJPEG().

Referenced by JPEGReader::Read().

void Transform ( void pInputStream,
void pOutputStream,
long  nAngle 
)
bool WriteJPEG ( JPEGWriter pJPEGWriter,
void pOutputStream,
long  nWidth,
long  nHeight,
basegfx::B2DSize const &  rPPI,
bool  bGreys,
long  nQualityPercent,
long  aChromaSubsampling,
css::uno::Reference< css::task::XStatusIndicator > const &  status 
)