LibreOffice Module vcl (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
GIFReader Class Reference
Inheritance diagram for GIFReader:
[legend]
Collaboration diagram for GIFReader:
[legend]

Public Member Functions

ReadState ReadGIF (Graphic &rGraphic)
 
bool ReadIsAnimated ()
 
Graphic GetIntermediateGraphic ()
 
 GIFReader (SvStream &rStm)
 
- Public Member Functions inherited from GraphicReader
virtual ~GraphicReader ()
 
const OUString & GetUpperFilterName () const
 
void DisablePreviewMode ()
 
void SetPreviewSize (const Size &)
 
Size GetPreviewSize () const
 

Private Member Functions

void ReadPaletteEntries (BitmapPalette *pPal, sal_uLong nCount)
 
void ClearImageExtensions ()
 
void CreateBitmaps (long nWidth, long nHeight, BitmapPalette *pPal, bool bWatchForBackgroundColor)
 
bool ReadGlobalHeader ()
 
bool ReadExtension ()
 
bool ReadLocalHeader ()
 
sal_uLong ReadNextBlock ()
 
void FillImages (const sal_uInt8 *pBytes, sal_uLong nCount)
 
void CreateNewBitmaps ()
 
bool ProcessGIF ()
 

Private Attributes

Animation aAnimation
 
sal_uInt64 nAnimationByteSize
 
sal_uInt64 nAnimationMinFileData
 
Bitmap aBmp8
 
Bitmap aBmp1
 
BitmapPalette aGPalette
 
BitmapPalette aLPalette
 
SvStreamrIStm
 
std::vector< sal_uInt8aSrcBuf
 
std::unique_ptr< GIFLZWDecompressorpDecomp
 
BitmapScopedWriteAccess pAcc8
 
BitmapScopedWriteAccess pAcc1
 
long nYAcc
 
long nLastPos
 
sal_uInt64 nMaxStreamData
 
sal_uInt32 nLogWidth100
 
sal_uInt32 nLogHeight100
 
sal_uInt16 nTimer
 
sal_uInt16 nGlobalWidth
 
sal_uInt16 nGlobalHeight
 
sal_uInt16 nImageWidth
 
sal_uInt16 nImageHeight
 
sal_uInt16 nImagePosX
 
sal_uInt16 nImagePosY
 
sal_uInt16 nImageX
 
sal_uInt16 nImageY
 
sal_uInt16 nLastImageY
 
sal_uInt16 nLastInterCount
 
sal_uInt16 nLoops
 
GIFAction eActAction
 
bool bStatus
 
bool bGCTransparent
 
bool bInterlaced
 
bool bOverreadBlock
 
bool bImGraphicReady
 
bool bGlobalPalette
 
sal_uInt8 nBackgroundColor
 
sal_uInt8 nGCTransparentIndex
 
sal_uInt8 nGCDisposalMethod
 
sal_uInt8 cTransIndex1
 
sal_uInt8 cNonTransIndex1
 

Additional Inherited Members

- Protected Member Functions inherited from GraphicReader
 GraphicReader ()
 
- Protected Attributes inherited from GraphicReader
OUString maUpperName
 

Detailed Description

Definition at line 56 of file gifread.cxx.

Constructor & Destructor Documentation

GIFReader::GIFReader ( SvStream rStm)
explicit

Definition at line 120 of file gifread.cxx.

References aSrcBuf, ClearImageExtensions(), and GraphicReader::maUpperName.

Member Function Documentation

void GIFReader::ClearImageExtensions ( )
private

Definition at line 159 of file gifread.cxx.

References bGCTransparent, nGCDisposalMethod, and nTimer.

Referenced by GIFReader(), and ProcessGIF().

void GIFReader::CreateBitmaps ( long  nWidth,
long  nHeight,
BitmapPalette pPal,
bool  bWatchForBackgroundColor 
)
private
void GIFReader::CreateNewBitmaps ( )
private
void GIFReader::FillImages ( const sal_uInt8 pBytes,
sal_uLong  nCount 
)
private
Graphic GIFReader::GetIntermediateGraphic ( )
bool GIFReader::ProcessGIF ( )
private
bool GIFReader::ReadExtension ( )
private
ReadState GIFReader::ReadGIF ( Graphic rGraphic)
bool GIFReader::ReadGlobalHeader ( )
private
bool GIFReader::ReadIsAnimated ( )
bool GIFReader::ReadLocalHeader ( )
private
sal_uLong GIFReader::ReadNextBlock ( )
private
void GIFReader::ReadPaletteEntries ( BitmapPalette pPal,
sal_uLong  nCount 
)
private

Member Data Documentation

Animation GIFReader::aAnimation
private
Bitmap GIFReader::aBmp1
private

Definition at line 62 of file gifread.cxx.

Referenced by CreateBitmaps(), CreateNewBitmaps(), and GetIntermediateGraphic().

Bitmap GIFReader::aBmp8
private

Definition at line 61 of file gifread.cxx.

Referenced by CreateBitmaps(), CreateNewBitmaps(), and GetIntermediateGraphic().

BitmapPalette GIFReader::aGPalette
private

Definition at line 63 of file gifread.cxx.

Referenced by ReadGlobalHeader(), and ReadLocalHeader().

BitmapPalette GIFReader::aLPalette
private

Definition at line 64 of file gifread.cxx.

Referenced by ReadLocalHeader().

std::vector<sal_uInt8> GIFReader::aSrcBuf
private

Definition at line 66 of file gifread.cxx.

Referenced by GIFReader(), and ReadNextBlock().

bool GIFReader::bGCTransparent
private
bool GIFReader::bGlobalPalette
private

Definition at line 93 of file gifread.cxx.

Referenced by ReadGlobalHeader(), and ReadLocalHeader().

bool GIFReader::bImGraphicReady
private

Definition at line 92 of file gifread.cxx.

Referenced by GetIntermediateGraphic(), and ProcessGIF().

bool GIFReader::bInterlaced
private

Definition at line 90 of file gifread.cxx.

Referenced by FillImages(), and ReadLocalHeader().

bool GIFReader::bOverreadBlock
private

Definition at line 91 of file gifread.cxx.

Referenced by FillImages(), ProcessGIF(), and ReadNextBlock().

bool GIFReader::bStatus
private
sal_uInt8 GIFReader::cNonTransIndex1
private

Definition at line 98 of file gifread.cxx.

Referenced by CreateBitmaps(), and FillImages().

sal_uInt8 GIFReader::cTransIndex1
private

Definition at line 97 of file gifread.cxx.

Referenced by CreateBitmaps(), and FillImages().

GIFAction GIFReader::eActAction
private

Definition at line 87 of file gifread.cxx.

Referenced by ProcessGIF(), ReadGIF(), and ReadIsAnimated().

sal_uInt64 GIFReader::nAnimationByteSize
private

Definition at line 59 of file gifread.cxx.

Referenced by CreateBitmaps(), and CreateNewBitmaps().

sal_uInt64 GIFReader::nAnimationMinFileData
private

Definition at line 60 of file gifread.cxx.

Referenced by CreateBitmaps(), and CreateNewBitmaps().

sal_uInt8 GIFReader::nBackgroundColor
private

Definition at line 94 of file gifread.cxx.

Referenced by CreateBitmaps(), and ReadGlobalHeader().

sal_uInt8 GIFReader::nGCDisposalMethod
private

Definition at line 96 of file gifread.cxx.

Referenced by ClearImageExtensions(), CreateNewBitmaps(), and ReadExtension().

sal_uInt8 GIFReader::nGCTransparentIndex
private

Definition at line 95 of file gifread.cxx.

Referenced by FillImages(), and ReadExtension().

sal_uInt16 GIFReader::nGlobalHeight
private

Definition at line 77 of file gifread.cxx.

Referenced by CreateNewBitmaps(), and ReadGlobalHeader().

sal_uInt16 GIFReader::nGlobalWidth
private

Definition at line 76 of file gifread.cxx.

Referenced by CreateNewBitmaps(), and ReadGlobalHeader().

sal_uInt16 GIFReader::nImageHeight
private

Definition at line 79 of file gifread.cxx.

Referenced by CreateNewBitmaps(), FillImages(), and ReadLocalHeader().

sal_uInt16 GIFReader::nImagePosX
private

Definition at line 80 of file gifread.cxx.

Referenced by CreateNewBitmaps(), and ReadLocalHeader().

sal_uInt16 GIFReader::nImagePosY
private

Definition at line 81 of file gifread.cxx.

Referenced by CreateNewBitmaps(), and ReadLocalHeader().

sal_uInt16 GIFReader::nImageWidth
private

Definition at line 78 of file gifread.cxx.

Referenced by CreateNewBitmaps(), FillImages(), and ReadLocalHeader().

sal_uInt16 GIFReader::nImageX
private

Definition at line 82 of file gifread.cxx.

Referenced by FillImages(), and ProcessGIF().

sal_uInt16 GIFReader::nImageY
private

Definition at line 83 of file gifread.cxx.

Referenced by FillImages(), and ProcessGIF().

sal_uInt16 GIFReader::nLastImageY
private

Definition at line 84 of file gifread.cxx.

Referenced by FillImages(), and ReadLocalHeader().

sal_uInt16 GIFReader::nLastInterCount
private

Definition at line 85 of file gifread.cxx.

Referenced by FillImages(), and ReadLocalHeader().

long GIFReader::nLastPos
private

Definition at line 71 of file gifread.cxx.

Referenced by ProcessGIF().

sal_uInt32 GIFReader::nLogHeight100
private

Definition at line 74 of file gifread.cxx.

Referenced by ReadExtension(), and ReadGIF().

sal_uInt32 GIFReader::nLogWidth100
private

Definition at line 73 of file gifread.cxx.

Referenced by ReadExtension(), and ReadGIF().

sal_uInt16 GIFReader::nLoops
private

Definition at line 86 of file gifread.cxx.

Referenced by CreateNewBitmaps(), and ReadExtension().

sal_uInt64 GIFReader::nMaxStreamData
private

Definition at line 72 of file gifread.cxx.

Referenced by CreateBitmaps().

sal_uInt16 GIFReader::nTimer
private

Definition at line 75 of file gifread.cxx.

Referenced by ClearImageExtensions(), CreateNewBitmaps(), and ReadExtension().

long GIFReader::nYAcc
private

Definition at line 70 of file gifread.cxx.

Referenced by FillImages(), and ProcessGIF().

BitmapScopedWriteAccess GIFReader::pAcc1
private

Definition at line 69 of file gifread.cxx.

Referenced by CreateBitmaps(), CreateNewBitmaps(), FillImages(), and GetIntermediateGraphic().

BitmapScopedWriteAccess GIFReader::pAcc8
private

Definition at line 68 of file gifread.cxx.

Referenced by CreateBitmaps(), CreateNewBitmaps(), FillImages(), and GetIntermediateGraphic().

std::unique_ptr<GIFLZWDecompressor> GIFReader::pDecomp
private

Definition at line 67 of file gifread.cxx.

Referenced by ProcessGIF(), and ReadNextBlock().

SvStream& GIFReader::rIStm
private

The documentation for this class was generated from the following file: