| Modifier and Type | Class and Description |
|---|---|
| public static enum | Effect.
A set of values that represent the possible levels of acceleration
for an |
| Modifier and Type | Field and Description |
|---|---|
| public static final Effect | DefaultInput
A convenient constant for using a readable value to specify
a |
| private final List | |
| private final int | |
| private final List |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static BaseBounds | |
| public static Rectangle | |
| public static Filterable | Returns: a new image with the given dimensions, or null if one can't be createdthe fctx, int FilterContext for the target screen devicethe width of the image w, int the height of the image h)Returns a new image that is most compatible with the
given |
| protected ImageData | |
| public abstract ImageData | Returns: theImageData holding the result of this filter
operation or null if the filter had no output or used the
renderHelper to render its results directly.the fctx, BaseTransform FilterContext that determines the
environment (e.g. the graphics device or code path) on which
the filter operation will be performedan optional transform under which the filter and
its inputs will be viewed transform, Rectangle the device space (pixel) bounds of the output
image or window or clip into which the result of the Effect will
be rendered, or null if the output dimensions are not known. outputClip, Object an object which might be used to render
the results of the effect directly. renderHelper, Effect the default input defaultInput)Effect to be used in
all cases where a filter has a null input.Applies this filter effect to the series of images represented by
the input |
| public abstract Effect. | Returns: one of theAccelType valuesReturns one of the |
| public abstract BaseBounds | Returns: the bounding box of this filterthe transform the effect will be viewed under transform, Effect the default input defaultInput)Effect to be used in
all cases where a filter has a null inputReturns the bounding box that will be affected by this filter
operation when viewed under the specified |
| public static Filterable | Returns: an image with the given dimensions or null if one can't be createdthe fctx, int FilterContext for the target screen devicethe width of the image w, int the height of the image h)Returns an image that is most compatible with the
given |
| pack-priv Effect | |
| pack-priv static Effect | |
| public DirtyRegionContainer | Returns: the dirty region containerthe default input defaultInput, DirtyRegionPool Effect to be used in
all cases where a filter has a null inputthe pool of dirty regions regionPool)Returns the dirty region container containing dirty regions affected by this filter operation. |
| public final List | Returns: the list of inputEffectsReturns the (immutable) list of input |
| public int | Returns: the number of inputs for thisEffectReturns the number of inputs processed by this |
| public Rectangle | |
| pack-priv Object | |
| public abstract boolean | Returns: true if this effect may reduce opacity of some pixels of one of it's input (and thus the default input) or it's relevant input(s) might have reduced opaque pixels of the default input already.Whether an opacity for any pixel is different (lower) than the corresponding pixel in the default input. |
| public static void | releaseCompatibleImage(FilterContext
the fctx, Filterable FilterContext for the target screen devicethe image to be released image)Releases an image created by the
|
| protected void | |
| public Point2D | Returns: the transformed point in the coordinate space of the resultthe point in the coordinate space of the primary content
input to be transformed p, Effect the default input defaultInput)Effect to be used in
all cases where a filter has a null inputTransform the specified point |
| public static BaseBounds | |
| public Point2D | Returns: the untransformed point in the coordinate space of the primary content inputthe point in the coordinate space of the result output
to be transformed p, Effect the default input defaultInput)Effect to be used in
all cases where a filter has a null inputTransform the specified point |
| DefaultInput | back to summary |
|---|---|
| public static final Effect DefaultInput A convenient constant for using a readable value to specify
a | |
| inputs | back to summary |
|---|---|
| private final List<Effect> inputs | |
| maxInputs | back to summary |
|---|---|
| private final int maxInputs | |
| unmodifiableInputs | back to summary |
|---|---|
| private final List<Effect> unmodifiableInputs | |
| Effect | back to summary |
|---|---|
| protected Effect() Constructs an | |
| Effect | back to summary |
|---|---|
| protected Effect(Effect input) Constructs an
| |
| Effect | back to summary |
|---|---|
| protected Effect(Effect input1, Effect input2) Constructs an | |
| combineBounds | back to summary |
|---|---|
| public static BaseBounds combineBounds(BaseBounds... inputBounds) | |
| combineBounds | back to summary |
|---|---|
| public static Rectangle combineBounds(Rectangle... inputBounds) | |
| createCompatibleImage | back to summary |
|---|---|
| public static Filterable createCompatibleImage(FilterContext fctx, int w, int h) Returns a new image that is most compatible with the
given
| |
| ensureTransform | back to summary |
|---|---|
| protected ImageData ensureTransform(FilterContext fctx, ImageData original, BaseTransform transform, Rectangle clip) | |
| filter | back to summary |
|---|---|
| public abstract ImageData filter(FilterContext fctx, BaseTransform transform, Rectangle outputClip, Object renderHelper, Effect defaultInput) Applies this filter effect to the series of images represented by
the input
The filter might be able to use the
Note that the
boolean valid;
do {
ImageData res = filter(fctx, transform, clip, renderer, defaultInput);
if (res == null) {
break;
}
if (valid = res.validate(fctx)) {
// Render res.getImage() to the appropriate destination
// or use it as an input to another chain of effects.
}
res.unref();
} while (!valid);
| |
| getAccelType | back to summary |
|---|---|
| public abstract Effect. Returns one of the | |
| getBounds | back to summary |
|---|---|
| public abstract BaseBounds getBounds(BaseTransform transform, Effect defaultInput) Returns the bounding box that will be affected by this filter
operation when viewed under the specified
| |
| getCompatibleImage | back to summary |
|---|---|
| public static Filterable getCompatibleImage(FilterContext fctx, int w, int h) Returns an image that is most compatible with the
given
Note that the framework attempts to pool images for recycling purposes
whenever possible. Therefore, when finished using an image returned
by this method, it is highly recommended that you
| |
| getDefaultedInput | back to summary |
|---|---|
| pack-priv Effect getDefaultedInput(int inputIndex, Effect defaultInput) | |
| getDefaultedInput | back to summary |
|---|---|
| pack-priv static Effect getDefaultedInput(Effect listedInput, Effect defaultInput) | |
| getDirtyRegions | back to summary |
|---|---|
| public DirtyRegionContainer getDirtyRegions(Effect defaultInput, DirtyRegionPool regionPool) Returns the dirty region container containing dirty regions affected by this filter operation.
| |
| getInputs | back to summary |
|---|---|
| public final List Returns the (immutable) list of input | |
| getNumInputs | back to summary |
|---|---|
| public int getNumInputs() Returns the number of inputs processed by this
| |
| getResultBounds | back to summary |
|---|---|
| public Rectangle getResultBounds(BaseTransform transform, Rectangle outputClip, ImageData... inputDatas) | |
| getState | back to summary |
|---|---|
| pack-priv Object getState() Returns state object that is associated with this effect instance. Subclasses may override this method to return some sort of state object that contains implementation details that are hidden from the public API. Classes outside this package can use the AccessHelper class to get access to this package-private method. | |
| reducesOpaquePixels | back to summary |
|---|---|
| public abstract boolean reducesOpaquePixels() Whether an opacity for any pixel is different (lower) than the corresponding pixel in the default input. It is always safe to return true from this method, though the consequences may be that the caller chooses to not utilize a planned optimization.
| |
| releaseCompatibleImage | back to summary |
|---|---|
| public static void releaseCompatibleImage(FilterContext fctx, Filterable image) Releases an image created by the
| |
| setInput | back to summary |
|---|---|
| protected void setInput(int index, Effect input) Sets the indexed input for this
| |
| transform | back to summary |
|---|---|
| public Point2D transform(Point2D p, Effect defaultInput) Transform the specified point
The definition of which input represents the primary content input
and how the coordinate space of that input compares to the coordinate
space of the result varies from effect to effect.
Note that some effects may have a reasonable definition of how to
map source coordinates to destination coordinates, but not the
reverse.
In particular, effects which map source coordinates discontiguously
into the result may have several output coordinates that are affected
by a given input coordinate and may choose to return one of many
equally valid answers, or an undefined result such as | |
| transformBounds | back to summary |
|---|---|
| public static BaseBounds transformBounds(BaseTransform tx, BaseBounds r) | |
| untransform | back to summary |
|---|---|
| public Point2D untransform(Point2D p, Effect defaultInput) Transform the specified point
The definition of which input represents the primary content input
and how the coordinate space of that input compares to the coordinate
space of the result varies from effect to effect.
Note that some effects may have a reasonable definition of how to
map destination coordinates back to source coordinates, but not the
reverse.
In particular, effects which produce entirely synthetic results not
based on any content input may not be able to give a meaningful
result to this query and may return undefined coordinates such as
| |
Effect implementation.
Effect#getAccelType
| Modifier and Type | Field and Description |
|---|---|
| public static final Effect. | DIRECT3D
Indicates that this |
| public static final Effect. | FIXED
Indicates that this |
| public static final Effect. | INTRINSIC
Indicates that this |
| public static final Effect. | NONE
Indicates that this |
| public static final Effect. | OPENGL
Indicates that this |
| public static final Effect. | SIMD
Indicates that this |
| private String |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. Returns the name of this enum constant, as contained in the declaration. |
| public static Effect. | |
| public static Effect. |
| DIRECT3D | back to summary |
|---|---|
| public static final Effect. Indicates that this | |
| FIXED | back to summary |
|---|---|
| public static final Effect. Indicates that this | |
| INTRINSIC | back to summary |
|---|---|
| public static final Effect. Indicates that this | |
| NONE | back to summary |
|---|---|
| public static final Effect. Indicates that this | |
| OPENGL | back to summary |
|---|---|
| public static final Effect. Indicates that this | |
| SIMD | back to summary |
|---|---|
| public static final Effect. Indicates that this | |
| text | back to summary |
|---|---|
| private String text | |
| AccelType | back to summary |
|---|---|
| private AccelType(String text) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists.
| |
| valueOf | back to summary |
|---|---|
| public static Effect. | |
| values | back to summary |
|---|---|
| public static Effect. | |