|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfi.helsinki.cs.ohtu.mpeg2.video.IntraBlock.Predictors
public static class IntraBlock.Predictors
Encapsulates the predictors used in the encoding of intra blocks. Writing
a IntraBlock to a stream also updates the predictors for the next
block to be written with the same IntraBlock.Predictors instance.
This class can be thought of as a common context for writing out blocks
that holds the next predictors to use as global state.
| Field Summary | |
|---|---|
private int |
chrominance1
|
private int |
chrominance2
|
private int |
intraDCPrecision
|
private int |
luminance
|
| Constructor Summary | |
|---|---|
IntraBlock.Predictors(int intraDCPrecision)
Initializes a Predictors instance. |
|
| Method Summary | |
|---|---|
int |
getIntraDCPrecision()
Returns the currently used intra DC precision. |
protected int |
getPredictor(IntraBlock.ColourComponent cc)
Returns the predictor to use for the next DC coefficient with the specified colour component. |
void |
reset()
Resets the predictors to the values specified in the standard. |
void |
setIntraDCPrecision(int intraDCPrecision)
Updates the intra DC precision in use. |
protected void |
setPredictor(IntraBlock.ColourComponent cc,
int value)
Sets the predictor for the next DC coefficient with the specified colour component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int luminance
private int chrominance1
private int chrominance2
private int intraDCPrecision
| Constructor Detail |
|---|
public IntraBlock.Predictors(int intraDCPrecision)
intraDCPrecision - The precision in use for DC coefficients of intra blocks.
Must be in range [0..3].| Method Detail |
|---|
public void setIntraDCPrecision(int intraDCPrecision)
intraDCPrecision - The precision in use for DC coefficients of intra blocks.
Must be in range [0..3].public int getIntraDCPrecision()
public void reset()
protected int getPredictor(IntraBlock.ColourComponent cc)
cc - The colour component for which to get the predictor.
protected void setPredictor(IntraBlock.ColourComponent cc,
int value)
cc - The colour component for which to set the predictor.value - The new value for the predictor.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||