| java.lang.Object | ||||
| ↳ | android.renderscript.BaseObj | |||
| ↳ | android.renderscript.Script | |||
| ↳ | android.renderscript.ScriptIntrinsic | |||
| ↳ | android.renderscript.ScriptIntrinsicColorMatrix | |||
Intrinsic for applying a color matrix to allocations.
This has the same effect as loading each element and
converting it to a F32_4(RenderScript), multiplying the
result by the 4x4 color matrix as performed by
rsMatrixMultiply() and writing it to the output after
conversion back to U8_4(RenderScript).
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create an intrinsic for applying a color matrix to an
allocation.
| |||||||||||
Invoke the kernel and apply the matrix to each cell of ain and copy to
aout.
| |||||||||||
Get a KernelID for this intrinsic kernel.
| |||||||||||
Set the color matrix which will be applied to each cell of the image.
| |||||||||||
Set the color matrix which will be applied to each cell of
the image.
| |||||||||||
Set a color matrix to convert from RGB to luminance.
| |||||||||||
Set the matrix to convert from RGB to YUV with a direct copy of the 4th
channel.
| |||||||||||
Set the matrix to convert from YUV to RGB with a direct copy of the 4th
channel.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.renderscript.Script
| |||||||||||
From class
android.renderscript.BaseObj
| |||||||||||
From class
java.lang.Object
| |||||||||||
Create an intrinsic for applying a color matrix to an
allocation.
Supported elements types are U8_4(RenderScript)
| rs | The RenderScript context |
|---|---|
| e | Element type for intputs and outputs |
Invoke the kernel and apply the matrix to each cell of ain and copy to aout.
| ain | Input allocation |
|---|---|
| aout | Output allocation |
Get a KernelID for this intrinsic kernel.
Set the color matrix which will be applied to each cell of the image. This will set the alpha channel to be a copy.
| m | The 3x3 matrix to set. |
|---|
Set the color matrix which will be applied to each cell of the image.
| m | The 4x4 matrix to set. |
|---|
Set a color matrix to convert from RGB to luminance. The alpha channel will be a copy.
Set the matrix to convert from RGB to YUV with a direct copy of the 4th channel.
Set the matrix to convert from YUV to RGB with a direct copy of the 4th channel.