ScriptIntrinsicYuvToRGB
classScriptIntrinsicYuvToRGB: ScriptIntrinsic
kotlin.Any | ||||
↳ | android.renderscript.BaseObj | |||
↳ | android.renderscript.Script | |||
↳ | android.renderscript.ScriptIntrinsic | |||
↳ | android.renderscript.ScriptIntrinsicYuvToRGB |
Intrinsic for converting an Android YUV buffer to RGB. The input allocation should be supplied in a supported YUV format as a YUV element Allocation. The output is RGBA; the alpha channel will be set to 255.
Summary
Public methods | |
---|---|
static ScriptIntrinsicYuvToRGB! | create(rs: RenderScript!, e: Element!) Create an intrinsic for converting YUV to RGB. |
Unit | forEach(aout: Allocation!) Convert the image to RGB. |
Script.FieldID! | Get a FieldID for the input field of this intrinsic. |
Script.KernelID! | Get a KernelID for this intrinsic kernel. |
Unit | setInput(ain: Allocation!) Set the input yuv allocation, must be |
Public methods
create
static funcreate(
rs: RenderScript!,
e: Element!
): ScriptIntrinsicYuvToRGB!
Deprecated: Deprecated in Java.
Create an intrinsic for converting YUV to RGB. Supported elements types are Element.U8_4
Parameters | |
---|---|
rs | RenderScript!: The RenderScript context |
e | Element!: Element type for output |
Return | |
---|---|
ScriptIntrinsicYuvToRGB! | ScriptIntrinsicYuvToRGB |
forEach
funforEach(aout: Allocation!): Unit
Deprecated: Deprecated in Java.
Convert the image to RGB.
Parameters | |
---|---|
aout | Allocation!: Output allocation. Must match creation element type. |
getFieldID_Input
fungetFieldID_Input(): Script.FieldID!
Deprecated: Deprecated in Java.
Get a FieldID for the input field of this intrinsic.
Return | |
---|---|
Script.FieldID! | Script.FieldID The FieldID object. |
getKernelID
fungetKernelID(): Script.KernelID!
Deprecated: Deprecated in Java.
Get a KernelID for this intrinsic kernel.
Return | |
---|---|
Script.KernelID! | Script.KernelID The KernelID object. |
setInput
funsetInput(ain: Allocation!): Unit
Deprecated: Deprecated in Java.
Set the input yuv allocation, must be Element.U8
.
Parameters | |
---|---|
ain | Allocation!: The input allocation. |