mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-16 08:17:58 +00:00
28 lines
786 B
C++
28 lines
786 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 bool isAlwaysFullScreen();
|
|
virtual int getDecoderCapabilities();
|
|
virtual int getDecoderColorspace();
|
|
virtual QSize getDecoderMaxResolution();
|
|
virtual int submitDecodeUnit(PDECODE_UNIT du);
|
|
|
|
// Unused since rendering is done directly from the decode thread
|
|
virtual void renderFrameOnMainThread() {}
|
|
|
|
private:
|
|
static void slLogCallback(void* context, ESLVideoLog logLevel, const char* message);
|
|
|
|
CSLVideoContext* m_VideoContext;
|
|
CSLVideoStream* m_VideoStream;
|
|
};
|