aboutsummaryrefslogtreecommitdiff
path: root/Src/jpeg/loader_jpg.h
diff options
context:
space:
mode:
authorJean-Francois Mauguit <jfmauguit@mac.com>2024-09-24 09:03:25 -0400
committerGitHub <noreply@github.com>2024-09-24 09:03:25 -0400
commitbab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/jpeg/loader_jpg.h
parent4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff)
parent20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff)
downloadwinamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/jpeg/loader_jpg.h')
-rw-r--r--Src/jpeg/loader_jpg.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/Src/jpeg/loader_jpg.h b/Src/jpeg/loader_jpg.h
new file mode 100644
index 00000000..fe39192f
--- /dev/null
+++ b/Src/jpeg/loader_jpg.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#include <api/service/svcs/svc_imgload.h>
+
+// {AE04FB30-53F5-4032-BD29-032B87EC3404}
+static const GUID JPEGguid =
+{ 0xae04fb30, 0x53f5, 0x4032, { 0xbd, 0x29, 0x3, 0x2b, 0x87, 0xec, 0x34, 0x04 } };
+
+
+class JpgLoad : public svc_imageLoader
+{
+public:
+ static const char *getServiceName() { return "JPEG loader"; }
+
+ static GUID getServiceGuid() { return JPEGguid; }
+ int isMine(const wchar_t *filename);
+ const wchar_t *mimeType();
+ int getHeaderSize();
+ int testData(const void *data, int datalen);
+ ARGB32 *loadImage(const void *data, int datalen, int *w, int *h, ifc_xmlreaderparams *params=NULL);
+protected:
+ RECVS_DISPATCH;
+};