public void ConvertFromYuv444ToRgb24()
        {
            var image = (Bitmap)Image.FromFile("Test.jpg", false);
            ConverterBase converter = new RGB24ToYUV444Converter();
            var destImage = converter.Process(RgbFrameFactory.CreateFrame(image));

            ConverterBase converter1 = new YUV444ToRGB24Converter();
            var destImage1 = converter1.Process(destImage);

            var bmp = RgbFrameFactory.CreateBitmap((RgbFrame)destImage1);

            bmp.Save("TestFinalYuv444ToRgb24.jpg");
        }
        public void ConvertFromRgb24ToYuv444()
        {
            var image = (Bitmap)Image.FromFile("Test.jpg", false);
            var converter = new RGB24ToYUV444Converter();
            var destImage = converter.Process(RgbFrameFactory.CreateFrame(image));

            var bmp = new Bitmap(destImage.Width, destImage.Height, PixelFormat.Format24bppRgb);
            var bData = bmp.LockBits(new Rectangle(0, 0, destImage.Width, destImage.Height),
                                     ImageLockMode.WriteOnly,
                                     PixelFormat.Format24bppRgb);
            Marshal.Copy(destImage.Data, 0, bData.Scan0, destImage.Data.Length);
            bmp.UnlockBits(bData);

            bmp.Save("TestFinalRgb24ToYuv444.jpg");
        }