abstract class CoreEffect<T extends RenderState> extends FilterEffect<T>
Effect.AccelType
Modifier and Type | Field and Description |
---|---|
private int |
peerCount |
private java.lang.String |
peerKey |
DefaultInput
Constructor and Description |
---|
CoreEffect() |
CoreEffect(Effect input) |
CoreEffect(Effect input1,
Effect input2) |
Modifier and Type | Method and Description |
---|---|
ImageData |
filterImageDatas(FilterContext fctx,
BaseTransform transform,
Rectangle outputClip,
T rstate,
ImageData... inputs)
Convenience method that sends the given input data through the
current peer, and then attempts to release the input image data.
|
Effect.AccelType |
getAccelType(FilterContext fctx)
Returns one of the
AccelType values, indicating
whether this Effect is accelerated in hardware for the
given FilterContext . |
(package private) EffectPeer |
getPeer(FilterContext fctx,
ImageData[] inputs)
Returns an
EffectPeer that is most optimal for the size
of the operation, which is inferred from the given inputs. |
private EffectPeer |
getPeer(FilterContext fctx,
int approxW,
int approxH) |
(package private) void |
updatePeerKey(java.lang.String key) |
(package private) void |
updatePeerKey(java.lang.String key,
int unrollCount) |
filter, getBounds, getRenderState, transform, untransform, untransformClip
combineBounds, combineBounds, createCompatibleImage, ensureTransform, getCompatibleImage, getDefaultedInput, getDefaultedInput, getDirtyRegions, getInputs, getNumInputs, getResultBounds, getState, reducesOpaquePixels, releaseCompatibleImage, setInput, transformBounds
CoreEffect()
CoreEffect(Effect input)
final void updatePeerKey(java.lang.String key)
final void updatePeerKey(java.lang.String key, int unrollCount)
private EffectPeer getPeer(FilterContext fctx, int approxW, int approxH)
final EffectPeer getPeer(FilterContext fctx, ImageData[] inputs)
EffectPeer
that is most optimal for the size
of the operation, which is inferred from the given inputs.
For example, smaller operations may run faster in software (by
avoiding high overhead of shader-based operations) so here we choose
an appropriate Renderer/EffectPeer combination based on the
dimensions of the first input.public ImageData filterImageDatas(FilterContext fctx, BaseTransform transform, Rectangle outputClip, T rstate, ImageData... inputs)
filterImageDatas
in class FilterEffect<T extends RenderState>
public Effect.AccelType getAccelType(FilterContext fctx)
Effect
AccelType
values, indicating
whether this Effect
is accelerated in hardware for the
given FilterContext
.getAccelType
in class Effect
AccelType
values