mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 06:01:12 +00:00
Stub out VideoToolbox renderer
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#include "vt.h"
|
||||
|
||||
VTRenderer::VTRenderer()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
VTRenderer::~VTRenderer()
|
||||
{
|
||||
}
|
||||
|
||||
bool VTRenderer::prepareDecoderContext(AVCodecContext*)
|
||||
{
|
||||
/* Nothing to do */
|
||||
return true;
|
||||
}
|
||||
|
||||
bool VTRenderer::initialize(SDL_Window* window,
|
||||
int videoFormat,
|
||||
int width,
|
||||
int height)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void VTRenderer::renderFrame(AVFrame* frame)
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include "renderer.h"
|
||||
|
||||
class VTRenderer : public IRenderer
|
||||
{
|
||||
public:
|
||||
VTRenderer();
|
||||
virtual ~VTRenderer();
|
||||
virtual bool initialize(SDL_Window* window,
|
||||
int videoFormat,
|
||||
int width,
|
||||
int height);
|
||||
virtual bool prepareDecoderContext(AVCodecContext* context);
|
||||
virtual void renderFrame(AVFrame* frame);
|
||||
|
||||
private:
|
||||
};
|
||||
Reference in New Issue
Block a user