public void Update(float absoluteTime) { if (!(OnClip is null) && !ClipFrame.Intersects(Frame)) { OnClip(); } }
public void onPoolLockObtained() { if (this.isClip) { Log.Debug("Clearing clip slot"); this.clip.SetInvalid(); // Uploading the first frame, the callback event handling will trigger upload of the rest. this.currentFrameNumber = 0; IBMDSwitcherClipCallback callback = new ClipFrame(this); this.clip.AddCallback(callback); this.uploadClipFrame(); } else { IBMDSwitcherStillsCallback callback = new StillsFrame(this); this.stills.AddCallback(callback); this.stills.Upload((uint)this.uploadSlot, this.GetName(), this.frame); } }