Package org.geotools.image.jai
Class Registry
Object
Registry
A set of static methods for managing JAI's operation registry.
- Since:
- 2.2
- Author:
- Martin Desruisseaux (IRD), Andrea Aime - GeoSolutions
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
registerRIF
(JAI jai, OperationDescriptor descriptor, RenderedImageFactory rif, String productName) Forcefully registers the specified rendered operation in the JAI registrystatic boolean
registerRIF
(JAI jai, OperationDescriptor descriptor, String name, ContextualRenderedImageFactory crif) Register the "SampleTranscode" image operation to the operation registry of the specified JAI instance.static void
setNativeAccelerationAllowed
(String operation, boolean allowed) Deprecated.static void
setNativeAccelerationAllowed
(String operation, boolean allowed, JAI jai) Deprecated.
-
Field Details
-
JAI_TOOLS_PRODUCT
The JAITools product name (used to register operations in JAI)- See Also:
-
GEOTOOLS_PRODUCT
The GeoTools product name (used to register operations in JAI)- See Also:
-
-
Method Details
-
setNativeAccelerationAllowed
@Deprecated public static void setNativeAccelerationAllowed(String operation, boolean allowed, JAI jai) Deprecated.Native acceleration is no longer supported. -
setNativeAccelerationAllowed
Deprecated.Native acceleration is no longer supported. -
registerRIF
public static boolean registerRIF(JAI jai, OperationDescriptor descriptor, String name, ContextualRenderedImageFactory crif) Register the "SampleTranscode" image operation to the operation registry of the specified JAI instance. This method is invoked by the static initializer ofGridSampleDimension
.- Parameters:
jai
- is heJAI
instance in which we ant to register this operation.descriptor
- is theOperationDescriptor
for the JAI operation to register.name
- is the name of the operation to register.crif
- is the rendered image facotry for this operation.- Returns:
true
if everything goes well,false
otherwise.
-
registerRIF
public static boolean registerRIF(JAI jai, OperationDescriptor descriptor, RenderedImageFactory rif, String productName) Forcefully registers the specified rendered operation in the JAI registry- Returns:
- true if the registration succeded, false if the registration was not required as the operation was already available in the registry
-