Class VP8Frame
java.lang.Object
com.twelvemonkeys.imageio.plugins.webp.vp8.VP8Frame
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
private final int[][][][]
private final boolean
private int
private final ImageInputStream
private int
private int
private IIOReadProgressListener
private int
private int
private int
private MacroBlock[][]
private int
private int[]
private static final int
private static final int
private static final int
private final int[]
private int
private int
private int
private long
private static final int
private final int[]
private int
private int
private final byte[]
private int
private SegmentQuants
private int
private boolean
private BoolDecoder
private final List
<BoolDecoder> private int
private int
private int
private final byte[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
copyBlock
(MacroBlock macroBlock, WritableRaster byteRGBRaster, Rectangle region, int xSubsampling, int ySubsampling) private void
boolean
decode
(WritableRaster raster, ImageReadParam param) private void
decodeMacroBlockRow
(int mbRow, WritableRaster raster, Rectangle region, int xSubsampling, int ySubsampling) private void
fireProgressUpdate
(int mbRow) getAboveRightSubBlock
(SubBlock sb, SubBlock.Plane plane) getAboveSubBlock
(SubBlock sb, SubBlock.Plane plane) private int
getBitAsInt
(int data, int bit) (package private) int[][][][]
int
int
getLeftSubBlock
(SubBlock sb, SubBlock.Plane plane) getMacroBlock
(int mbCol, int mbRow) int
getMacroBlockDebugString
(int mbx, int mby, int sbx, int sby) int
int
int
int
getWidth()
private void
readModes
(BoolDecoder bc) private int
readPartitionSize
(long l) private int
readSubBlockMode
(BoolDecoder bc, int A, int L) private int
private int
readYMode
(BoolDecoder bc) void
setProgressListener
(IIOReadProgressListener listener) private void
setupTokenDecoder
(BoolDecoder bc, int first_partition_length_in_bytes, long offset)
-
Field Details
-
BLOCK_TYPES
private static final int BLOCK_TYPES- See Also:
-
COEF_BANDS
private static final int COEF_BANDS- See Also:
-
MAX_ENTROPY_TOKENS
private static final int MAX_ENTROPY_TOKENS- See Also:
-
MAX_MODE_LF_DELTAS
private static final int MAX_MODE_LF_DELTAS- See Also:
-
MAX_REF_LF_DELTAS
private static final int MAX_REF_LF_DELTAS- See Also:
-
PREV_COEF_CONTEXTS
private static final int PREV_COEF_CONTEXTS- See Also:
-
listener
-
coefProbs
private final int[][][][] coefProbs -
filterLevel
private int filterLevel -
frame
-
debug
private final boolean debug -
frameType
private int frameType -
height
private int height -
macroBlockCols
private int macroBlockCols -
macroBlockNoCoeffSkip
private int macroBlockNoCoeffSkip -
macroBlockRows
private int macroBlockRows -
macroBlocks
-
macroBlockSegementAbsoluteDelta
private int macroBlockSegementAbsoluteDelta -
macroBlockSegmentTreeProbs
private int[] macroBlockSegmentTreeProbs -
modeLoopFilterDeltas
private final int[] modeLoopFilterDeltas -
modeRefLoopFilterDeltaEnabled
private int modeRefLoopFilterDeltaEnabled -
modeRefLoopFilterDeltaUpdate
private int modeRefLoopFilterDeltaUpdate -
multiTokenPartition
private int multiTokenPartition -
offset
private long offset -
refLoopFilterDeltas
private final int[] refLoopFilterDeltas -
refreshEntropyProbs
private int refreshEntropyProbs -
refreshLastFrame
private int refreshLastFrame -
segmentationIsEnabled
private int segmentationIsEnabled -
segmentQuants
-
sharpnessLevel
private int sharpnessLevel -
simpleFilter
private boolean simpleFilter -
tokenBoolDecoder
-
tokenBoolDecoders
-
updateMacroBlockSegmentationMap
private int updateMacroBlockSegmentationMap -
updateMacroBlockSegmentatonData
private int updateMacroBlockSegmentatonData -
width
private int width -
yuv
private final byte[] yuv -
rgb
private final byte[] rgb
-
-
Constructor Details
-
VP8Frame
- Throws:
IOException
-
-
Method Details
-
setProgressListener
-
createMacroBlocks
private void createMacroBlocks() -
decode
- Throws:
IOException
-
decodeMacroBlockRow
private void decodeMacroBlockRow(int mbRow, WritableRaster raster, Rectangle region, int xSubsampling, int ySubsampling) throws IOException - Throws:
IOException
-
fireProgressUpdate
private void fireProgressUpdate(int mbRow) -
getAboveRightSubBlock
-
getAboveSubBlock
-
getBitAsInt
private int getBitAsInt(int data, int bit) -
getCoefProbs
int[][][][] getCoefProbs() -
getDebugImageDiff
-
getDebugImagePredict
-
getDebugImageUBuffer
-
getDebugImageUDiffBuffer
-
getDebugImageUPredBuffer
-
getDebugImageVBuffer
-
getDebugImageVDiffBuffer
-
getDebugImageVPredBuffer
-
getDebugImageYBuffer
-
getDebugImageYDiffBuffer
-
getDebugImageYPredBuffer
-
getFrameType
public int getFrameType() -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getLeftSubBlock
-
getMacroBlock
-
getMacroBlockCols
public int getMacroBlockCols() -
getMacroBlockDebugString
-
getMacroBlockRows
public int getMacroBlockRows() -
getQIndex
public int getQIndex() -
getSegmentQuants
-
getSharpnessLevel
public int getSharpnessLevel() -
getTokenBoolDecoder
- Throws:
IOException
-
readModes
- Throws:
IOException
-
readPartitionSize
- Throws:
IOException
-
readSubBlockMode
- Throws:
IOException
-
readUvMode
- Throws:
IOException
-
readYMode
- Throws:
IOException
-
setupTokenDecoder
private void setupTokenDecoder(BoolDecoder bc, int first_partition_length_in_bytes, long offset) throws IOException - Throws:
IOException
-
copyBlock
private void copyBlock(MacroBlock macroBlock, WritableRaster byteRGBRaster, Rectangle region, int xSubsampling, int ySubsampling)
-