ScriptIntrinsicYuvToRGB
public
final
class
ScriptIntrinsicYuvToRGB
extends ScriptIntrinsic
java.lang.Object | ||||
↳ | android.renderscript.BaseObj | |||
↳ | android.renderscript.Script | |||
↳ | android.renderscript.ScriptIntrinsic | |||
↳ | android.renderscript.ScriptIntrinsicYuvToRGB |
This class was deprecated
in API level 31.
Renderscript has been deprecated in API level 31. Please refer to the migration
guide for the proposed alternatives.
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(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 |
Inherited methods | |
---|---|
Public methods
create
public static ScriptIntrinsicYuvToRGB create (RenderScript rs, Element e)
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 |
Returns | |
---|---|
ScriptIntrinsicYuvToRGB |
ScriptIntrinsicYuvToRGB |
forEach
public void forEach (Allocation aout)
Convert the image to RGB.
Parameters | |
---|---|
aout |
Allocation : Output allocation. Must match creation element
type. |
getFieldID_Input
public Script.FieldID getFieldID_Input ()
Get a FieldID for the input field of this intrinsic.
Returns | |
---|---|
Script.FieldID |
Script.FieldID The FieldID object. |
getKernelID
public Script.KernelID getKernelID ()
Get a KernelID for this intrinsic kernel.
Returns | |
---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
setInput
public void setInput (Allocation ain)
Set the input yuv allocation, must be Element#U8
.
Parameters | |
---|---|
ain |
Allocation : The input allocation. |