Пример #1
0
        internal void SetBitmapSource(BitmapSource source)
        {
            object requestLock = ImageCaptureRequest.requestLock;
            bool   flag        = false;

            try
            {
                ImageCaptureRequest.\u206C‪‏​‬‪‍‮‭‍‍‏‎‫​‎‫‭‏​‪‮‬‮(requestLock, ref flag);
label_2:
                int num1 = -2032904753;
                while (true)
                {
                    int  num2 = -1467769839;
                    uint num3;
                    switch ((num3 = (uint)(num1 ^ num2)) % 5U)
                    {
                    case 0:
                        goto label_11;

                    case 1:
                        this.BitmapSource = source;
                        num1 = (int)num3 * 104272239 ^ -1724358567;
                        continue;

                    case 2:
                        this.CaptureState = CaptureState.Captured;
                        num1 = (int)num3 * -1331980272 ^ -1711723756;
                        continue;

                    case 3:
                        num1 = (int)num3 * -1108640168 ^ 1930330062;
                        continue;

                    case 4:
                        goto label_2;

                    default:
                        goto label_7;
                    }
                }
label_7:
                return;

                label_11 :;
            }
            finally
            {
                if (flag)
                {
                    label_9 :
                    int num1 = -1852114416;
                    while (true)
                    {
                        int  num2 = -1467769839;
                        uint num3;
                        switch ((num3 = (uint)(num1 ^ num2)) % 3U)
                        {
                        case 0:
                            goto label_9;

                        case 2:
                            ImageCaptureRequest.\u202C‫‭​‌‬‏‮‏‌‭‎‎​​‫‎‪‮​‬‬‭‏​‫‬‏‬‮(requestLock);
                            num1 = (int)num3 * 1850679449 ^ -1462628036;
                            continue;

                        default:
                            goto label_13;
                        }
                    }
                }
                label_13 :;
            }
        }
