|
| | cImageBMP () noexcept |
| |
| | cImageBMP (const cSurfaceBitmapInfo *pBMI) |
| |
| | cImageBMP (const FILECHAR_t *pszFileNameBMP) |
| |
| virtual | ~cImageBMP () |
| |
| virtual void | SetEmpty () override |
| |
| virtual bool | isValidImage () const noexcept override |
| |
| WORD | get_BitsPerPixel (void) const |
| |
| size_t | get_ImageSize (void) const |
| |
| cSurfaceBitmapInfo * | get_BMI () const |
| |
| size_t | get_HeaderSize (void) const |
| |
| size_t | get_TotalSize (void) const |
| |
| WORD | get_NumColors (void) const |
| |
| size_t | get_ColorSize (void) const |
| |
| tagRGBQUAD * | get_PaletteColors () const |
| |
| HRESULT | CreateSurface (const cSurfaceBitmapInfo *pBMI) |
| |
| HRESULT | CreateSurfaceBC (const cSurfaceInfo &rInfo) |
| |
| HRESULT | CreateSurfaceBC (PIXELS_t x, PIXELS_t y, BIT_ENUM_t iBitsPerPixel, int nColorQtyUsed=0) |
| |
| HRESULT | ReadBMP (cStreamInput &file, bool bHeader=true, bool bData=true) |
| |
| HRESULT | WriteBMP (cStreamOutput *pFile, bool bHeader=true) const |
| |
| virtual HRESULT | ReadStream (cStreamInput &strIn) override |
| |
| virtual HRESULT | WriteStream (cStreamOutput *pFile) const override |
| |
| virtual HRESULT | SetCopySurface (const cSurfaceBase &Surf) override |
| |
| | UNITTEST2_PREDEF (cImageBMP) |
| |
| | cImageBase () noexcept |
| |
| virtual | ~cImageBase () |
| |
| virtual HRESULT | LoadFile (const FILECHAR_t *pszFileName) |
| |
| virtual HRESULT | SaveFile (const FILECHAR_t *pszFileName) const |
| |
| | cSurfaceBase () noexcept |
| |
| | cSurfaceBase (void *pPixelData, const cSurfaceInfo &rInfo) |
| |
| | cSurfaceBase (void *pPixelData, PIXELS_t cx, PIXELS_t cy, size_t uPitchBytes, SURF_FORM_TYPE ePixelFormat) |
| |
| virtual | ~cSurfaceBase () |
| |
| HRESULT | SaveRaw (cStreamOutput &file) |
| |
| HRESULT | SaveRaw (const FILECHAR_t *pszFilename) |
| |
| bool | isValidCheck () const noexcept |
| |
| const cSurfaceInfo & | get_Info () const noexcept |
| |
| void | put_Info (const cSurfaceInfo &rInfo) |
| |
| size_t | get_PitchBytes () const noexcept |
| |
| PIXELS_t | get_Width () const noexcept |
| |
| PIXELS_t | get_Height () const noexcept |
| |
| bool | isTopDown () const noexcept |
| |
| SURF_FORM_TYPE | get_PixelFormat () const noexcept |
| |
| bool | isValidPixelData () const noexcept |
| | basic attributes. More...
|
| |
| void * | get_PixelData () const noexcept |
| |
| BYTE * | get_PixelBytes () const noexcept |
| |
| void | put_PixelData (void *pPixelData) noexcept |
| |
| void * | GetLinePtrRaw (PIXELS_t y) const noexcept |
| |
| BYTE * | GetLinePtrByte (PIXELS_t y) const noexcept |
| |
| void * | GetLinePtr (PIXELS_t y) const noexcept |
| |
| void * | GetNextLine (const void *pLinePtr) const noexcept |
| |
| bool | IsValidPixPtr (const void *p) const noexcept |
| |
| BYTE * | GetPixPtr (const void *pvLine, PIXELS_t x, size_t sizePixel) const noexcept |
| |
| BYTE * | GetPixPtr (PIXELS_t x, PIXELS_t y, size_t sizePixel) const noexcept |
| |
| COLOR16_t * | GetPixPtr16 (PIXELS_t x, PIXELS_t y) const noexcept |
| |
| BYTE * | GetPixPtr (PIXELS_t x, PIXELS_t y) const noexcept |
| |
| bool | Lock () |
| |
| void | Unlock () |
| |
| bool | GetPixColor1 (const void *pvLine, PIXELS_t x) const |
| |
| void | SetPixColor1 (void *pvLine, PIXELS_t x, bool b) |
| |
| BYTE | GetPixColor8 (const void *pvLine, PIXELS_t x) const noexcept |
| |
| void | SetPixColor8 (void *pvLine, PIXELS_t x, BYTE bColor) noexcept |
| |
| COLOR16_t | GetPixColor16 (const void *pvLine, PIXELS_t x) const noexcept |
| |
| void | SetPixColor16 (void *pvLine, PIXELS_t x, COLOR16_t wColor) noexcept |
| |
| COLOR16_t | GetPixColor16G (const void *pvLine, PIXELS_t x) const |
| |
| COLOR16_t | GetPixColor16G (PIXELS_t x, PIXELS_t y) const |
| |
| void | SetPixColor16G (void *pvLine, PIXELS_t x, COLOR16_t wVal) |
| |
| void | SetPixColor16G (PIXELS_t x, PIXELS_t y, COLOR16_t wVal) |
| |
| COLORREF | GetPixColor24g (const void *pvLine, PIXELS_t x) const noexcept |
| |
| D3DCOLOR | GetPixColor24d (const void *pvLine, PIXELS_t x) const noexcept |
| |
| void | SetPixColor24g (void *pvLine, PIXELS_t x, COLORREF dwColor) noexcept |
| |
| void | SetPixColor24d (void *pvLine, PIXELS_t x, D3DCOLOR dwColor) noexcept |
| |
| COLORREF | GetPixColor32 (const void *pvLine, PIXELS_t x) const noexcept |
| |
| void | SetPixColor32 (void *pvLine, PIXELS_t x, COLORREF dwColor) noexcept |
| |
| COLORREF | GetPixColorRef (const void *pvLine, PIXELS_t x) const |
| |
| COLORREF | GetPixColorRef (PIXELS_t x, PIXELS_t y) const |
| |
| void | SetPixColorRef (void *pvLine, PIXELS_t x, COLORREF c) |
| |
| void | SetPixColorRef (PIXELS_t x, PIXELS_t y, COLORREF c) |
| |
| void | ScrollPixels (PIXELS_t cx, PIXELS_t cy) |
| |
| void | FillColor (COLORREF colorBack) |
| |
| void | SwapTopBottom () |
| |
| void | SetErase () |
| |
| virtual HRESULT | SetPixelData (const cSurfaceBase &rSurfSrc) |
| |
| void | SetCopyFrom (const cSurfaceBase &TexSrc, PIXELS_t itxs=0, PIXELS_t itys=0, bool bTextureXReverse=false, bool bTextureYReverse=false, bool bColorReverse=false) |
| |
| void | CopyTo (cSurfaceBase &TexDst, PIXELS_t itxs=0, PIXELS_t itys=0, bool bTextureXReverse=false, bool bTextureYReverse=false) const |
| |
| HRESULT | InitTestPattern () |
| |
| | UNITTEST_FRIEND (cSurfaceBase) |
| |
| | cRefBase (int iRefCount=0) noexcept |
| |
| virtual | ~cRefBase () |
| |
| int | get_RefCount () const noexcept |
| |
| HASHCODE_t | get_HashCode () const noexcept |
| |
| | STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept |
| |
| virtual void | onFinalRelease () |
| |
| bool | isValidObj () const noexcept |
| |
| | STDMETHOD_ (ULONG, AddRef)(void) override |
| |
| | STDMETHOD_ (ULONG, Release)(void) override |
| |
| STDMETHOD() | QueryInterface (const IID &riid, void __RPC_FAR *__RPC_FAR *ppvObject) override |
| |
| void | IncRefCount () |
| |
| void | DecRefCount () |
| |
| bool | isStaticConstruct () const noexcept |
| |
| void | StaticConstruct () |
| |
| void | StaticDestruct () |
| |
| bool | isDestructing () noexcept |
| |
| void | SetDestructing () |
| |
|
| static bool | GetPixColor1P (const void *pvLine, PIXELS_t x) noexcept |
| |
| static void | SetPixColor1P (void *pvLine, PIXELS_t x, bool b) noexcept |
| |
| cSurfaceBase & | operator= (const cSurfaceBase &rSurf) |
| |
| bool | InitSurfaceInfo (const cSurfaceInfo &rInfo) |
| |
| bool | InitSurfaceAlign (PIXELS_t cx, PIXELS_t cy, size_t nAlignBytes, SURF_FORM_TYPE ePixelFormat) |
| |
| bool | InitSurfacePitch (PIXELS_t cx, PIXELS_t cy, size_t uPitchBytes, SURF_FORM_TYPE ePixelFormat) |
| |
| | cMemBlock () noexcept |
| |
| | cMemBlock (const void *pData, size_t nSize) noexcept |
| |
| | cMemBlock (const cMemBlock &block) noexcept |
| |
| | cMemBlock (const cMemBlock *pBlock) noexcept |
| |
| size_t | get_DataSize () const noexcept |
| |
| void * | get_Data () const noexcept |
| |
| BYTE * | get_DataBytes () const noexcept |
| |
| char * | get_DataA () const noexcept |
| |
| | operator const BYTE * () const noexcept |
| |
| bool | isValidPtr () const noexcept |
| |
| bool | IsValidIndex (size_t i) const noexcept |
| |
| bool | IsValidIndex2 (size_t i) const noexcept |
| |
| bool | IsValidPtr (const void *p) const noexcept |
| |
| bool | IsValidPtr2 (const void *p) const noexcept |
| |
| bool | IsZeros () const noexcept |
| |
| bool | IsEqualData (const void *pData, size_t nSize) const noexcept |
| |
| bool | IsEqualData (const cMemBlock *pData) const noexcept |
| |
| bool | IsEqualData (const cMemBlock &data) const noexcept |
| |
| BYTE * | GetOffset (size_t nOffset) const |
| |
| const void * | get_DataEnd () const noexcept |
| |
| void | put_DataPtr (void *pStart) noexcept |
| |
| void | put_Size (size_t nSize) noexcept |
| |
| void | SetBlock (void *pData, size_t nSize) noexcept |
| |
| void | SetEmptyBlock () noexcept |
| |
| void | InitZeros () noexcept |
| |
| StrLen_t | ConvertToString (char *pszDst, StrLen_t iDstSizeMax) const |
| |
| static COMPARE_t __stdcall | Compare (const void *pData1, size_t iLen1, const void *pData2, size_t iLen2) |
| |
| cSurfaceInfo | m_Info |
| | the image size, pitch and pixel format for m_pPixelData below. More...
|
| |
| size_t | m_nSize |
| | size_t of m_pData in bytes. May be determined at runtime. More...
|
| |
| void * | m_pData |
| |
a .BMP file read in as a DIB (in system memory) MIME_EXT_bmp DIB has BITMAPINFOHEADER, may have palette info, and pixel data. Rows are always at least 4 bytes aligned ! (pitch/stride) cSurfaceBase has m_pPixelData (we Alloc this) http://en.wikipedia.org/wiki/BMP_file_format