public final class ScriptIntrinsicResize
extends ScriptIntrinsic
| java.lang.Object | ||||
| android.renderscript.BaseObj | ||||
| android.renderscript.Script | ||||
| android.renderscript.ScriptIntrinsic | ||||
| android.renderscript.ScriptIntrinsicResize | ||||
用于执行2D分配的调整大小。
公共方法(Public methods) |
|
|---|---|
static ScriptIntrinsicResize |
create(RenderScript rs) 支持的元素类型是 |
void |
forEach_bicubic(Allocation aout, Script.LaunchOptions opt) 调整大小将输入分配复制到指定的输出。 |
void |
forEach_bicubic(Allocation aout) 调整大小将输入分配复制到指定的输出。 |
Script.FieldID |
getFieldID_Input() 获取此内在的输入字段的FieldID。 |
Script.KernelID |
getKernelID_bicubic() 为此内核获取KernelID。 |
void |
setInput(Allocation ain) 设置调整大小的输入。 |
继承方法(Inherited methods) |
|
|---|---|
android.renderscript.Script
|
|
android.renderscript.BaseObj
|
|
java.lang.Object
|
|
ScriptIntrinsicResize create (RenderScript rs)
支持的元素类型是 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, Script.LaunchOptions opt)
调整大小将输入分配复制到指定的输出。 如有必要,使用双三次插值将分配重新调整比例。
| 参数(Parameters) | |
|---|---|
aout |
Allocation: Output allocation. Element type must match current input. |
opt |
Script.LaunchOptions: LaunchOptions for clipping |
void forEach_bicubic (Allocation aout)
调整大小将输入分配复制到指定的输出。 如有必要,使用双三次插值将分配重新调整比例。
| 参数(Parameters) | |
|---|---|
aout |
Allocation: Output allocation. Element type must match current input. Must not be same as input. |
Script.FieldID getFieldID_Input ()
获取此内在的输入字段的FieldID。
| 返回(Returns) | |
|---|---|
Script.FieldID |
Script.FieldID The FieldID object. |
Script.KernelID getKernelID_bicubic ()
为此内核获取KernelID。
| 返回(Returns) | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
void setInput (Allocation ain)
设置调整大小的输入。 必须与创建期间提供的元素类型相匹配。
| 参数(Parameters) | |
|---|---|
ain |
Allocation: The input allocation. |