DecodeAndCropJpeg.Options

public static class DecodeAndCropJpeg.Options

Optional attributes for DecodeAndCropJpeg

Public Methods

Inherited Methods

boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

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.