moonlight-qt/app/streaming/renderers/vt.h
2018-07-15 12:48:17 -07:00

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;
};