Package gov.nih.mipav.model.file
Class jxlatte.ImageHeader
java.lang.Object
gov.nih.mipav.model.file.jxlatte.ImageHeader
- Enclosing class:
jxlatte
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final char[]private int[]private jxlatte.AnimationHeaderprivate jxlatte.BitDepthHeaderstatic final intprivate jxlatte.ColorEncodingBundleprivate byte[]final float[]final float[]final float[]private byte[]private jxlatte.Dimensionprivate jxlatte.Extensionsprivate jxlatte.ExtraChannelInfo[]private final String[]private jxlatte.Dimensionprivate intprivate final char[]private booleanprivate jxlatte.OpsinInverseMatrixprivate intprivate jxlatte.Dimensionprivate jxlatte.Dimensionprivate jxlatte.ToneMappingprivate float[]private float[]private float[]private float[][][][][]private boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlphaChannel(int alphaIndex) intgetAlphaIndex(int alphaChannel) intbyte[]intgetExtraChannelInfo(int index) private intgetICCContext(byte[] buffer, int index) private intgetICCPrediction(byte[] buffer, int i) intgetLevel()intintgetSize()intfloat[]float[]float[]float[][][][][]private intgetWidthFromRatio(int ratio, int height) booleanhasAlpha()booleanbooleanread(jxlatte.Loggers loggers, jxlatte.Bitreader reader, int level) readPreviewHeader(jxlatte.Bitreader reader) private jxlatte.DimensionreadSizeHeader(jxlatte.Bitreader reader, int level) voidsetLevel(int level) private byte[]shuffle(byte[] buffer, int width)
-
Field Details
-
CODESTREAM_HEADER
public static final int CODESTREAM_HEADER- See Also:
-
DEFAULT_UP2
public final float[] DEFAULT_UP2 -
DEFAULT_UP4
public final float[] DEFAULT_UP4 -
DEFAULT_UP8
public final float[] DEFAULT_UP8 -
MNTRGB
private final char[] MNTRGB -
ACSP
private final char[] ACSP -
iccTags
-
encodedSize
-
orientedSize
-
level
private int level -
orientation
private int orientation -
intrinsicSize
-
previewSize
-
animationHeader
-
bitDepth
-
modular16bitBuffers
private boolean modular16bitBuffers -
extraChannelInfo
-
xybEncoded
private boolean xybEncoded -
colorEncoding
-
toneMapping
-
extensions
-
opsinInverseMatrix
-
up2weights
private float[] up2weights -
up4weights
private float[] up4weights -
up8weights
private float[] up8weights -
upWeights
private float[][][][][] upWeights -
alphaIndices
private int[] alphaIndices -
encodedICC
private byte[] encodedICC -
decodedICC
private byte[] decodedICC
-
-
Constructor Details
-
ImageHeader
private ImageHeader()
-
-
Method Details
-
getICCContext
private int getICCContext(byte[] buffer, int index) -
getWidthFromRatio
private int getWidthFromRatio(int ratio, int height) -
readSizeHeader
- Throws:
IOException
-
readPreviewHeader
- Throws:
IOException
-
read
public jxlatte.ImageHeader read(jxlatte.Loggers loggers, jxlatte.Bitreader reader, int level) throws IOException - Throws:
IOException
-
getLevel
public int getLevel() -
getSize
-
getIntrinsticSize
-
getPreviewSize
-
getAnimationHeader
-
getOrientation
public int getOrientation() -
getBitDepthHeader
-
modularUses16BitBuffers
public boolean modularUses16BitBuffers() -
getExtraChannelCount
public int getExtraChannelCount() -
getNumAlphaChannels
public int getNumAlphaChannels() -
hasAlpha
public boolean hasAlpha() -
getAlphaIndex
public int getAlphaIndex(int alphaChannel) -
getColorChannelCount
public int getColorChannelCount() -
getTotalChannelCount
public int getTotalChannelCount() -
getExtraChannelInfo
-
getAlphaChannel
-
isXYBEncoded
public boolean isXYBEncoded() -
getColorEncoding
-
getToneMapping
-
getOrientedSize
-
getExtensions
-
getOpsinInverseMatrix
-
getUp2Weights
public float[] getUp2Weights() -
getUp4Weights
public float[] getUp4Weights() -
getUp8Weights
public float[] getUp8Weights() -
getUpWeights
public float[][][][][] getUpWeights() -
setLevel
-
getICCPrediction
private int getICCPrediction(byte[] buffer, int i) -
shuffle
private byte[] shuffle(byte[] buffer, int width) -
getDecodedICC
- Throws:
IOException
-