public MyConversionClass(YCBCR myInput, RGB myOutput) { this.Input = myInput; this.Output = myOutput; this.Thread1 = new Thread(this.ComputeY); this.Thread2 = new Thread(this.ComputeCB); this.Thread3 = new Thread(this.ComputeCR); }
public void Start(YCBCR myInput, RGB myOutput, SynchronizationContext syncContext, EventHandler completed) { this.SyncContext = syncContext; this.Completed = completed; this.Input = myInput; this.Output = myOutput; this.Thread1.Start(); this.Thread2.Start(); this.Thread3.Start(); }