Пример #2
0
        internal BitmapImage ToBitmapImage(BitmapSource bitmapSource)
        {
            label_1 :
            int num1 = -29353397;
            BitmapImage       bitmapImage1;
            JpegBitmapEncoder jpegBitmapEncoder;

            while (true)
            {
                int  num2 = -1905970749;
                uint num3;
                switch ((num3 = (uint)(num1 ^ num2)) % 3U)
                {
                case 0:
                    goto label_1;

                case 1:
                    bitmapImage1      = (BitmapImage)null;
                    jpegBitmapEncoder = ImageCaptureRequest.\u200F‭‬‍​​‎‍‬​‮‏‪‏‭‍‪‫‪‌‍‏‍‮();
                    num1 = (int)num3 * -1761526511 ^ 872584437;
                    continue;

                default:
                    goto label_4;
                }
            }
label_4:
            MemoryStream memoryStream = ImageCaptureRequest.\u206D‍‎‪‫‮‫‪‍‌‫​‌‌‌‏​‍‪‬‏‎‌‮();

            try
            {
label_6:
                int num2 = -84443504;
                while (true)
                {
                    int  num3 = -1905970749;
                    uint num4;
                    switch ((num4 = (uint)(num2 ^ num3)) % 11U)
                    {
                    case 0:
                        num2 = (int)num4 * -791006016 ^ -1833469922;
                        continue;

                    case 1:
                        num2 = (int)num4 * 1142749742 ^ -1350042573;
                        continue;

                    case 2:
                        num2 = (int)num4 * 984925919 ^ -1952889310;
                        continue;

                    case 3:
                        bitmapImage1 = ImageCaptureRequest.\u200C‪‫‏​‭‬‍‮‭‪‍‏‏‏‪‫​‏‎‭‪‌​‪‬‌‮‮();
                        ImageCaptureRequest.\u206A‮‫​‪‮‍‏‎‌​‪‏‫‭‫‪‪‫‏‬‍‭‍‌‫‭‬‌‌‎‮((BitmapEncoder)jpegBitmapEncoder).Add(ImageCaptureRequest.\u200B‮‎‌‏‎‭‍‮‭‭‍​‬‫‎‬‮‬‍‌‌​‬‫‮‮(bitmapSource));
                        num2 = (int)num4 * 1783793690 ^ -336576677;
                        continue;

                    case 5:
                        ImageCaptureRequest.\u206F‏‌‭‍​‍​‎‬‌‍‮‍‌​‫‏‪‎‭‍​‍‮((BitmapEncoder)jpegBitmapEncoder, (Stream)memoryStream);
                        num2 = (int)num4 * -2079303388 ^ 1070224570;
                        continue;

                    case 6:
                        ImageCaptureRequest.\u202C‎​​‬‬‬​‍‍‫‬‏‌​‬‬‪‎‍‎‭‪‭‬‫‏‍‭‮((Stream)memoryStream);
                        num2 = (int)num4 * 1363663469 ^ 794145221;
                        continue;

                    case 7:
                        ImageCaptureRequest.\u202C‮‭‌‫‍‌‍‭‬‍‎‭‬‪‏‬‏‌‫‏‮‍‭‎‫‮(bitmapImage1, (Stream)ImageCaptureRequest.\u202B‭‎‪‫‭‭​‮‭‬‮‏‪‌‫‪‫‪‎​‪‮(ImageCaptureRequest.\u202A‏‍‫‫‭‎‬‍‎​‪‮​‮‌‮‍​‪‮‫‭‪‮(memoryStream)));
                        num2 = (int)num4 * -754931410 ^ 398604300;
                        continue;

                    case 8:
                        goto label_6;

                    case 9:
                        ImageCaptureRequest.\u200E‍‍‎‬‍‭‮‪‬‪‬‭​​‭‪‏‪‎‬‎‮(bitmapImage1);
                        num2 = (int)num4 * -1175012543 ^ -683550385;
                        continue;

                    case 10:
                        ImageCaptureRequest.\u206F​‬‎‪‬‬‬‍‮‫‭‫‬‭‭​​‭‪​‬‪‮(bitmapImage1);
                        num2 = (int)num4 * 1527214294 ^ 1118720207;
                        continue;

                    default:
                        goto label_23;
                    }
                }
            }
            finally
            {
                if (memoryStream != null)
                {
label_18:
                    int num2 = -61207022;
                    while (true)
                    {
                        int  num3 = -1905970749;
                        uint num4;
                        switch ((num4 = (uint)(num2 ^ num3)) % 4U)
                        {
                        case 0:
                            num2 = (int)num4 * 891059579 ^ 2086299601;
                            continue;

                        case 1:
                            ImageCaptureRequest.\u206C‮‮‏‮​‭‫‮‬‪‬‬‪​‏‏‍‭‏‪‬‌‮((IDisposable)memoryStream);
                            num2 = (int)num4 * 1371380491 ^ -46359296;
                            continue;

                        case 3:
                            goto label_18;

                        default:
                            goto label_22;
                        }
                    }
                }
                label_22 :;
            }
            label_23 :
            BitmapImage bitmapImage2 = bitmapImage1;

label_24:
            int num5 = -1312405309;

            while (true)
            {
                int  num2 = -1905970749;
                uint num3;
                switch ((num3 = (uint)(num5 ^ num2)) % 3U)
                {
                case 0:
                    goto label_24;

                case 2:
                    num5 = (int)num3 * -1113415608 ^ 1715405745;
                    continue;

                default:
                    goto label_27;
                }
            }
label_27:
            return(bitmapImage2);
        }
Пример #3
0
        internal CaptureState SetState(CaptureState newState)
        {
            object requestLock = ImageCaptureRequest.requestLock;
            bool   flag        = false;

            try
            {
                ImageCaptureRequest.\u206C‪‏​‬‪‍‮‭‍‍‏‎‫​‎‫‭‏​‪‮‬‮(requestLock, ref flag);
                this.CaptureState = newState;
            }
            finally
            {
                if (flag)
                {
label_3:
                    int num1 = 1486734548;
                    while (true)
                    {
                        int  num2 = 2017614935;
                        uint num3;
                        switch ((num3 = (uint)(num1 ^ num2)) % 4U)
                        {
                        case 0:
                            goto label_3;

                        case 1:
                            num1 = (int)num3 * -2127351160 ^ 1612190477;
                            continue;

                        case 3:
                            ImageCaptureRequest.\u202C‫‭​‌‬‏‮‏‌‭‎‎​​‫‎‪‮​‬‬‭‏​‫‬‏‬‮(requestLock);
                            num1 = (int)num3 * 1423190496 ^ -1150840342;
                            continue;

                        default:
                            goto label_7;
                        }
                    }
                }
                label_7 :;
            }
            CaptureState captureState = newState;

label_9:
            int num4 = 51066651;

            while (true)
            {
                int  num1 = 2017614935;
                uint num2;
                switch ((num2 = (uint)(num4 ^ num1)) % 3U)
                {
                case 1:
                    num4 = (int)num2 * -161702962 ^ 1993303051;
                    continue;

                case 2:
                    goto label_9;

                default:
                    goto label_12;
                }
            }
label_12:
            return(captureState);
        }