mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-15 13:52:28 +00:00
21 lines
494 B
Objective-C
21 lines
494 B
Objective-C
#pragma once
|
|
|
|
#include "renderer.h"
|
|
|
|
#import <VideoToolbox/VideoToolbox.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:
|
|
AVBufferRef* m_HwContext;
|
|
};
|