Move VT decoding support detection into a single base class

This commit is contained in:
Cameron Gutman
2024-07-26 00:35:32 -05:00
parent c707dab70a
commit e548697a36
5 changed files with 90 additions and 143 deletions
@@ -2,6 +2,14 @@
#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.