Added in API level 17
Deprecated in API level 31

ScriptIntrinsicYuvToRGB

class ScriptIntrinsicYuvToRGB : 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 an intrinsic for converting YUV to RGB.

Unit

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

Set the input yuv allocation, must be Element#U8.

Public methods

create

Added in API level 17
static fun create(
    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

Added in API level 17
fun forEach(aout: Allocation!): Unit

Deprecated: Deprecated in Java.

Convert the image to RGB.

Parameters
aout Allocation!: Output allocation. Must match creation element type.

getFieldID_Input

Added in API level 17
fun getFieldID_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

Added in API level 17
fun getKernelID(): Script.KernelID!

Deprecated: Deprecated in Java.

Get a KernelID for this intrinsic kernel.

Return
Script.KernelID! Script.KernelID The KernelID object.

setInput

Added in API level 17
fun setInput(ain: Allocation!): Unit

Deprecated: Deprecated in Java.

Set the input yuv allocation, must be Element#U8.

Parameters
ain Allocation!: The input allocation.