mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-15 13:52:28 +00:00
23 lines
572 B
C++
23 lines
572 B
C++
#pragma once
|
|
|
|
#include "decoder.h"
|
|
|
|
#include <SLVideo.h>
|
|
|
|
class SLVideoDecoder : public IVideoDecoder
|
|
{
|
|
public:
|
|
SLVideoDecoder(bool testOnly);
|
|
virtual ~SLVideoDecoder();
|
|
virtual bool initialize(PDECODER_PARAMETERS params);
|
|
virtual bool isHardwareAccelerated();
|
|
virtual int getDecoderCapabilities();
|
|
virtual int submitDecodeUnit(PDECODE_UNIT du);
|
|
|
|
// Unused since rendering is done directly from the decode thread
|
|
virtual void renderFrameOnMainThread() {}
|
|
|
|
private:
|
|
CSLVideoContext* m_VideoContext;
|
|
CSLVideoStream* m_VideoStream;
|
|
};
|