Package gov.nih.mipav.model.file
Class jxlatte.Frame
java.lang.Object
gov.nih.mipav.model.file.jxlatte.Frame
- Enclosing class:
jxlatte
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<CompletableFuture<jxlatte.Bitreader>> private jxlatte.Rectangleprivate jxlatte.ImageBuffer[]final int[]private booleanprivate jxlatte.Point[]private jxlatte.Point[]final jxlatte.ImageHeaderprivate jxlatte.Bitreaderprivate jxlatte.MATreeprivate intprivate jxlatte.FrameHeaderprivate jxlatte.HFGlobalprivate final float[][]private jxlatte.LFGlobalprivate intprivate jxlatte.LFGroup[]private jxlatte.Loggersprivate float[][][]private intprivate intprivate jxlatte.JXLOptionsprivate jxlatte.Pass[]private booleanprivate int[]private int[] -
Constructor Summary
ConstructorsConstructorDescriptionFrame()Frame(jxlatte.Bitreader reader, jxlatte.ImageHeader globalMetadata, jxlatte.Loggers loggers, jxlatte.JXLOptions options) Frame(jxlatte.Frame frame) Frame(jxlatte.Frame frame, boolean copyBuffer) -
Method Summary
Modifier and TypeMethodDescriptionvoiddecodeFrame(jxlatte.ImageBuffer[] lfBuffer) private voiddecodeLFGroups(jxlatte.ImageBuffer[] lfBuffer) private voiddecodePasses(jxlatte.Bitreader reader) private voidvoidprivate floatepfDistance1(float[][][] buffer, int colors, int basePosY, int basePosX, jxlatte.Point dCross, jxlatte.Dimension frameSize) private floatepfDistance2(float[][][] buffer, int colors, int basePosY, int basePosX, jxlatte.Point cross, jxlatte.Dimension frameSize) private floatepfWeight(float sigmaScale, float distance, float inverseSigma, int refY, int refX) private jxlatte.BitreadergetBitreader(int index) intintgetGroupLocation(int groupID) intgetGroupSize(int groupID) getHFPass(int index) getLFGroupForGroup(int groupID) getLFGroupLocation(int lfGroupID) returns the location of the LF Group, in LF Group unitsintgetLFGroupSize(int lfGroupID) returns the size of the LF Group, in pixelsintintgroupPosInLFGroup(int lfGroupID, int groupID) voidinitializeNoise(long seed0) private voidbooleanbooleanprivate voidprivate voidprivate jxlatte.ImageBufferperformUpsampling(jxlatte.ImageBuffer ib, int c) voidprivate byte[]readBuffer(int index) int[]readPermutation(jxlatte.Bitreader reader, jxlatte.EntropyStream stream, int size, int skip) voidreadTOC()voidvoidsetGlobalTree(jxlatte.MATree tree) voidvoidvoidupsample()
-
Field Details
-
cMap
public final int[] cMap -
epfCross
-
epfDoubleCross
-
laplacian
private final float[][] laplacian -
globalReader
-
header
-
numGroups
private int numGroups -
numLFGroups
private int numLFGroups -
bitreaders
-
tocPermutation
private int[] tocPermutation -
tocLengths
private int[] tocLengths -
lfGlobal
-
globalMetadata
-
permutedTOC
private boolean permutedTOC -
buffer
-
noiseBuffer
private float[][][] noiseBuffer -
passes
-
decoded
private boolean decoded -
hfGlobal
-
lfGroups
-
groupRowStride
private int groupRowStride -
lfGroupRowStride
private int lfGroupRowStride -
globalTree
-
bounds
-
loggers
-
options
-
-
Constructor Details
-
Frame
public Frame() -
Frame
public Frame(jxlatte.Bitreader reader, jxlatte.ImageHeader globalMetadata, jxlatte.Loggers loggers, jxlatte.JXLOptions options) -
Frame
-
Frame
-
-
Method Details
-
readFrameHeader
- Throws:
IOException
-
getFrameHeader
-
skipFrameData
- Throws:
IOException
-
readTOC
- Throws:
IOException
-
readBuffer
- Throws:
IOException
-
getBitreader
-
readPermutation
public int[] readPermutation(jxlatte.Bitreader reader, jxlatte.EntropyStream stream, int size, int skip) throws IOException - Throws:
IOException
-
performUpsampling
-
decodeLFGroups
- Throws:
IOException
-
decodePasses
- Throws:
IOException
-
decodePassGroups
- Throws:
IOException
-
decodeFrame
- Throws:
IOException
-
drawVarblocks
public void drawVarblocks() -
performGabConvolution
private void performGabConvolution() -
performEdgePreservingFilter
-
epfDistance1
private float epfDistance1(float[][][] buffer, int colors, int basePosY, int basePosX, jxlatte.Point dCross, jxlatte.Dimension frameSize) -
epfDistance2
private float epfDistance2(float[][][] buffer, int colors, int basePosY, int basePosX, jxlatte.Point cross, jxlatte.Dimension frameSize) -
epfWeight
private float epfWeight(float sigmaScale, float distance, float inverseSigma, int refY, int refX) -
invertSubsampling
private void invertSubsampling() -
upsample
public void upsample() -
renderSplines
public void renderSplines() -
initializeNoise
public void initializeNoise(long seed0) -
synthesizeNoise
public void synthesizeNoise() -
getLFGlobal
-
getHFGlobal
-
getHFPass
-
getLFGroupForGroup
-
getNumLFGroups
public int getNumLFGroups() -
getNumGroups
public int getNumGroups() -
getGroupRowStride
public int getGroupRowStride() -
getLFGroupRowStride
public int getLFGroupRowStride() -
getBuffer
-
getColorChannelCount
public int getColorChannelCount() -
isDecoded
public boolean isDecoded() -
getGroupLocation
-
getLFGroupLocation
returns the location of the LF Group, in LF Group units -
groupPosInLFGroup
-
getGroupSize
-
getLFGroupSize
returns the size of the LF Group, in pixels -
getPaddedFrameSize
-
getModularFrameSize
-
getGlobalTree
-
setGlobalTree
-
getGroupBlockDim
public int getGroupBlockDim() -
isVisible
public boolean isVisible() -
printDebugInfo
public void printDebugInfo() -
getLoggers
-