Public Member Functions | Static Public Member Functions
android::RSC::ScriptIntrinsic3DLUT Class Reference

#include <rsCppStructs.h>

Inheritance diagram for android::RSC::ScriptIntrinsic3DLUT:
android::RSC::ScriptIntrinsic android::RSC::Script android::RSC::BaseObj

Public Member Functions

void forEach (sp< Allocation > ain, sp< Allocation > aout)
void setLUT (sp< Allocation > lut)

Static Public Member Functions

static sp< ScriptIntrinsic3DLUTcreate (sp< RS > rs, sp< const Element > e)

Detailed Description

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.


Member Function Documentation

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.

Parameters:
[in]rsRenderScript context
[in]eElement
Returns:
new ScriptIntrinsic
void android::RSC::ScriptIntrinsic3DLUT::forEach ( sp< Allocation ain,
sp< Allocation aout 
)

Launch the intrinsic.

Parameters:
[in]aininput Allocation
[in]aoutoutput Allocation
void android::RSC::ScriptIntrinsic3DLUT::setLUT ( sp< Allocation lut)

Sets the lookup table. The lookup table must use the same Element as the intrinsic.

Parameters:
[in]lutnew lookup table

The documentation for this class was generated from the following file: