|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef AVFILTER_METAL_UTILS_H |
|
#define AVFILTER_METAL_UTILS_H |
|
|
|
#include <Metal/Metal.h> |
|
|
|
#include <AvailabilityMacros.h> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && (MAC_OS_X_VERSION_MIN_REQUIRED < 101100) |
|
#define ORIG_MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_MIN_REQUIRED |
|
#undef MAC_OS_X_VERSION_MIN_REQUIRED |
|
#define MAC_OS_X_VERSION_MIN_REQUIRED 101100 |
|
#endif |
|
|
|
#include <CoreVideo/CoreVideo.h> |
|
|
|
#ifdef ORIG_MAC_OS_X_VERSION_MIN_REQUIRED |
|
#undef MAC_OS_X_VERSION_MIN_REQUIRED |
|
#define MAC_OS_X_VERSION_MIN_REQUIRED ORIG_MAC_OS_X_VERSION_MIN_REQUIRED |
|
#undef ORIG_MAC_OS_X_VERSION_MIN_REQUIRED |
|
#endif |
|
|
|
void ff_metal_compute_encoder_dispatch(id<MTLDevice> device, |
|
id<MTLComputePipelineState> pipeline, |
|
id<MTLComputeCommandEncoder> encoder, |
|
NSUInteger width, NSUInteger height) |
|
API_AVAILABLE(macos(10.11), ios(8.0)); |
|
|
|
CVMetalTextureRef ff_metal_texture_from_pixbuf(void *avclass, |
|
CVMetalTextureCacheRef textureCache, |
|
CVPixelBufferRef pixbuf, |
|
int plane, |
|
MTLPixelFormat format) |
|
API_AVAILABLE(macos(10.11), ios(8.0)); |
|
|
|
#endif |
|
|