ScriptIntrinsicResize
public
final
class
ScriptIntrinsicResize
extends ScriptIntrinsic
| java.lang.Object | ||||
| ↳ | android.renderscript.BaseObj | |||
| ↳ | android.renderscript.Script | |||
| ↳ | android.renderscript.ScriptIntrinsic | |||
| ↳ | android.renderscript.ScriptIntrinsicResize | |||
Intrinsic for performing a resize of a 2D allocation.
Summary
Public methods | |
|---|---|
static
ScriptIntrinsicResize
|
create(RenderScript rs)
Supported elements types are |
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 | |
|---|---|
From
class
android.renderscript.Script
| |
From
class
android.renderscript.BaseObj
| |
From
class
java.lang.Object
| |
Public methods
create
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 |
forEach_bicubic
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
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
Script.FieldID getFieldID_Input ()
Get a FieldID for the input field of this intrinsic.
| Returns | |
|---|---|
Script.FieldID |
Script.FieldID The FieldID object. |
getKernelID_bicubic
Script.KernelID getKernelID_bicubic ()
Get a KernelID for this intrinsic kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
setInput
void setInput (Allocation ain)
Set the input of the resize. Must match the element type supplied during create.
| Parameters | |
|---|---|
ain |
Allocation: The input allocation.
|
Interfaces
Classes
- Allocation
- AllocationAdapter
- BaseObj
- Byte2
- Byte3
- Byte4
- Double2
- Double3
- Double4
- Element
- Element.Builder
- FieldPacker
- Float2
- Float3
- Float4
- Int2
- Int3
- Int4
- Long2
- Long3
- Long4
- Matrix2f
- Matrix3f
- Matrix4f
- RenderScript
- RenderScript.RSErrorHandler
- RenderScript.RSMessageHandler
- Sampler
- Sampler.Builder
- Script
- Script.Builder
- Script.FieldBase
- Script.FieldID
- Script.InvokeID
- Script.KernelID
- Script.LaunchOptions
- ScriptC
- ScriptGroup
- ScriptGroup.Binding
- ScriptGroup.Builder
- ScriptGroup.Builder2
- ScriptGroup.Closure
- ScriptGroup.Future
- ScriptGroup.Input
- ScriptIntrinsic
- ScriptIntrinsic3DLUT
- ScriptIntrinsicBLAS
- ScriptIntrinsicBlend
- ScriptIntrinsicBlur
- ScriptIntrinsicColorMatrix
- ScriptIntrinsicConvolve3x3
- ScriptIntrinsicConvolve5x5
- ScriptIntrinsicHistogram
- ScriptIntrinsicLUT
- ScriptIntrinsicResize
- ScriptIntrinsicYuvToRGB
- Short2
- Short3
- Short4
- Type
- Type.Builder
Enums
Exceptions

