Esempio n. 1
0
        internal static void DecodeGif(int taskId, string filepath, int framesToRead, System.Threading.ThreadPriority workerPriority, DecodeCompleteCallback completeCallback)
        {
            var decodeTask = new GifDecodeTask()
            {
                taskId           = taskId,
                filepath         = filepath,
                framesToRead     = framesToRead,
                threadPriority   = workerPriority,
                completeCallback = completeCallback
            };

            var instance = new AndroidNativeGif(decodeTask);
            var worker   = new Thread(instance.DoDecodeGif);

            worker.Priority = decodeTask.threadPriority;
            worker.Start();
        }
Esempio n. 2
0
 private AndroidNativeGif(GifDecodeTask task)
 {
     mDecodeTask = task;
 }