public final class ScriptIntrinsicYuvToRGB extends ScriptIntrinsic
Script.Builder, Script.FieldBase, Script.FieldID, Script.KernelID
Modifier and Type | Method and Description |
---|---|
static ScriptIntrinsicYuvToRGB |
create(RenderScript rs,
Element e)
Create an intrinsic for converting YUV to RGB.
|
void |
forEach(Allocation aout)
Convert the image to RGB.
|
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 |
setInput(Allocation ain)
Set the input yuv allocation, must be
Element.U8(android.renderscript.RenderScript) . |
bindAllocation, createFieldID, createKernelID, forEach, invoke, invoke, setTimeZone, setVar, setVar, setVar, setVar, setVar, setVar, setVar, setVar
public static ScriptIntrinsicYuvToRGB create(RenderScript rs, Element e)
Element.U8_4(android.renderscript.RenderScript)
rs
- The Renderscript contexte
- Element type for outputpublic void setInput(Allocation ain)
Element.U8(android.renderscript.RenderScript)
.ain
- The input allocation.public void forEach(Allocation aout)
aout
- Output allocation. Must match creation element
type.public Script.KernelID getKernelID()
public Script.FieldID getFieldID_Input()