|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoders.Encoder
public abstract class Encoder
| Field Summary | |
|---|---|
protected boolean |
encoded
Indicates whether the encode operation has been executed. |
protected Bitmap |
encodedBitmap
|
private double |
mse
Mean Squared Error. |
protected Bitmap |
originalBitmap
|
protected BitSequence |
payload
|
protected double |
psnr
|
protected boolean |
psnrComputed
Indicates whether the PSNR (peak signal-to-noise ratio) has been computed for this encoding. |
| Constructor Summary | |
|---|---|
Encoder(Bitmap originalBitmap,
BitSequence payload)
Initializes this encoder with the specified bitmap. |
|
| Method Summary | |
|---|---|
double |
computePSNR()
Computes and returns the PSNR (peak signal-to-noise ratio) for the current encoding. |
protected abstract void |
encode()
Encodes the current bitmap. |
Bitmap |
getEncodedBitmap()
Returns the encoded bitmap produced by this encoder, running the encode operation first if necessary. |
Bitmap |
getOriginalBitmap()
Returns the original bitmap used as the basis for encoding. |
BitSequence |
getPayload()
Retrieves the payload being encoded in the bitmap by this encoder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Bitmap originalBitmap
protected Bitmap encodedBitmap
protected BitSequence payload
protected boolean encoded
protected boolean psnrComputed
protected double psnr
private double mse
| Constructor Detail |
|---|
public Encoder(Bitmap originalBitmap,
BitSequence payload)
originalBitmap - | Method Detail |
|---|
protected abstract void encode()
public Bitmap getOriginalBitmap()
public Bitmap getEncodedBitmap()
public BitSequence getPayload()
public double computePSNR()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||