/* */ {
/* 52 */ ImageLayout layout = RIFUtil.getImageLayoutHint(renderHints);
/* */
/* 56 */ BorderExtender extender = RIFUtil.getBorderExtenderHint(renderHints);
/* */
/* 60 */ KernelJAI unRotatedKernel = ImageUtil.getUnsharpMaskEquivalentKernel((KernelJAI)paramBlock.getObjectParameter(0), paramBlock.getFloatParameter(1));
/* */
/* 65 */ KernelJAI kJAI = unRotatedKernel.getRotatedKernel();
/* */
/* 67 */ RenderedImage source = paramBlock.getRenderedSource(0);
/* 68 */ int dataType = source.getSampleModel().getDataType();
/* */
/* 70 */ boolean dataTypeOk = (dataType == 0) || (dataType == 2) || (dataType == 3);
/* */
/* 74 */ if ((kJAI.getWidth() == 3) && (kJAI.getHeight() == 3) && (kJAI.getXOrigin() == 1) && (kJAI.getYOrigin() == 1) && (dataTypeOk))
/* */ {
/* 76 */ return new Convolve3x3OpImage(source, extender, renderHints, layout, kJAI);
/* */ }
/* */
/* 81 */ if (kJAI.isSeparable()) {
/* 82 */ return new SeparableConvolveOpImage(source, extender, renderHints, layout, kJAI);
/* */ }
/* */
/* 89 */ return new ConvolveOpImage(source, extender, renderHints, layout, kJAI);
/* */ }