TIFFPredictor

Objective-C

@interface TIFFPredictor : NSObject

Swift

class TIFFPredictor : NSObject

Differencing Predictor decoder

  • Decode the predictor encoded bytes

    Declaration

    Objective-C

    + (NSData *)decodeData:(NSData *)data
                 withPredictor:(int)predictor
                      andWidth:(int)width
                     andHeight:(int)height
              andBitsPerSample:(NSArray<NSNumber *> *)bitsPerSample
        andPlanarConfiguration:(int)planarConfiguration;

    Swift

    class func decode(_ data: Data!, withPredictor predictor: Int32, andWidth width: Int32, andHeight height: Int32, andBitsPerSample bitsPerSample: [NSNumber]!, andPlanarConfiguration planarConfiguration: Int32) -> Data!

    Parameters

    data

    data to decode

    predictor

    predictor value

    width

    tile width

    height

    tile height

    bitsPerSample

    bits per samples

    planarConfiguration

    planar configuration

    Return Value

    decoded or original bytes