Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cVideoFSDecomp Class Reference

#include <cVideoFS.h>

Inheritance diagram for GrayLib::cVideoFSDecomp:
GrayLib::IVideoDecompress GrayLib::cVideoFS

Public Member Functions

virtual HRESULT DecompStart (const cSurfaceBitmapInfo *pbiInp, cSurfaceInfo *pFrameInfo) override
 
virtual HRESULT DecompFrame (const void *pCompData, size_t nSizeComp, cSurfaceBase &frame) override
 
- Public Member Functions inherited from GrayLib::IVideoDecompress
virtual ~IVideoDecompress ()
 
virtual void DecompEnd ()
 

Additional Inherited Members

- Public Attributes inherited from GrayLib::cVideoFS
cWinSize m_BlockSize
 Preconfigured size of the dirty block in pixels. (arbitrary 16..256, multiple of 16) More...
 
cWinSize m_FrameSize
 total size in pixels in Frame. More...
 
cWinSize m_Blocks
 Count of blocks = m_FrameSize / m_BlockSize. More...
 
UINT m_nFrameNum
 frame number in video stream so far. More...
 
cArrayVal< cColor888m_BlockTmp
 space to hold a block for (de)compression. m_BlockSize More...
 
- Static Public Attributes inherited from GrayLib::cVideoFS
static const int k_BLOCK_DEF = 32
 
static const FOURCC k_Form = ((DWORD)(BYTE)( 'F' ) | ((DWORD)(BYTE)( 'S' ) << 8) | ((DWORD)(BYTE)( 'V' ) << 16) | ((DWORD)(BYTE)( '1' ) << 24 ))
 
- Protected Member Functions inherited from GrayLib::cVideoFS
 cVideoFS (int nBlockX=k_BLOCK_DEF, int nBlockY=k_BLOCK_DEF)
 
 ~cVideoFS ()
 
void UpdateBlockParams ()
 
BYTE * BuildCompFrameHeader (BYTE *pComp) const
 
bool isReady () const noexcept
 
int get_BlocksTotal () const noexcept
 
void GetBlockRect (int col, int row, cRectI &rect) const noexcept
 
 UNITTEST_FRIEND (cVideoFS)
 

Detailed Description

the Adobe Flash 'screenshare' decompresser. FOURCC(fsv1) IVideoDecompress

Member Function Documentation

◆ DecompFrame()

HRESULT GrayLib::cVideoFSDecomp::DecompFrame ( const void *  pCompData,
size_t  nSizeComp,
cSurfaceBase frame 
)
overridevirtual

◆ DecompStart()

HRESULT GrayLib::cVideoFSDecomp::DecompStart ( const cSurfaceBitmapInfo pbiInp,
cSurfaceInfo pFrameInfo 
)
overridevirtual

IVideoDecompress Must call this again if the image size changes or the block size changes.

Returns
pFrameInfo

Implements GrayLib::IVideoDecompress.


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