LibreOffice Module vcl (master) 1
|
#include <sal/config.h>
#include <com/sun/star/uno/Reference.hxx>
#include <basegfx/vector/b2dsize.hxx>
#include <bitmap/BitmapWriteAccess.hxx>
#include <jpeglib.h>
Go to the source code of this file.
Classes | |
struct | SourceManagerStruct |
Namespaces | |
namespace | com |
namespace | com::sun |
namespace | com::sun::star |
namespace | com::sun::star::task |
Functions | |
void | jpeg_svstream_src (j_decompress_ptr cinfo, void *infile) |
void | jpeg_svstream_dest (j_compress_ptr cinfo, void *outfile) |
bool | WriteJPEG (JPEGWriter *pJPEGWriter, void *pOutputStream, tools::Long nWidth, tools::Long nHeight, basegfx::B2DSize const &aPPI, bool bGreyScale, tools::Long nQualityPercent, tools::Long aChromaSubsampling, css::uno::Reference< css::task::XStatusIndicator > const &status) |
void | ReadJPEG (JPEGReader *pJPEGReader, void *pInputStream, tools::Long *pLines, GraphicFilterImportFlags nImportFlags, BitmapScopedWriteAccess *ppAccess) |
void | Transform (void *pInputStream, void *pOutputStream, Degree10 nAngle) |
void jpeg_svstream_dest | ( | j_compress_ptr | cinfo, |
void * | outfile | ||
) |
Definition at line 92 of file JpegWriter.cxx.
References empty_output_buffer(), init_destination(), stream, and term_destination().
Referenced by Transform(), and WriteJPEG().
void jpeg_svstream_src | ( | j_decompress_ptr | cinfo, |
void * | infile | ||
) |
Definition at line 139 of file JpegReader.cxx.
References SourceManagerStruct::buffer, BUFFER_SIZE, fill_input_buffer(), init_source(), SourceManagerStruct::pub, skip_input_data(), stream, SourceManagerStruct::stream, and term_source().
Referenced by ReadJPEG(), and Transform().
void ReadJPEG | ( | JPEGReader * | pJPEGReader, |
void * | pInputStream, | ||
tools::Long * | pLines, | ||
GraphicFilterImportFlags | nImportFlags, | ||
BitmapScopedWriteAccess * | ppAccess | ||
) |
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 & | aPPI, | ||
bool | bGreyScale, | ||
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().