LibreOffice Module vcl (master) 1
|
#include <JpegReader.hxx>
Public Member Functions | |
JPEGReader (SvStream &rStream, GraphicFilterImportFlags nImportFlags) | |
virtual | ~JPEGReader () override |
ReadState | Read (Graphic &rGraphic, GraphicFilterImportFlags nImportFlags, BitmapScopedWriteAccess *ppAccess) |
bool | CreateBitmap (JPEGCreateBitmapParam const ¶m) |
Bitmap & | GetBitmap () |
Public Member Functions inherited from GraphicReader | |
virtual | ~GraphicReader () |
const OUString & | GetUpperFilterName () const |
Private Member Functions | |
Graphic | CreateIntermediateGraphic (tools::Long nLines) |
Private Attributes | |
SvStream & | mrStream |
std::optional< Bitmap > | mpBitmap |
std::optional< AlphaMask > | mpIncompleteAlpha |
tools::Long | mnLastPos |
tools::Long | mnLastLines |
bool | mbSetLogSize |
Additional Inherited Members | |
Protected Member Functions inherited from GraphicReader | |
GraphicReader () | |
Protected Attributes inherited from GraphicReader | |
OUString | maUpperName |
Definition at line 48 of file JpegReader.hxx.
JPEGReader::JPEGReader | ( | SvStream & | rStream, |
GraphicFilterImportFlags | nImportFlags | ||
) |
Definition at line 172 of file JpegReader.cxx.
References GraphicReader::maUpperName, mpBitmap, mpIncompleteAlpha, SetLogsizeForJpeg, and UseExistingBitmap.
|
overridevirtual |
Definition at line 187 of file JpegReader.cxx.
bool JPEGReader::CreateBitmap | ( | JPEGCreateBitmapParam const & | param | ) |
Definition at line 191 of file JpegReader.cxx.
References JPEGCreateBitmapParam::bGray, JPEGCreateBitmapParam::density_unit, Size::Height(), OutputDevice::LogicToLogic(), mbSetLogSize, mpBitmap, n, vcl::N24_BPP, vcl::N8_BPP, JPEGCreateBitmapParam::nHeight, JPEGCreateBitmapParam::nWidth, SAL_MAX_INT32, Size::Width(), JPEGCreateBitmapParam::X_density, and JPEGCreateBitmapParam::Y_density.
Referenced by ReadJPEG().
|
private |
Definition at line 245 of file JpegReader.cxx.
References COL_ALPHA_OPAQUE(), Size::Height(), mnLastLines, mpBitmap, and mpIncompleteAlpha.
Referenced by Read().
|
inline |
ReadState JPEGReader::Read | ( | Graphic & | rGraphic, |
GraphicFilterImportFlags | nImportFlags, | ||
BitmapScopedWriteAccess * | ppAccess | ||
) |
Definition at line 285 of file JpegReader.cxx.
References CreateIntermediateGraphic(), ERRCODE_IO_PENDING, SvStream::GetError(), JPEGREAD_ERROR, JPEGREAD_NEED_MORE, JPEGREAD_OK, mnLastPos, mpBitmap, mrStream, ReadJPEG(), SvStream::ResetError(), SvStream::Seek(), and UseExistingBitmap.
Referenced by ImportJPEG().
|
private |
Definition at line 56 of file JpegReader.hxx.
Referenced by CreateBitmap().
|
private |
Definition at line 55 of file JpegReader.hxx.
Referenced by CreateIntermediateGraphic().
|
private |
Definition at line 54 of file JpegReader.hxx.
Referenced by Read().
|
private |
Definition at line 51 of file JpegReader.hxx.
Referenced by CreateBitmap(), CreateIntermediateGraphic(), GetBitmap(), JPEGReader(), and Read().
|
private |
Definition at line 52 of file JpegReader.hxx.
Referenced by CreateIntermediateGraphic(), and JPEGReader().
|
private |
Definition at line 50 of file JpegReader.hxx.
Referenced by Read().