Class SubBlock
- java.lang.Object
-
- com.twelvemonkeys.imageio.plugins.webp.vp8.SubBlock
-
final class SubBlock extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubBlock.Plane
-
Field Summary
Fields Modifier and Type Field Description private SubBlock
above
private int[][]
dest
private int[][]
diff
private boolean
hasNoZeroToken
private SubBlock
left
private MacroBlock
macroBlock
private int
mode
private SubBlock.Plane
plane
private int[][]
predict
private int[]
tokens
-
Constructor Summary
Constructors Constructor Description SubBlock(MacroBlock macroBlock, SubBlock above, SubBlock left, SubBlock.Plane plane)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
DCTextra(BoolDecoder bc2, int[] p)
void
decodeSubBlock(BoolDecoder bc2, int[][][][] coef_probs, int ilc, int type, boolean withY2)
private int
decodeToken(BoolDecoder bc2, int v)
void
dequantSubBlock(VP8Frame frame, java.lang.Integer Dc)
void
drawDebug()
void
drawDebugH()
void
drawDebugV()
SubBlock
getAbove()
java.lang.String
getDebugString()
int[][]
getDest()
int[][]
getDiff()
SubBlock
getLeft()
MacroBlock
getMacroBlock()
int[][]
getMacroBlockPredict(int intra_mode)
int
getMode()
SubBlock.Plane
getPlane()
int[][]
getPredict()
int[][]
getPredict(int intra_bmode, boolean left)
(package private) int[]
getTokens()
boolean
hasNoZeroToken()
boolean
isDest()
static int
planeToType(SubBlock.Plane plane, boolean withY2)
void
predict(VP8Frame frame)
void
reconstruct()
void
setDest(int[][] dest)
void
setDiff(int[][] diff)
void
setMode(int mode)
void
setPixel(int x, int y, int p)
void
setPredict(int[][] predict)
java.lang.String
toString()
-
-
-
Field Detail
-
above
private final SubBlock above
-
dest
private int[][] dest
-
diff
private int[][] diff
-
hasNoZeroToken
private boolean hasNoZeroToken
-
left
private final SubBlock left
-
macroBlock
private final MacroBlock macroBlock
-
mode
private int mode
-
plane
private final SubBlock.Plane plane
-
predict
private int[][] predict
-
tokens
private int[] tokens
-
-
Constructor Detail
-
SubBlock
SubBlock(MacroBlock macroBlock, SubBlock above, SubBlock left, SubBlock.Plane plane)
-
-
Method Detail
-
planeToType
public static int planeToType(SubBlock.Plane plane, boolean withY2)
-
DCTextra
private int DCTextra(BoolDecoder bc2, int[] p) throws java.io.IOException
- Throws:
java.io.IOException
-
decodeSubBlock
public void decodeSubBlock(BoolDecoder bc2, int[][][][] coef_probs, int ilc, int type, boolean withY2) throws java.io.IOException
- Throws:
java.io.IOException
-
decodeToken
private int decodeToken(BoolDecoder bc2, int v) throws java.io.IOException
- Throws:
java.io.IOException
-
dequantSubBlock
public void dequantSubBlock(VP8Frame frame, java.lang.Integer Dc)
-
drawDebug
public void drawDebug()
-
drawDebugH
public void drawDebugH()
-
drawDebugV
public void drawDebugV()
-
getAbove
public SubBlock getAbove()
-
getDebugString
public java.lang.String getDebugString()
-
getDest
public int[][] getDest()
-
getDiff
public int[][] getDiff()
-
getLeft
public SubBlock getLeft()
-
getMacroBlock
public MacroBlock getMacroBlock()
-
getMacroBlockPredict
public int[][] getMacroBlockPredict(int intra_mode)
-
getMode
public int getMode()
-
getPlane
public SubBlock.Plane getPlane()
-
getPredict
public int[][] getPredict()
-
getPredict
public int[][] getPredict(int intra_bmode, boolean left)
-
getTokens
int[] getTokens()
-
hasNoZeroToken
public boolean hasNoZeroToken()
-
isDest
public boolean isDest()
-
predict
public void predict(VP8Frame frame)
-
reconstruct
public void reconstruct()
-
setDest
public void setDest(int[][] dest)
-
setDiff
public void setDiff(int[][] diff)
-
setMode
public void setMode(int mode)
-
setPixel
public void setPixel(int x, int y, int p)
-
setPredict
public void setPredict(int[][] predict)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-