DecodeAndCropJpeg.Options

public static class DecodeAndCropJpeg.Options

Optional attributes for DecodeAndCropJpeg

Public Methods

DecodeAndCropJpeg.Options
acceptableFraction(Float acceptableFraction)
DecodeAndCropJpeg.Options
channels(Long channels)
DecodeAndCropJpeg.Options
dctMethod(String dctMethod)
DecodeAndCropJpeg.Options
fancyUpscaling(Boolean fancyUpscaling)
DecodeAndCropJpeg.Options
ratio(Long ratio)
DecodeAndCropJpeg.Options
tryRecoverTruncated(Boolean tryRecoverTruncated)

Inherited Methods

Public Methods

public DecodeAndCropJpeg.Options acceptableFraction (Float acceptableFraction)

Parameters
acceptableFraction The minimum required fraction of lines before a truncated input is accepted.

public DecodeAndCropJpeg.Options channels (Long channels)

Parameters
channels Number of color channels for the decoded image.

public DecodeAndCropJpeg.Options dctMethod (String dctMethod)

Parameters
dctMethod string specifying a hint about the algorithm used for decompression. Defaults to "" which maps to a system-specific default. Currently valid values are ["INTEGER_FAST", "INTEGER_ACCURATE"]. The hint may be ignored (e.g., the internal jpeg library changes to a version that does not have that specific option.)

public DecodeAndCropJpeg.Options fancyUpscaling (Boolean fancyUpscaling)

Parameters
fancyUpscaling If true use a slower but nicer upscaling of the chroma planes (yuv420/422 only).

public DecodeAndCropJpeg.Options ratio (Long ratio)

Parameters
ratio Downscaling ratio.

public DecodeAndCropJpeg.Options tryRecoverTruncated (Boolean tryRecoverTruncated)

Parameters
tryRecoverTruncated If true try to recover an image from truncated input.