コード例 #1
0
    public override Frame Process(Frame frame, FrameSource frameSource)
    {
        lock (_lock)
        {
            if (currMode != Mode)
            {
                if (_pb != null)
                {
                    _pb.Dispose();
                    _pb = null;
                }
            }

            if (_pb == null)
            {
                Init();
            }

            return(_pb.Process(frame));
        }
    }