blob: d03797bc79d79ca461f6b0117cdd478118bbe0be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#ifndef NULLSOFT_WINAMP_OMIMAGELOADER_PNG_HEADER
#define NULLSOFT_WINAMP_OMIMAGELOADER_PNG_HEADER
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
#include "./ifc_imageloader.h"
class ifc_wasabihelper;
class PngLoader : public ifc_omimageloader
{
protected:
PngLoader(HINSTANCE hInstance, LPCWSTR pszName, BOOL fPremultiply);
~PngLoader();
public:
static HRESULT CreateInstance(HINSTANCE hInstance, LPCWSTR pszName, BOOL fPremultiply, ifc_omimageloader **imageLoader);
public:
size_t AddRef();
size_t Release();
int QueryInterface(GUID interface_guid, void **object);
HRESULT (LoadData)(int *widthOut, int *heightOut, void **dataOut);
HRESULT (FreeData)(void *data);
HRESULT (LoadBitmapEx)(HBITMAP *bitmapOut, BITMAPINFOHEADER *headerInfo, void **dataOut);
HRESULT (LoadBitmap)(HBITMAP *bitmapOut, int *widthOut, int *heightOut);
protected:
RECVS_DISPATCH;
typedef enum
{
flagPremultiply = 0x0001,
} Flags;
protected:
ULONG ref;
HINSTANCE instance;
LPWSTR name;
UINT flags;
};
#endif //NULLSOFT_WINAMP_OMIMAGELOADER_PNG_HEADER
|