public
class
ScriptIntrinsicResize
extends ScriptIntrinsic
java.lang.Object | ||||
↳ | android.support.v8.renderscript.BaseObj | |||
↳ | android.support.v8.renderscript.Script | |||
↳ | android.support.v8.renderscript.ScriptIntrinsic | |||
↳ | android.support.v8.renderscript.ScriptIntrinsicResize |
Intrinsic for performing a resize of a 2D allocation.
Protected constructors | |
---|---|
ScriptIntrinsicResize(long id, RenderScript rs)
|
Public methods | |
---|---|
static
ScriptIntrinsicResize
|
create(RenderScript rs)
Supported elements types are |
void
|
forEach_bicubic(Allocation aout)
Resize copy the input allocation to the output specified. |
void
|
forEach_bicubic(Allocation aout, Script.LaunchOptions opt)
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 | |
---|---|
From
class
android.support.v8.renderscript.Script
| |
From
class
android.support.v8.renderscript.BaseObj
| |
From
class
java.lang.Object
|
ScriptIntrinsicResize (long id, RenderScript rs)
Parameters | |
---|---|
id |
long
|
rs |
RenderScript
|
ScriptIntrinsicResize create (RenderScript rs)
Supported elements types are U8(RenderScript)
, U8_2(RenderScript)
, U8_3(RenderScript)
, U8_4(RenderScript)
F32(RenderScript)
, F32_2(RenderScript)
, F32_3(RenderScript)
, F32_4(RenderScript)
Parameters | |
---|---|
rs |
RenderScript :
The RenderScript context |
Returns | |
---|---|
ScriptIntrinsicResize |
ScriptIntrinsicResize |
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.
|
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
|
Script.FieldID getFieldID_Input ()
Get a FieldID for the input field of this intrinsic.
Returns | |
---|---|
Script.FieldID |
Script.FieldID The FieldID object. |
Script.KernelID getKernelID_bicubic ()
Get a KernelID for this intrinsic kernel.
Returns | |
---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
void setInput (Allocation ain)
Set the input of the resize. Must match the element type supplied during create.
Parameters | |
---|---|
ain |
Allocation :
The input allocation.
|