ar.com.hjg.pngj
Enum FilterType

java.lang.Object
  extended by java.lang.Enum<FilterType>
      extended by ar.com.hjg.pngj.FilterType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FilterType>

public enum FilterType
extends java.lang.Enum<FilterType>

Internal PNG predictor filter, or strategy to select it.


Enum Constant Summary
FILTER_AGGRESSIVE
          Aggressive strategy: select one of the above filters trying each of the filters (every 8 rows)
FILTER_AVERAGE
          AVERAGE filter
FILTER_CYCLIC
          Uses all fiters, one for lines, cyciclally.
FILTER_DEFAULT
          Default strategy: select one of the above filters depending on global image parameters
FILTER_NONE
          No filter.
FILTER_PAETH
          PAETH predictor
FILTER_SUB
          SUB filter (uses same row)
FILTER_UNKNOWN
          Not specified, placeholder for unknown or NA filters.
FILTER_UP
          UP filter (uses previous row)
FILTER_VERYAGGRESSIVE
          Very aggressive strategy: select one of the above filters trying each of the filters (for every row!)
 
Field Summary
 int val
           
 
Method Summary
static FilterType getByVal(int i)
           
static FilterType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FilterType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FILTER_AGGRESSIVE

public static final FilterType FILTER_AGGRESSIVE
Aggressive strategy: select one of the above filters trying each of the filters (every 8 rows)


FILTER_AVERAGE

public static final FilterType FILTER_AVERAGE
AVERAGE filter


FILTER_CYCLIC

public static final FilterType FILTER_CYCLIC
Uses all fiters, one for lines, cyciclally. Only for tests.


FILTER_DEFAULT

public static final FilterType FILTER_DEFAULT
Default strategy: select one of the above filters depending on global image parameters


FILTER_NONE

public static final FilterType FILTER_NONE
No filter.


FILTER_PAETH

public static final FilterType FILTER_PAETH
PAETH predictor


FILTER_SUB

public static final FilterType FILTER_SUB
SUB filter (uses same row)


FILTER_UNKNOWN

public static final FilterType FILTER_UNKNOWN
Not specified, placeholder for unknown or NA filters.


FILTER_UP

public static final FilterType FILTER_UP
UP filter (uses previous row)


FILTER_VERYAGGRESSIVE

public static final FilterType FILTER_VERYAGGRESSIVE
Very aggressive strategy: select one of the above filters trying each of the filters (for every row!)

Field Detail

val

public final int val
Method Detail

getByVal

public static FilterType getByVal(int i)

valueOf

public static FilterType 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

values

public static FilterType[] 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 (FilterType c : FilterType.values())
    System.out.println(c);

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