Top Description Fields Constructors Methods
jogamp.opengl.util.pngj

pack-priv Class FilterWriteStrategy

extends Object
Class Inheritance

Manages the writer strategy for selecting the internal png predictor filter

Field Summary

Modifier and TypeField and Description
private static final int
public final FilterType
private FilterType
private int
private final double[]
pack-priv final ImageInfo
private final double[]
private int
private final double[]
private double[]

Constructor Summary

AccessConstructor and Description
pack-priv
FilterWriteStrategy(final ImageInfo imgInfo, final FilterType configuredType)

Method Summary

Modifier and TypeMethod and Description
public boolean
pack-priv void
fillResultsForFilter(final int rown, final FilterType type, final double sum, final int[] histo, final boolean tentative)

pack-priv FilterType
gimmeFilterType(final int rown, final boolean useEntropy)

public void
setPreference(final double none, final double sub, final double up, final double ave, final double paeth)

pack-priv boolean
shouldTestAll(final int rown)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

COMPUTE_STATS_EVERY_N_LINESback to summary
private static final int COMPUTE_STATS_EVERY_N_LINES
configuredTypeback to summary
public final FilterType configuredType
currentTypeback to summary
private FilterType currentType
discoverEachLinesback to summary
private int discoverEachLines
histogram1back to summary
private final double[] histogram1
imgInfoback to summary
pack-priv final ImageInfo imgInfo
lastEntropiesback to summary
private final double[] lastEntropies
lastRowTestedback to summary
private int lastRowTested
lastSumsback to summary
private final double[] lastSums
preferenceback to summary
private double[] preference

Constructor Detail

FilterWriteStrategyback to summary
pack-priv FilterWriteStrategy(final ImageInfo imgInfo, final FilterType configuredType)

Method Detail

computesStatisticsback to summary
public boolean computesStatistics()
fillResultsForFilterback to summary
pack-priv void fillResultsForFilter(final int rown, final FilterType type, final double sum, final int[] histo, final boolean tentative)
gimmeFilterTypeback to summary
pack-priv FilterType gimmeFilterType(final int rown, final boolean useEntropy)
setPreferenceback to summary
public void setPreference(final double none, final double sub, final double up, final double ave, final double paeth)
shouldTestAllback to summary
pack-priv boolean shouldTestAll(final int rown)