Package gov.nih.mipav.model.file
Enum libxl.JxlEncoderError
- All Implemented Interfaces:
Serializable,Comparable<libxl.JxlEncoderError>,java.lang.constant.Constable
- Enclosing class:
libxl
Error conditions:
API usage errors have the 0x80 bit set to 1
Other errors have the 0x80 bit set to 0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe encoder API is used in an incorrect way.Input is invalid (e.g. corrupt JPEG file or ICC profile)Generic encoder error due to unspecified causeJPEG bitstream reconstruction data could not be represented (e.g. too much tail data)The encoder doesn't (yet) support this.No errorOut of memory TODO(jon): actually catch this and return this error -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic libxl.JxlEncoderErrorReturns the enum constant of this type with the specified name.static libxl.JxlEncoderError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
JXL_ENC_ERR_OK
No error -
JXL_ENC_ERR_GENERIC
Generic encoder error due to unspecified cause -
JXL_ENC_ERR_OOM
Out of memory TODO(jon): actually catch this and return this error -
JXL_ENC_ERR_JBRD
JPEG bitstream reconstruction data could not be represented (e.g. too much tail data) -
JXL_ENC_ERR_BAD_INPUT
Input is invalid (e.g. corrupt JPEG file or ICC profile) -
JXL_ENC_ERR_NOT_SUPPORTED
The encoder doesn't (yet) support this. Either no version of libjxl supports this, and the API is used incorrectly, or the libjxl version should have been checked before trying to do this. -
JXL_ENC_ERR_API_USAGE
The encoder API is used in an incorrect way. In this case, a debug build of libjxl should output a specific error message. (if not, please open an issue about it)
-
-
Field Details
-
numVal
private final int numVal
-
-
Constructor Details
-
JxlEncoderError
private JxlEncoderError(int numVal)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumVal
public int getNumVal()
-