From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/f263/obj_f263decoder.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Src/f263/obj_f263decoder.h (limited to 'Src/f263/obj_f263decoder.h') 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 +#include +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 -- cgit