diff options
| author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
| commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
| tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/albumart/AlbumArt.h | |
| parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
| parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
| download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz | |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/albumart/AlbumArt.h')
| -rw-r--r-- | Src/albumart/AlbumArt.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Src/albumart/AlbumArt.h b/Src/albumart/AlbumArt.h new file mode 100644 index 00000000..68e8ab9d --- /dev/null +++ b/Src/albumart/AlbumArt.h @@ -0,0 +1,26 @@ +#ifndef NULLSOFT_WINAMP_ALBUMART_H +#define NULLSOFT_WINAMP_ALBUMART_H + +#include "../Agave/AlbumArt/api_albumart.h" + +class AlbumArt : public api_albumart +{ +public: + static const char *getServiceName() { return "Album Art API"; } + static const GUID getServiceGuid() { return albumArtGUID; } + +public: + int GetAlbumArt(const wchar_t *filename, const wchar_t *type, int *w, int *h, ARGB32 **bits); + int GetAlbumArtData(const wchar_t *filename, const wchar_t *type, void **bits, size_t *len, wchar_t **mimeType); + int GetAlbumArt_NoAMG(const wchar_t *filename, const wchar_t *type, int *w, int *h, ARGB32 **bits); + int GetAlbumArtOrigin(const wchar_t *filename, const wchar_t *type, wchar_t **mimeType); + + int GetAlbumArtTypes(const wchar_t *filename, wchar_t **types); + int GetValidAlbumArtTypes(const wchar_t *filename, wchar_t **type); + int SetAlbumArt(const wchar_t *filename, const wchar_t *type, int w, int h, const void *bits, size_t len, const wchar_t *mimeType); + int DeleteAlbumArt(const wchar_t *filename, const wchar_t *type); + int CopyAlbumArt(const wchar_t *sourceFilename, const wchar_t *destinationFilename); +protected: + RECVS_DISPATCH; +}; +#endif
\ No newline at end of file |
