Loading graphics/java/android/renderscript/ScriptIntrinsicConvolve3x3.java +8 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,10 @@ public final class ScriptIntrinsicConvolve3x3 extends ScriptIntrinsic { } /** * Supported elements types are {@link Element#U8_4} * Supported elements types are {@link Element#U8}, {@link * Element#U8_2}, {@link Element#U8_3}, {@link Element#U8_4}, * {@link Element#F32}, {@link Element#F32_2}, {@link * Element#F32_3}, and {@link Element#F32_4} * * The default coefficients are. * Loading @@ -49,8 +52,12 @@ public final class ScriptIntrinsicConvolve3x3 extends ScriptIntrinsic { public static ScriptIntrinsicConvolve3x3 create(RenderScript rs, Element e) { float f[] = { 0, 0, 0, 0, 1, 0, 0, 0, 0}; if (!e.isCompatible(Element.U8(rs)) && !e.isCompatible(Element.U8_2(rs)) && !e.isCompatible(Element.U8_3(rs)) && !e.isCompatible(Element.U8_4(rs)) && !e.isCompatible(Element.F32(rs)) && !e.isCompatible(Element.F32_2(rs)) && !e.isCompatible(Element.F32_3(rs)) && !e.isCompatible(Element.F32_4(rs))) { throw new RSIllegalArgumentException("Unsuported element type."); } Loading graphics/java/android/renderscript/ScriptIntrinsicConvolve5x5.java +8 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,10 @@ public final class ScriptIntrinsicConvolve5x5 extends ScriptIntrinsic { } /** * Supported elements types are {@link Element#U8_4} * Supported elements types are {@link Element#U8}, {@link * Element#U8_2}, {@link Element#U8_3}, {@link Element#U8_4}, * {@link Element#F32}, {@link Element#F32_2}, {@link * Element#F32_3}, and {@link Element#F32_4} * * The default coefficients are. * <code> Loading @@ -49,8 +52,12 @@ public final class ScriptIntrinsicConvolve5x5 extends ScriptIntrinsic { */ public static ScriptIntrinsicConvolve5x5 create(RenderScript rs, Element e) { if (!e.isCompatible(Element.U8(rs)) && !e.isCompatible(Element.U8_2(rs)) && !e.isCompatible(Element.U8_3(rs)) && !e.isCompatible(Element.U8_4(rs)) && !e.isCompatible(Element.F32(rs)) && !e.isCompatible(Element.F32_2(rs)) && !e.isCompatible(Element.F32_3(rs)) && !e.isCompatible(Element.F32_4(rs))) { throw new RSIllegalArgumentException("Unsuported element type."); } Loading Loading
graphics/java/android/renderscript/ScriptIntrinsicConvolve3x3.java +8 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,10 @@ public final class ScriptIntrinsicConvolve3x3 extends ScriptIntrinsic { } /** * Supported elements types are {@link Element#U8_4} * Supported elements types are {@link Element#U8}, {@link * Element#U8_2}, {@link Element#U8_3}, {@link Element#U8_4}, * {@link Element#F32}, {@link Element#F32_2}, {@link * Element#F32_3}, and {@link Element#F32_4} * * The default coefficients are. * Loading @@ -49,8 +52,12 @@ public final class ScriptIntrinsicConvolve3x3 extends ScriptIntrinsic { public static ScriptIntrinsicConvolve3x3 create(RenderScript rs, Element e) { float f[] = { 0, 0, 0, 0, 1, 0, 0, 0, 0}; if (!e.isCompatible(Element.U8(rs)) && !e.isCompatible(Element.U8_2(rs)) && !e.isCompatible(Element.U8_3(rs)) && !e.isCompatible(Element.U8_4(rs)) && !e.isCompatible(Element.F32(rs)) && !e.isCompatible(Element.F32_2(rs)) && !e.isCompatible(Element.F32_3(rs)) && !e.isCompatible(Element.F32_4(rs))) { throw new RSIllegalArgumentException("Unsuported element type."); } Loading
graphics/java/android/renderscript/ScriptIntrinsicConvolve5x5.java +8 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,10 @@ public final class ScriptIntrinsicConvolve5x5 extends ScriptIntrinsic { } /** * Supported elements types are {@link Element#U8_4} * Supported elements types are {@link Element#U8}, {@link * Element#U8_2}, {@link Element#U8_3}, {@link Element#U8_4}, * {@link Element#F32}, {@link Element#F32_2}, {@link * Element#F32_3}, and {@link Element#F32_4} * * The default coefficients are. * <code> Loading @@ -49,8 +52,12 @@ public final class ScriptIntrinsicConvolve5x5 extends ScriptIntrinsic { */ public static ScriptIntrinsicConvolve5x5 create(RenderScript rs, Element e) { if (!e.isCompatible(Element.U8(rs)) && !e.isCompatible(Element.U8_2(rs)) && !e.isCompatible(Element.U8_3(rs)) && !e.isCompatible(Element.U8_4(rs)) && !e.isCompatible(Element.F32(rs)) && !e.isCompatible(Element.F32_2(rs)) && !e.isCompatible(Element.F32_3(rs)) && !e.isCompatible(Element.F32_4(rs))) { throw new RSIllegalArgumentException("Unsuported element type."); } Loading