Class VP8Frame
java.lang.Object
com.twelvemonkeys.imageio.plugins.webp.vp8.VP8Frame
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate final int[][][][]private final booleanprivate intprivate final ImageInputStreamprivate intprivate intprivate IIOReadProgressListenerprivate intprivate intprivate intprivate MacroBlock[][]private intprivate int[]private static final intprivate static final intprivate static final intprivate final int[]private intprivate intprivate intprivate longprivate static final intprivate final int[]private intprivate intprivate final byte[]private intprivate SegmentQuantsprivate intprivate booleanprivate BoolDecoderprivate final List<BoolDecoder> private intprivate intprivate intprivate final byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcopyBlock(MacroBlock macroBlock, WritableRaster byteRGBRaster, Rectangle region, int xSubsampling, int ySubsampling) private voidbooleandecode(WritableRaster raster, ImageReadParam param) private voiddecodeMacroBlockRow(int mbRow, WritableRaster raster, Rectangle region, int xSubsampling, int ySubsampling) private voidfireProgressUpdate(int mbRow) getAboveRightSubBlock(SubBlock sb, SubBlock.Plane plane) getAboveSubBlock(SubBlock sb, SubBlock.Plane plane) private intgetBitAsInt(int data, int bit) (package private) int[][][][]intintgetLeftSubBlock(SubBlock sb, SubBlock.Plane plane) getMacroBlock(int mbCol, int mbRow) intgetMacroBlockDebugString(int mbx, int mby, int sbx, int sby) intintintintgetWidth()private voidreadModes(BoolDecoder bc) private intreadPartitionSize(long l) private intreadSubBlockMode(BoolDecoder bc, int A, int L) private intprivate intreadYMode(BoolDecoder bc) voidsetProgressListener(IIOReadProgressListener listener) private voidsetupTokenDecoder(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)
-