#include <rsCppStructs.h>
Public Member Functions | |
void | forEach (sp< Allocation > ain, sp< Allocation > aout) |
void | setLUT (sp< Allocation > lut) |
Static Public Member Functions | |
static sp< ScriptIntrinsic3DLUT > | create (sp< RS > rs, sp< const Element > e) |
Intrinsic for converting RGB to RGBA by using a 3D lookup table. The incoming r,g,b values are use as normalized x,y,z coordinates into a 3D allocation. The 8 nearest values are sampled and linearly interpolated. The result is placed in the output.
Definition at line 1405 of file rsCppStructs.h.
static sp<ScriptIntrinsic3DLUT> android::RSC::ScriptIntrinsic3DLUT::create | ( | sp< RS > | rs, |
sp< const Element > | e | ||
) | [static] |
Supported Element types are U8_4. Default lookup table is identity.
[in] | rs | RenderScript context |
[in] | e | Element |
void android::RSC::ScriptIntrinsic3DLUT::forEach | ( | sp< Allocation > | ain, |
sp< Allocation > | aout | ||
) |
Launch the intrinsic.
[in] | ain | input Allocation |
[in] | aout | output Allocation |
void android::RSC::ScriptIntrinsic3DLUT::setLUT | ( | sp< Allocation > | lut | ) |
Sets the lookup table. The lookup table must use the same Element as the intrinsic.
[in] | lut | new lookup table |