mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-18 02:22:52 +00:00
27 lines
504 B
Objective-C
27 lines
504 B
Objective-C
#pragma once
|
|
|
|
#include "renderer.h"
|
|
|
|
#ifdef __OBJC__
|
|
#import <Metal/Metal.h>
|
|
class VTBaseRenderer : public IFFmpegRenderer {
|
|
public:
|
|
bool checkDecoderCapabilities(id<MTLDevice> device, PDECODER_PARAMETERS params);
|
|
};
|
|
#endif
|
|
|
|
// A factory is required to avoid pulling in
|
|
// incompatible Objective-C headers.
|
|
|
|
class VTMetalRendererFactory {
|
|
public:
|
|
static
|
|
IFFmpegRenderer* createRenderer(bool hwAccel);
|
|
};
|
|
|
|
class VTRendererFactory {
|
|
public:
|
|
static
|
|
IFFmpegRenderer* createRenderer();
|
|
};
|