private void convertYCBCRtoRGB(double Y, double Cb, double Cr) {
        R = round(Y + (Cr - 128) * 1.402);
        G = round(Y - (Cb - 128) * 0.34414 - (Cr - 128) * 0.71414);
        B = round(Y + 1.772 * (Cb - 128));
        R = R > 255 ? 255 : (R < 0 ? 0 : R);
        G = G > 255 ? 255 : (G < 0 ? 0 : G);
        B = B > 255 ? 255 : (B < 0 ? 0 : B);
    }