Class Predictor


  • public class Predictor
    extends Object
    Differencing Predictor decoder
    Since:
    3.0.0
    Author:
    osbornb
    • Constructor Detail

      • Predictor

        public Predictor()
    • Method Detail

      • decode

        public static byte[] decode​(byte[] bytes,
                                    int predictor,
                                    int width,
                                    int height,
                                    List<Integer> bitsPerSample,
                                    int planarConfiguration)
        Decode the predictor encoded bytes
        Parameters:
        bytes - bytes to decode
        predictor - predictor value
        width - tile width
        height - tile height
        bitsPerSample - bits per samples
        planarConfiguration - planar configuration
        Returns:
        decoded or original bytes