Package gov.nih.mipav.model.file
Enum libxl.JxlBitDepthType
- All Implemented Interfaces:
Serializable,Comparable<libxl.JxlBitDepthType>,java.lang.constant.Constable
- Enclosing class:
libxl
Settings for the interpretation of UINT input and output buffers.
(buffers using a FLOAT data type are not affected by this)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis setting can only be used in the decoder to select a custom range for pixel outputIf this setting is selected, the encoder expects the input pixels to be in the range defined by the bits_per_sample value of the basic info (e.g.This is the default setting, where the encoder expects the input pixels to use the full range of the pixel format data type (e.g. for UINT16, the input range is 0 .. 65535 and the value 65535 is mapped to 1.0 when converting to float), and the decoder uses the full range to output pixels. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic libxl.JxlBitDepthTypeReturns the enum constant of this type with the specified name.static libxl.JxlBitDepthType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
JXL_BIT_DEPTH_FROM_PIXEL_FORMAT
This is the default setting, where the encoder expects the input pixels to use the full range of the pixel format data type (e.g. for UINT16, the input range is 0 .. 65535 and the value 65535 is mapped to 1.0 when converting to float), and the decoder uses the full range to output pixels. If the bit depth in the basic info is different from this, the encoder expects the values to be rescaled accordingly (e.g. multiplied by 65535/4095 for a 12-bit image using UINT16 input data type). -
JXL_BIT_DEPTH_FROM_CODESTREAM
If this setting is selected, the encoder expects the input pixels to be in the range defined by the bits_per_sample value of the basic info (e.g. for 12-bit images using UINT16 input data types, the allowed range is 0 .. 4095 and the value 4095 is mapped to 1.0 when converting to float), and the decoder outputs pixels in this range. -
JXL_BIT_DEPTH_CUSTOM
This setting can only be used in the decoder to select a custom range for pixel output
-
-
Field Details
-
numVal
private final int numVal
-
-
Constructor Details
-
JxlBitDepthType
private JxlBitDepthType(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()
-