mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-16 16:27:59 +00:00
31 lines
954 B
C++
31 lines
954 B
C++
#pragma once
|
|
|
|
#include "decoder.h"
|
|
|
|
#include <SLVideo.h>
|
|
|
|
class SLVideoDecoder : public IVideoDecoder
|
|
{
|
|
public:
|
|
SLVideoDecoder(bool testOnly);
|
|
virtual ~SLVideoDecoder();
|
|
virtual bool initialize(StreamingPreferences::VideoDecoderSelection vds,
|
|
SDL_Window* window,
|
|
int videoFormat,
|
|
int width,
|
|
int height,
|
|
int frameRate,
|
|
bool enableVsync,
|
|
bool enableFramePacing);
|
|
virtual bool isHardwareAccelerated();
|
|
virtual int getDecoderCapabilities();
|
|
virtual int submitDecodeUnit(PDECODE_UNIT du);
|
|
|
|
// Unused since rendering is done directly from the decode thread
|
|
virtual void renderFrame(SDL_UserEvent*) {}
|
|
virtual void dropFrame(SDL_UserEvent*) {}
|
|
|
|
private:
|
|
CSLVideoContext* m_VideoContext;
|
|
CSLVideoStream* m_VideoStream;
|
|
};
|