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/f263/obj_f263decoder.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/f263/obj_f263decoder.h')
-rw-r--r-- | Src/f263/obj_f263decoder.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Src/f263/obj_f263decoder.h b/Src/f263/obj_f263decoder.h new file mode 100644 index 00000000..e2e6c5b5 --- /dev/null +++ b/Src/f263/obj_f263decoder.h @@ -0,0 +1,37 @@ +#ifndef F263_OBJ_F263DECODER_H +#define F263_OBJ_F263DECODER_H + +#include <bfc/dispatch.h> +#include <bfc/platform/types.h> +struct YV12_PLANES; +class obj_f263decoder : public Dispatchable +{ +protected: + obj_f263decoder() {} + ~obj_f263decoder() {} +public: + int DecodeFrame(void *frameData, size_t frameSize, YV12_PLANES *yv12, int *width, int *height, int *keyframe); + + enum + { + DISP_DECODEFRAME = 0, + }; + enum + { + SUCCESS = 0, + FAILURE = 1, + FAILURE_TOO_MUCH_DATA = 2, + FAILURE_NO_DATA = 3, + }; +}; + +inline int obj_f263decoder::DecodeFrame(void *frameData, size_t frameSize, YV12_PLANES *yv12, int *width, int *height, int *keyframe) +{ + return _call(DISP_DECODEFRAME, (int)FAILURE, frameData, frameSize, yv12, width, height, keyframe); +} + +// {496FA082-39F0-424e-9B25-1B234262796D} +static const GUID obj_f263decoderGUID = +{ 0x496fa082, 0x39f0, 0x424e, { 0x9b, 0x25, 0x1b, 0x23, 0x42, 0x62, 0x79, 0x6d } }; + +#endif
\ No newline at end of file |