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/replicant/mp4/svc_mp4decoder.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/replicant/mp4/svc_mp4decoder.h')
-rw-r--r-- | Src/replicant/mp4/svc_mp4decoder.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Src/replicant/mp4/svc_mp4decoder.h b/Src/replicant/mp4/svc_mp4decoder.h new file mode 100644 index 00000000..d8e242ad --- /dev/null +++ b/Src/replicant/mp4/svc_mp4decoder.h @@ -0,0 +1,27 @@ +#pragma once +#include "foundation/dispatch.h" +#include "ifc_mp4file.h" + +class ifc_mp4audiodecoder; +class ifc_mp4videodecoder; + +// {39A53910-CCFE-465D-A46C-F0B95C7DD257} +static const GUID mp4_decoder_service_type_guid = +{ 0x39a53910, 0xccfe, 0x465d, { 0xa4, 0x6c, 0xf0, 0xb9, 0x5c, 0x7d, 0xd2, 0x57 } }; + +class svc_mp4decoder : public Wasabi2::Dispatchable +{ +protected: + svc_mp4decoder() : Dispatchable(DISPATCHABLE_VERSION) {} + ~svc_mp4decoder() {} +public: + static GUID GetServiceType() { return mp4_decoder_service_type_guid; } + int CreateAudioDecoder(ifc_mp4file *mp4_file, ifc_mp4file::TrackID mp4_track, ifc_mp4audiodecoder **decoder) { return MP4DecoderService_CreateAudioDecoder(mp4_file, mp4_track, decoder); } + + enum + { + DISPATCHABLE_VERSION=0, + }; +private: + virtual int WASABICALL MP4DecoderService_CreateAudioDecoder(ifc_mp4file *mp4_file, ifc_mp4file::TrackID mp4_track, ifc_mp4audiodecoder **decoder)=0; +}; |