1
0

loader_jpg.h 646 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <api/service/svcs/svc_imgload.h>
  3. // {AE04FB30-53F5-4032-BD29-032B87EC3404}
  4. static const GUID JPEGguid =
  5. { 0xae04fb30, 0x53f5, 0x4032, { 0xbd, 0x29, 0x3, 0x2b, 0x87, 0xec, 0x34, 0x04 } };
  6. class JpgLoad : public svc_imageLoader
  7. {
  8. public:
  9. static const char *getServiceName() { return "JPEG loader"; }
  10. static GUID getServiceGuid() { return JPEGguid; }
  11. int isMine(const wchar_t *filename);
  12. const wchar_t *mimeType();
  13. int getHeaderSize();
  14. int testData(const void *data, int datalen);
  15. ARGB32 *loadImage(const void *data, int datalen, int *w, int *h, ifc_xmlreaderparams *params=NULL);
  16. protected:
  17. RECVS_DISPATCH;
  18. };