cz.cuni.jagrlib.piece
Enum ImagePredictor.PredictorType

java.lang.Object
  extended by java.lang.Enum<ImagePredictor.PredictorType>
      extended by cz.cuni.jagrlib.piece.ImagePredictor.PredictorType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ImagePredictor.PredictorType>
Enclosing class:
ImagePredictor

protected static enum ImagePredictor.PredictorType
extends java.lang.Enum<ImagePredictor.PredictorType>

Implemented predictors. Basic schema (X is pixel to be predicted):

   A   B
     \ |
   C - X
 


Enum Constant Summary
PREDICT_HORIZONTAL
          Horizontal predictor (C). #1 in JPEG.
PREDICT_LEFTMOST
          Leftmost predictor (C + (B - A) / 2). #5 in JPEG.
PREDICT_NEAR
          Two nearest neighbours ((B + C) / 2). #7 in JPEG.
PREDICT_NONE
          Void predictor (0). #0 in JPEG.
PREDICT_OBLIQUE
          Oblique predictor (A). #3 in JPEG.
PREDICT_PLANAR
          Planar predictor (B + C - A). #4 in JPEG.
PREDICT_UPMOST
          Upmost predictor (B + (C - A) / 2). #6 in JPEG.
PREDICT_VERTICAL
          Vertical predictor (B). #2 in JPEG.
 
Method Summary
static ImagePredictor.PredictorType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ImagePredictor.PredictorType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PREDICT_NONE

public static final ImagePredictor.PredictorType PREDICT_NONE
Void predictor (0). #0 in JPEG.


PREDICT_HORIZONTAL

public static final ImagePredictor.PredictorType PREDICT_HORIZONTAL
Horizontal predictor (C). #1 in JPEG.


PREDICT_VERTICAL

public static final ImagePredictor.PredictorType PREDICT_VERTICAL
Vertical predictor (B). #2 in JPEG.


PREDICT_OBLIQUE

public static final ImagePredictor.PredictorType PREDICT_OBLIQUE
Oblique predictor (A). #3 in JPEG.


PREDICT_PLANAR

public static final ImagePredictor.PredictorType PREDICT_PLANAR
Planar predictor (B + C - A). #4 in JPEG.


PREDICT_LEFTMOST

public static final ImagePredictor.PredictorType PREDICT_LEFTMOST
Leftmost predictor (C + (B - A) / 2). #5 in JPEG.


PREDICT_UPMOST

public static final ImagePredictor.PredictorType PREDICT_UPMOST
Upmost predictor (B + (C - A) / 2). #6 in JPEG.


PREDICT_NEAR

public static final ImagePredictor.PredictorType PREDICT_NEAR
Two nearest neighbours ((B + C) / 2). #7 in JPEG.

Method Detail

values

public static ImagePredictor.PredictorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ImagePredictor.PredictorType c : ImagePredictor.PredictorType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ImagePredictor.PredictorType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null