public class VP8Util extends Object
Modifier and Type | Class and Description |
---|---|
static class |
VP8Util.PLANE |
static class |
VP8Util.QuantizationParams |
static class |
VP8Util.SubblockConstants |
Modifier and Type | Field and Description |
---|---|
static int |
BLOCK_TYPES |
static int |
COEF_BANDS |
static int[] |
keyFrameYModeProb |
static int[] |
keyFrameYModeTree
Left branch is picked if 0 is decoded, right branch is picked
if 1 is decoded.
|
static int |
MAX_ENTROPY_TOKENS |
static int |
MAX_MODE_LF_DELTAS |
static int |
MAX_REF_LF_DELTAS |
static int |
MB_FEATURE_TREE_PROBS |
static int[] |
PRED_BLOCK_127 |
static int[] |
PRED_BLOCK_129 |
static int |
PREV_COEF_CONTEXTS |
static int[] |
segmentTree |
static int[] |
vp8KeyFrameUVModeProb |
static int[] |
vp8UVModeTree
+-----------------------------+
| root |
| / \ |
| -DC_PRED 2 |
| / \ |
| -V_PRED 4 |
| / \ |
| -H_PRED -TM_PRED |
+-----------------------------+
|
Constructor and Description |
---|
VP8Util() |
Modifier and Type | Method and Description |
---|---|
static int |
avg2(int x,
int y) |
static int |
avg3(int x,
int y,
int z) |
static int |
delta(VPXBooleanDecoder bc)
delta() is the process to read 5 bits from the bitstream to determine a signed delta value:
+-------+--------------------------------------------------+
| Index | Description |
+-------+--------------------------------------------------+
| L(4) | Magnitude of delta |
| L(1) | Sign of delta, 0 for positive and 1 for negative |
+-------+--------------------------------------------------+
|
static int |
getBitInBytes(byte[] bs,
int i) |
static int |
getBitsInBytes(byte[] bytes,
int idx,
int len) |
static int[][][][] |
getDefaultCoefProbs() |
static int |
getMacroblockCount(int dimention) |
static int[] |
pickDefaultPrediction(int intra_bmode) |
static int |
planeToType(VP8Util.PLANE plane,
Boolean withY2) |
static int[] |
predictDC(int[] above,
int[] left) |
static int[] |
predictHD(int[] above,
int[] left,
int aboveLeft) |
static int[] |
predictHE(int[] left,
int aboveLeft) |
static int[] |
predictHU(int[] left) |
static int[] |
predictLD(int[] above,
int[] aboveRight) |
static int[] |
predictRD(int[] above,
int[] left,
int aboveLeft)
E4|E5|E6|E7|E8|
__|__|__|__|__|
E3|
__|
E2|
__|
E1|
__|
E0|
__|
|
static int[] |
predictTM(int[] above,
int[] left,
int aboveLeft) |
static int[] |
predictVE(int[] above,
int aboveLeft,
int[] aboveRight)
avg3(Pixel x, Pixel y, Pixel z) { avg2(Pixel x, Pixel y) { return (x + y + 1) >> 1;}
|
static int[] |
predictVL(int[] above,
int[] aboveRight) |
static int[] |
predictVR(int[] above,
int[] left,
int aboveLeft) |
public static final int BLOCK_TYPES
public static final int COEF_BANDS
public static final int PREV_COEF_CONTEXTS
public static final int MAX_ENTROPY_TOKENS
public static final int MAX_MODE_LF_DELTAS
public static final int MAX_REF_LF_DELTAS
public static final int MB_FEATURE_TREE_PROBS
public static int[] vp8KeyFrameUVModeProb
public static int[] vp8UVModeTree
+-----------------------------+ | root | | / \ | | -DC_PRED 2 | | / \ | | -V_PRED 4 | | / \ | | -H_PRED -TM_PRED | +-----------------------------+
public static int[] keyFrameYModeProb
public static int[] keyFrameYModeTree
+------------------------------------------+ | root | | / \ | | -B_PRED 2------------ | | / \ | | 4 6---- | | / \ / \ | | -DC_PRED -V_PRED -H_PRED -TM_PRED | +------------------------------------------+
public static int[] segmentTree
public static final int[] PRED_BLOCK_127
public static final int[] PRED_BLOCK_129
public static int delta(VPXBooleanDecoder bc)
bc
- IOException
public static int[][][][] getDefaultCoefProbs()
public static int getBitInBytes(byte[] bs, int i)
public static int getBitsInBytes(byte[] bytes, int idx, int len)
public static int getMacroblockCount(int dimention)
public static int[] pickDefaultPrediction(int intra_bmode)
public static int[] predictHU(int[] left)
public static int[] predictHD(int[] above, int[] left, int aboveLeft)
public static int[] predictVL(int[] above, int[] aboveRight)
public static int[] predictVR(int[] above, int[] left, int aboveLeft)
public static int[] predictRD(int[] above, int[] left, int aboveLeft)
E4|E5|E6|E7|E8| __|__|__|__|__| E3| __| E2| __| E1| __| E0| __|
above
- left
- aboveLeft
- public static int[] predictLD(int[] above, int[] aboveRight)
public static int[] predictHE(int[] left, int aboveLeft)
public static int[] predictVE(int[] above, int aboveLeft, int[] aboveRight)
above
- aboveLeft
- aboveRight
- public static int avg2(int x, int y)
public static int avg3(int x, int y, int z)
public static int[] predictTM(int[] above, int[] left, int aboveLeft)
public static int[] predictDC(int[] above, int[] left)
public static int planeToType(VP8Util.PLANE plane, Boolean withY2)
Copyright © 2019. All rights reserved.