Added in API level 17
Deprecated in API level 31

ScriptIntrinsicConvolve5x5


public final class ScriptIntrinsicConvolve5x5
extends ScriptIntrinsic

java.lang.Object
   ↳ android.renderscript.BaseObj
     ↳ android.renderscript.Script
       ↳ android.renderscript.ScriptIntrinsic
         ↳ android.renderscript.ScriptIntrinsicConvolve5x5


This class was deprecated in API level 31.
Renderscript has been deprecated in API level 31. Please refer to the migration guide for the proposed alternatives.

Intrinsic for applying a 5x5 convolve to an allocation.

Summary

Public methods

static ScriptIntrinsicConvolve5x5 create(RenderScript rs, Element e)

Supported elements types are Element.U8, Element.U8_2, Element.U8_3, Element.U8_4, Element.F32, Element.F32_2, Element.F32_3, and Element.F32_4.

void forEach(Allocation aout)

Apply the filter to the input and save to the specified allocation.

void forEach(Allocation aout, Script.LaunchOptions opt)

Apply the filter to the input and save to the specified allocation.

Script.FieldID getFieldID_Input()

Get a FieldID for the input field of this intrinsic.

Script.KernelID getKernelID()

Get a KernelID for this intrinsic kernel.

void setCoefficients(float[] v)

Set the coefficients for the convolve.

void setInput(Allocation ain)

Set the input of the 5x5 convolve.