From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/bmp/BMPLoader.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Src/bmp/BMPLoader.h (limited to 'Src/bmp/BMPLoader.h') diff --git a/Src/bmp/BMPLoader.h b/Src/bmp/BMPLoader.h new file mode 100644 index 00000000..60046eb2 --- /dev/null +++ b/Src/bmp/BMPLoader.h @@ -0,0 +1,23 @@ +#ifndef NULLSOFT_PNG_PNGLOADER_H +#define NULLSOFT_PNG_PNGLOADER_H + +#include + +class ifc_xmlreaderparams; + +class BMPLoader : public svc_imageLoader +{ +public: + // service + static const char *getServiceName() { return "BMP loader"; } + + virtual int isMine(const wchar_t *filename); + virtual const wchar_t *mimeType(); + virtual int getHeaderSize(); + virtual int testData(const void *data, int datalen); + virtual ARGB32 *loadImage(const void *data, int datalen, int *w, int *h, ifc_xmlreaderparams *params=NULL); + +protected: + RECVS_DISPATCH; +}; +#endif -- cgit