Added in API level 20
Deprecated in API level S

ScriptIntrinsicResize

public final class ScriptIntrinsicResize
extends ScriptIntrinsic

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


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

Intrinsic for performing a resize of a 2D allocation.

Summary

Public methods

static ScriptIntrinsicResize create(RenderScript rs)

Supported elements types are Element#U8, Element.U8_2(RenderScript), Element#U8_3, Element#U8_4 Element#F32, Element#F32_2, Element.F32_3(RenderScript), Element#F32_4

void forEach_bicubic(Allocation aout, Script.LaunchOptions opt)

Resize copy the input allocation to the output specified.

void forEach_bicubic(Allocation aout)

Resize copy the input allocation to the output specified.

Script.FieldID getFieldID_Input()

Get a FieldID for the input field of this intrinsic.

Script.KernelID getKernelID_bicubic()

Get a KernelID for this intrinsic kernel.

void setInput(Allocation ain)

Set the input of the resize.

Inherited methods

Public methods

create

Added in API level 20
Deprecated in API level S
public static ScriptIntrinsicResize create (RenderScript rs)

Supported elements types are Element#U8, Element.U8_2(RenderScript), Element#U8_3, Element#U8_4 Element#F32, Element#F32_2, Element.F32_3(RenderScript), Element#F32_4

Parameters
rs RenderScript: The RenderScript context

Returns
ScriptIntrinsicResize ScriptIntrinsicResize

forEach_bicubic

Added in API level 20
Deprecated in API level S
public void forEach_bicubic (Allocation aout, 
                Script.LaunchOptions opt)

Resize copy the input allocation to the output specified. The Allocation is rescaled if necessary using bi-cubic interpolation.

Parameters
aout Allocation: Output allocation. Element type must match current input.

opt Script.LaunchOptions: LaunchOptions for clipping

forEach_bicubic

Added in API level 20
Deprecated in API level S
public void forEach_bicubic (Allocation aout)

Resize copy the input allocation to the output specified. The Allocation is rescaled if necessary using bi-cubic interpolation.

Parameters
aout Allocation: Output allocation. Element type must match current input. Must not be same as input.

getFieldID_Input

Added in API level 20
Deprecated in API level S
public Script.FieldID getFieldID_Input ()

Get a FieldID for the input field of this intrinsic.

Returns
Script.FieldID Script.FieldID The FieldID object.

getKernelID_bicubic

Added in API level 20
Deprecated in API level S
public Script.KernelID getKernelID_bicubic ()

Get a KernelID for this intrinsic kernel.

Returns
Script.KernelID Script.KernelID The KernelID object.

setInput

Added in API level 20
Deprecated in API level S
public void setInput (Allocation ain)

Set the input of the resize. Must match the element type supplied during create.

Parameters
ain Allocation: The input allocation.