LibreOffice Module vcl (master) 1
|
#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 <jerror.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>
Go to the source code of this file.
Macros | |
#define | LIMITSCANS 100 |
Functions | |
static void | errorExit (j_common_ptr cinfo) |
static void | outputMessage (j_common_ptr cinfo) |
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) |
|
static |
Definition at line 85 of file jpegc.cxx.
References utl::ConfigManager::IsFuzzing().
Referenced by ReadJPEG().
|
static |
Definition at line 64 of file jpegc.cxx.
References SAL_WARN.
Referenced by ReadJPEG(), Transform(), and WriteJPEG().
|
static |
Definition at line 73 of file jpegc.cxx.
References SAL_WARN.
Referenced by ReadJPEG(), Transform(), and WriteJPEG().
void ReadJPEG | ( | JPEGReader * | pJPEGReader, |
void * | pInputStream, | ||
tools::Long * | pLines, | ||
GraphicFilterImportFlags | nImportFlags, | ||
BitmapScopedWriteAccess * | ppAccess | ||
) |
|
static |
Definition at line 181 of file jpegc.cxx.
References JPEGCreateBitmapParam::bGray, o3tl::checked_multiply(), JPEGReader::CreateBitmap(), JPEGCreateBitmapParam::density_unit, emitMessage(), errorExit(), FALSE, JPEGReader::GetBitmap(), utl::ConfigManager::IsFuzzing(), jpeg_svstream_src(), N24BitTcBgr, N24BitTcRgb, N32BitTcArgb, N32BitTcBgra, N32BitTcRgba, N8BitPal, JPEGCreateBitmapParam::nHeight, SourceManagerStruct::no_data_available_failures, JPEGCreateBitmapParam::nWidth, OnlyCreateBitmap, outputMessage(), p, TRUE, UseExistingBitmap, x, JPEGCreateBitmapParam::X_density, and JPEGCreateBitmapParam::Y_density.
Referenced by ReadJPEG().
void Transform | ( | void * | pInputStream, |
void * | pOutputStream, | ||
Degree10 | nAngle | ||
) |
Definition at line 460 of file jpegc.cxx.
References jpeg_transform_info::crop, errorExit(), FALSE, jpeg_transform_info::force_grayscale, o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::get(), jcopy_markers_execute(), jcopy_markers_setup(), JCOPYOPT_ALL, jpeg_svstream_dest(), jpeg_svstream_src(), JXFORM_NONE, JXFORM_ROT_180, JXFORM_ROT_270, JXFORM_ROT_90, outputMessage(), jpeg_transform_info::perfect, jpeg_transform_info::transform, jpeg_transform_info::trim, and TRUE.
Referenced by JpegTransform::perform().
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 | ||
) |
Definition at line 367 of file jpegc.cxx.
References o3tl::convertsToAtMost(), errorExit(), FALSE, basegfx::Size2D< typename TYPE >::getHeight(), JPEGWriter::GetScanline(), basegfx::Size2D< typename TYPE >::getWidth(), jpeg_svstream_dest(), outputMessage(), SAL_WARN, and TRUE.
Referenced by JPEGWriter::Write().