Esempio n. 1
0
        public void StopEncode()
        {
            HBFunctions.hb_stop(this.Handle);

            // Also remove all jobs from the queue (in case we stopped a 2-pass encode)
            var currentJobs = new List <IntPtr>();

            int jobs = HBFunctions.hb_count(this.Handle);

            for (int i = 0; i < jobs; i++)
            {
                currentJobs.Add(HBFunctions.hb_job(this.Handle, 0));
            }

            foreach (IntPtr job in currentJobs)
            {
                HBFunctions.hb_rem(this.Handle, job);
            }
        }
Esempio n. 2
0
 public int hb_count(IntPtr hbHandle)
 {
     return(HBFunctions.hb_count(hbHandle));
 }