Something went wrong. Try again.
Cider Isn't Darwin Emulation, Really
Something went wrong. Try again.
1.2 kB · 43 lines
C
1234567891011121314151617181920212223242526272829303132333435363738394041424344#include <CoreFoundation/CFBase.h>#include <CoreFoundation/CFString.h>#include "../CFF/CFStringConst.h"
// A real implementation would use VA API or VDPAU
CONST_STRING_DECL(kVDADecoderConfiguration_Height, "kVDADecoderConfiguration_Height");CONST_STRING_DECL(kVDADecoderConfiguration_Width, "kVDADecoderConfiguration_Width");CONST_STRING_DECL(kVDADecoderConfiguration_SourceFormat, "kVDADecoderConfiguration_SourceFormat");CONST_STRING_DECL(kVDADecoderConfiguration_avcCData, "kVDADecoderConfiguration_avcCData");
#define kVDADecoderHardwareNotSupportedErr -12470
__attribute__((constructor)) static void initConstants(){ CFTypeID type = CFStringGetTypeID(); GSRuntimeConstantInit(kVDADecoderConfiguration_Height, type); GSRuntimeConstantInit(kVDADecoderConfiguration_Width, type); GSRuntimeConstantInit(kVDADecoderConfiguration_SourceFormat, type); GSRuntimeConstantInit(kVDADecoderConfiguration_avcCData, type);}
OSStatus VDADecoderCreate(){ return kVDADecoderHardwareNotSupportedErr;}
OSStatus VDADecoderDestroy(){ return kVDADecoderHardwareNotSupportedErr;}
OSStatus VDADecoderDecode(){ return kVDADecoderHardwareNotSupportedErr;}
OSStatus VDADecoderFlush(){ return kVDADecoderHardwareNotSupportedErr;}