Пример #1
0
        static void Initialise()
        {
            if (!_initialised)
            {
                _initialised = true;

#if ((UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX) && !UNITY_5) || (UNITY_IPHONE || UNITY_IOS || UNITY_TVOS)
                AVPPluginRegister();
#endif

                DebugLogCallbackDelegate callbackDelegate = new DebugLogCallbackDelegate(DebugLogCallback);
                IntPtr func = Marshal.GetFunctionPointerForDelegate(callbackDelegate);
                AVPPluginSetDebugLogFunction(func);

                AVPPluginColorSpace colorSpace = QualitySettings.activeColorSpace == ColorSpace.Linear ? AVPPluginColorSpace.Linear : AVPPluginColorSpace.Gamma;
                AVPPluginInitialise(colorSpace);

#if AVPROVIDEO_ISSUEPLUGINEVENT_UNITY52
                _renderEventFunc = AVPGetRenderEventFunc();
#endif
            }
        }
Пример #2
0
 private static extern void AVPPluginInitialise(AVPPluginColorSpace colorSpace);