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

#include <rsCppStructs.h>

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

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< ScriptIntrinsicLUTcreate (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

static sp<ScriptIntrinsicLUT> android::RSC::ScriptIntrinsicLUT::create ( sp< RS rs,
sp< const Element e 
) [static]

Supported elements types are U8_4.

The defaults tables are identity.

Parameters:
[in]rsThe RenderScript context
[in]eElement type for intputs and outputs
Returns:
ScriptIntrinsicLUT
void android::RSC::ScriptIntrinsicLUT::forEach ( sp< Allocation ain,
sp< Allocation aout 
)

Invoke the kernel and apply the lookup to each cell of ain and copy to aout.

Parameters:
[in]ainInput allocation
[in]aoutOutput 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]basebase of region to update
[in]lengthlength of region to update
[in]lutValuesLUT 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]basebase of region to update
[in]lengthlength of region to update
[in]lutValuesLUT 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]basebase of region to update
[in]lengthlength of region to update
[in]lutValuesLUT 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]basebase of region to update
[in]lengthlength of region to update
[in]lutValuesLUT values to use

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