dummy.c
 1  #include <CoreFoundation/CFBase.h>
 2  #include <CoreFoundation/CFString.h>
 3  #include "../CFF/CFStringConst.h"
 4  
 5  // A real implementation would use VA API or VDPAU
 6  
 7  CONST_STRING_DECL(kVDADecoderConfiguration_Height, "kVDADecoderConfiguration_Height");
 8  CONST_STRING_DECL(kVDADecoderConfiguration_Width, "kVDADecoderConfiguration_Width");
 9  CONST_STRING_DECL(kVDADecoderConfiguration_SourceFormat, "kVDADecoderConfiguration_SourceFormat");
10  CONST_STRING_DECL(kVDADecoderConfiguration_avcCData, "kVDADecoderConfiguration_avcCData");
11  
12  #define kVDADecoderHardwareNotSupportedErr -12470
13  
14  __attribute__((constructor))
15  	static void initConstants()
16  {
17  	CFTypeID type = CFStringGetTypeID();
18  	GSRuntimeConstantInit(kVDADecoderConfiguration_Height, type);
19  	GSRuntimeConstantInit(kVDADecoderConfiguration_Width, type);
20  	GSRuntimeConstantInit(kVDADecoderConfiguration_SourceFormat, type);
21  	GSRuntimeConstantInit(kVDADecoderConfiguration_avcCData, type);
22  }
23  
24  OSStatus VDADecoderCreate()
25  {
26  	return kVDADecoderHardwareNotSupportedErr;
27  }
28  
29  OSStatus VDADecoderDestroy()
30  {
31  	return kVDADecoderHardwareNotSupportedErr;
32  }
33  
34  OSStatus VDADecoderDecode()
35  {
36  	return kVDADecoderHardwareNotSupportedErr;
37  }
38  
39  OSStatus VDADecoderFlush()
40  {
41  	return kVDADecoderHardwareNotSupportedErr;
42  }
43