Class YCbCrConverter


  • public final class YCbCrConverter
    extends java.lang.Object
    Fast YCbCr to RGB conversion.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int CENTERJSAMPLE  
      private static int MAXJSAMPLE  
      private static int ONE_HALF  
      private static int SCALEBITS
      Define tables for YCC->RGB color space conversion.
    • Constructor Summary

      Constructors 
      Constructor Description
      YCbCrConverter()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static byte clamp​(int val)  
      static void convertJPEGYCbCr2RGB​(byte[] yCbCr, byte[] rgb, int offset)  
      static void convertRec601YCbCr2RGB​(byte[] yCbCr, byte[] rgb, int offset)  
      static void convertYCbCr2RGB​(byte[] yCbCr, byte[] rgb, double[] coefficients, double[] referenceBW, int offset)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • YCbCrConverter

        public YCbCrConverter()
    • Method Detail

      • convertYCbCr2RGB

        public static void convertYCbCr2RGB​(byte[] yCbCr,
                                            byte[] rgb,
                                            double[] coefficients,
                                            double[] referenceBW,
                                            int offset)
      • convertJPEGYCbCr2RGB

        public static void convertJPEGYCbCr2RGB​(byte[] yCbCr,
                                                byte[] rgb,
                                                int offset)
      • convertRec601YCbCr2RGB

        public static void convertRec601YCbCr2RGB​(byte[] yCbCr,
                                                  byte[] rgb,
                                                  int offset)
      • clamp

        private static byte clamp​(int val)