Enum libxl.JxlBitDepthType

java.lang.Object
java.lang.Enum<libxl.JxlBitDepthType>
gov.nih.mipav.model.file.libxl.JxlBitDepthType
All Implemented Interfaces:
Serializable, Comparable<libxl.JxlBitDepthType>, java.lang.constant.Constable
Enclosing class:
libxl

static enum libxl.JxlBitDepthType extends Enum<libxl.JxlBitDepthType>
Settings for the interpretation of UINT input and output buffers. (buffers using a FLOAT data type are not affected by this)
  • Enum Constant Details

    • JXL_BIT_DEPTH_FROM_PIXEL_FORMAT

      public static final libxl.JxlBitDepthType 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

      public static final libxl.JxlBitDepthType 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

      public static final libxl.JxlBitDepthType 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

      public static libxl.JxlBitDepthType[] 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

      public static libxl.JxlBitDepthType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumVal

      public int getNumVal()