#include <rsCppStructs.h>
Public Member Functions |
void | forEach (sp< Allocation > ain, sp< Allocation > aout) |
void | setRed (unsigned char base, unsigned int length, unsigned char *lutValues) |
void | setGreen (unsigned char base, unsigned int length, unsigned char *lutValues) |
void | setBlue (unsigned char base, unsigned int length, unsigned char *lutValues) |
void | setAlpha (unsigned char base, unsigned int length, unsigned char *lutValues) |
Static Public Member Functions |
static sp< ScriptIntrinsicLUT > | create (sp< RS > rs, sp< const Element > e) |
Detailed Description
Intrinsic for applying a per-channel lookup table. Each channel of the input has an independant lookup table. The tables are 256 entries in size and can cover the full value range of U8_4.
Definition at line 1766 of file rsCppStructs.h.
Member Function Documentation
Supported elements types are U8_4.
The defaults tables are identity.
- Parameters:
-
[in] | rs | The RenderScript context |
[in] | e | Element type for intputs and outputs |
- Returns:
- ScriptIntrinsicLUT
Invoke the kernel and apply the lookup to each cell of ain and copy to aout.
- Parameters:
-
[in] | ain | Input allocation |
[in] | aout | Output allocation |
void android::RSC::ScriptIntrinsicLUT::setAlpha |
( |
unsigned char |
base, |
|
|
unsigned int |
length, |
|
|
unsigned char * |
lutValues |
|
) |
| |
Sets entries in LUT for the alpha channel.
- Parameters:
-
[in] | base | base of region to update |
[in] | length | length of region to update |
[in] | lutValues | LUT values to use |
void android::RSC::ScriptIntrinsicLUT::setBlue |
( |
unsigned char |
base, |
|
|
unsigned int |
length, |
|
|
unsigned char * |
lutValues |
|
) |
| |
Sets entries in LUT for the blue channel.
- Parameters:
-
[in] | base | base of region to update |
[in] | length | length of region to update |
[in] | lutValues | LUT values to use |
void android::RSC::ScriptIntrinsicLUT::setGreen |
( |
unsigned char |
base, |
|
|
unsigned int |
length, |
|
|
unsigned char * |
lutValues |
|
) |
| |
Sets entries in LUT for the green channel.
- Parameters:
-
[in] | base | base of region to update |
[in] | length | length of region to update |
[in] | lutValues | LUT values to use |
void android::RSC::ScriptIntrinsicLUT::setRed |
( |
unsigned char |
base, |
|
|
unsigned int |
length, |
|
|
unsigned char * |
lutValues |
|
) |
| |
Sets entries in LUT for the red channel.
- Parameters:
-
[in] | base | base of region to update |
[in] | length | length of region to update |
[in] | lutValues | LUT values to use |
The documentation for this class was generated from the following file: