vmsAnimatedGIF Class Reference

#include <vmsAnimatedGIF.h>

List of all members.

Public Types

enum  GIFBlockTypes {
  BLOCK_UNKNOWN, BLOCK_APPEXT, BLOCK_COMMEXT, BLOCK_CONTROLEXT,
  BLOCK_PLAINTEXT, BLOCK_IMAGE, BLOCK_TRAILER
}
enum  ControlExtValues { GCX_PACKED_DISPOSAL, GCX_PACKED_USERINPUT, GCX_PACKED_TRANSPCOLOR }
enum  LSDPackedValues { LSD_PACKED_GLOBALCT, LSD_PACKED_CRESOLUTION, LSD_PACKED_SORT, LSD_PACKED_GLOBALCTSIZE }
enum  IDPackedValues { ID_PACKED_LOCALCT, ID_PACKED_INTERLACE, ID_PACKED_SORT, ID_PACKED_LOCALCTSIZE }

Public Member Functions

TFrameget_FrameInfo (int iIndex)
int SaveGIFFrames (LPCSTR pszFileTemplate)
BOOL Load (LPCSTR pszFile)
BOOL Load (HGLOBAL hGlobal, DWORD dwSize)
 vmsAnimatedGIF ()
virtual ~vmsAnimatedGIF ()

Protected Member Functions

BOOL WriteDataOnDisk (LPCSTR pszFile, HGLOBAL hData, DWORD dwSize)
BOOL Load ()
HGLOBAL GetNextGraphicBlock (UINT *pBlockLen, UINT *pDelay, SIZE *pBlockSize, SIZE *pBlockOffset, UINT *pDisposal)
UINT GetSubBlocksLen (UINT nStartingOffset)
int GetNextBlockLen ()
BOOL SkipNextBlock ()
GIFBlockTypes GetNextBlock ()
BOOL SkipNextGraphicBlock ()
void ResetDataPointer ()
void Free ()

Protected Attributes

std::vector< TFramem_vFramesInfo
HGLOBAL m_hGIF
BOOL m_bAutoFree
LPBYTE m_pRawData
TGIFHeaderm_pGIFHeader
TGIFLSDescriptorm_pGIFLSDescriptor
SIZE m_PictureSize
COLORREF m_clrBackground
UINT m_nDataSize
UINT m_nCurrOffset
UINT m_nGlobalCTSize

Classes

struct  TFrame
struct  TGIFAppExtension
struct  TGIFCommentExt
struct  TGIFControlExt
struct  TGIFHeader
struct  TGIFImageDescriptor
struct  TGIFLSDescriptor
struct  TGIFPlainTextExt


Detailed Description

Definition at line 17 of file vmsAnimatedGIF.h.


Member Enumeration Documentation

Enumerator:
BLOCK_UNKNOWN 
BLOCK_APPEXT 
BLOCK_COMMEXT 
BLOCK_CONTROLEXT 
BLOCK_PLAINTEXT 
BLOCK_IMAGE 
BLOCK_TRAILER 

Definition at line 34 of file vmsAnimatedGIF.h.

Enumerator:
GCX_PACKED_DISPOSAL 
GCX_PACKED_USERINPUT 
GCX_PACKED_TRANSPCOLOR 

Definition at line 45 of file vmsAnimatedGIF.h.

Enumerator:
LSD_PACKED_GLOBALCT 
LSD_PACKED_CRESOLUTION 
LSD_PACKED_SORT 
LSD_PACKED_GLOBALCTSIZE 

Definition at line 52 of file vmsAnimatedGIF.h.

Enumerator:
ID_PACKED_LOCALCT 
ID_PACKED_INTERLACE 
ID_PACKED_SORT 
ID_PACKED_LOCALCTSIZE 

Definition at line 60 of file vmsAnimatedGIF.h.


Constructor & Destructor Documentation

vmsAnimatedGIF::vmsAnimatedGIF (  ) 

vmsAnimatedGIF::~vmsAnimatedGIF (  )  [virtual]

Definition at line 27 of file vmsAnimatedGIF.cpp.

References Free().


Member Function Documentation

vmsAnimatedGIF::TFrame * vmsAnimatedGIF::get_FrameInfo ( int  iIndex  ) 

Definition at line 571 of file vmsAnimatedGIF.cpp.

References m_vFramesInfo.

Referenced by vmsImage::Load().

int vmsAnimatedGIF::SaveGIFFrames ( LPCSTR  pszFileTemplate  ) 

BOOL vmsAnimatedGIF::Load ( LPCSTR  pszFile  ) 

Definition at line 32 of file vmsAnimatedGIF.cpp.

References FALSE, GetFileSize(), Load(), LOG, m_bAutoFree, m_hGIF, m_nDataSize, nl, NULL, and TRUE.

Referenced by vmsImage::Load().

BOOL vmsAnimatedGIF::Load ( HGLOBAL  hGlobal,
DWORD  dwSize 
)

Definition at line 70 of file vmsAnimatedGIF.cpp.

References Free(), Load(), m_hGIF, and m_nDataSize.

BOOL vmsAnimatedGIF::WriteDataOnDisk ( LPCSTR  pszFile,
HGLOBAL  hData,
DWORD  dwSize 
) [protected]

Definition at line 551 of file vmsAnimatedGIF.cpp.

References b, BOOL, FALSE, and NULL.

Referenced by SaveGIFFrames().

BOOL vmsAnimatedGIF::Load (  )  [protected]

HGLOBAL vmsAnimatedGIF::GetNextGraphicBlock ( UINT pBlockLen,
UINT pDelay,
SIZE *  pBlockSize,
SIZE *  pBlockOffset,
UINT pDisposal 
) [protected]

UINT vmsAnimatedGIF::GetSubBlocksLen ( UINT  nStartingOffset  )  [protected]

Definition at line 276 of file vmsAnimatedGIF.cpp.

References m_pRawData.

Referenced by GetNextBlockLen().

int vmsAnimatedGIF::GetNextBlockLen (  )  [protected]

BOOL vmsAnimatedGIF::SkipNextBlock (  )  [protected]

vmsAnimatedGIF::GIFBlockTypes vmsAnimatedGIF::GetNextBlock (  )  [protected]

BOOL vmsAnimatedGIF::SkipNextGraphicBlock (  )  [protected]

void vmsAnimatedGIF::ResetDataPointer (  )  [protected]

Definition at line 92 of file vmsAnimatedGIF.cpp.

References m_nCurrOffset, and m_nGlobalCTSize.

Referenced by Load(), and SaveGIFFrames().

void vmsAnimatedGIF::Free ( void   )  [protected]

Definition at line 78 of file vmsAnimatedGIF.cpp.

References FALSE, m_bAutoFree, m_hGIF, m_vFramesInfo, and NULL.

Referenced by Load(), and ~vmsAnimatedGIF().


Member Data Documentation

std::vector<TFrame> vmsAnimatedGIF::m_vFramesInfo [protected]

Definition at line 152 of file vmsAnimatedGIF.h.

Referenced by Free(), get_FrameInfo(), and SaveGIFFrames().

HGLOBAL vmsAnimatedGIF::m_hGIF [protected]

Definition at line 157 of file vmsAnimatedGIF.h.

Referenced by Free(), Load(), SaveGIFFrames(), and vmsAnimatedGIF().

BOOL vmsAnimatedGIF::m_bAutoFree [protected]

Definition at line 159 of file vmsAnimatedGIF.h.

Referenced by Free(), Load(), and vmsAnimatedGIF().

LPBYTE vmsAnimatedGIF::m_pRawData [protected]

Definition at line 170 of file vmsAnimatedGIF.h.

Referenced by Load(), and vmsAnimatedGIF().

Definition at line 171 of file vmsAnimatedGIF.h.

Referenced by Load(), and vmsAnimatedGIF().

Definition at line 172 of file vmsAnimatedGIF.h.

Referenced by Load().

Definition at line 173 of file vmsAnimatedGIF.h.

Referenced by Load().

Definition at line 174 of file vmsAnimatedGIF.h.

Referenced by Load(), SkipNextBlock(), SkipNextGraphicBlock(), and vmsAnimatedGIF().


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

Generated on Sun May 25 00:21:18 2008 by  doxygen 1.5.6