LibreOffice Module vcl (master) 1
Functions
jpegc.cxx File Reference
#include <sal/config.h>
#include <sal/log.hxx>
#include <o3tl/float_int_conversion.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.

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, tools::Long *pLines, GraphicFilterImportFlags nImportFlags, BitmapScopedWriteAccess *ppAccess)
 
void ReadJPEG (JPEGReader *pJPEGReader, void *pInputStream, tools::Long *pLines, GraphicFilterImportFlags nImportFlags, BitmapScopedWriteAccess *ppAccess)
 
bool WriteJPEG (JPEGWriter *pJPEGWriter, void *pOutputStream, tools::Long nWidth, tools::Long nHeight, basegfx::B2DSize const &rPPI, bool bGreys, tools::Long nQualityPercent, tools::Long aChromaSubsampling, css::uno::Reference< css::task::XStatusIndicator > const &status)
 
void Transform (void *pInputStream, void *pOutputStream, Degree10 nAngle)
 

Function Documentation

◆ emitMessage()

static void emitMessage ( j_common_ptr  cinfo,
int  msg_level 
)
static

Definition at line 88 of file jpegc.cxx.

References GetWarningLimit().

Referenced by ReadJPEG().

◆ errorExit()

static void errorExit ( j_common_ptr  cinfo)
static

Definition at line 63 of file jpegc.cxx.

References SAL_WARN.

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

◆ GetWarningLimit()

static int GetWarningLimit ( )
static

Definition at line 81 of file jpegc.cxx.

References utl::ConfigManager::IsFuzzing().

Referenced by emitMessage().

◆ outputMessage()

static void outputMessage ( j_common_ptr  cinfo)
static

Definition at line 72 of file jpegc.cxx.

References SAL_WARN.

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

◆ ReadJPEG() [1/2]

void ReadJPEG ( JPEGReader pJPEGReader,
void *  pInputStream,
tools::Long pLines,
GraphicFilterImportFlags  nImportFlags,
BitmapScopedWriteAccess ppAccess 
)

Definition at line 333 of file jpegc.cxx.

References ReadJPEG().

Referenced by JPEGReader::Read().

◆ ReadJPEG() [2/2]

static void ReadJPEG ( JpegStuff &  rContext,
JPEGReader pJPEGReader,
void *  pInputStream,
tools::Long pLines,
GraphicFilterImportFlags  nImportFlags,
BitmapScopedWriteAccess ppAccess 
)
static

◆ Transform()

void Transform ( void *  pInputStream,
void *  pOutputStream,
Degree10  nAngle 
)

◆ WriteJPEG()

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