Exemplo n.º 1
0
 /** test entry point */
 public ExtractMpegFrames(File filesdir, string inputfilename, ref SortedList <long, SparseArray> framelist, int width, int height)
 {
     INPUT_FILE = inputfilename;
     _framelist = framelist;
     //_FaceFetchDataTasks = FaceFetchDataTasks;
     _width    = width;
     _height   = height;
     _filesdir = filesdir;
     ExtractMpegFramesWrapper.runTest(this);
 }
Exemplo n.º 2
0
 /** Entry point. */
 public static void runTest(ExtractMpegFrames obj)
 {
     try
     {
         var wrapper         = new ExtractMpegFramesWrapper(obj);
         Java.Lang.Thread th = new Java.Lang.Thread(wrapper, "codec test");
         th.Start();
         th.Join();
         if (wrapper.mThrowable != null)
         {
             throw wrapper.mThrowable;
         }
     }
     catch (System.Exception e)
     {
         Console.WriteLine(e);
         throw;
     }
 }