mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-18 02:22:52 +00:00
26 lines
725 B
C++
26 lines
725 B
C++
#pragma once
|
|
|
|
#include "renderer.h"
|
|
|
|
class SdlRenderer : public IFFmpegRenderer {
|
|
public:
|
|
SdlRenderer();
|
|
virtual ~SdlRenderer();
|
|
virtual bool initialize(SDL_Window* window,
|
|
int videoFormat,
|
|
int width,
|
|
int height,
|
|
int maxFps,
|
|
bool enableVsync);
|
|
virtual bool prepareDecoderContext(AVCodecContext* context);
|
|
virtual void renderFrameAtVsync(AVFrame* frame);
|
|
virtual bool needsTestFrame();
|
|
virtual int getDecoderCapabilities();
|
|
virtual FramePacingConstraint getFramePacingConstraint();
|
|
|
|
private:
|
|
SDL_Renderer* m_Renderer;
|
|
SDL_Texture* m_Texture;
|
|
};
|
|
|