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

#include <rsCppStructs.h>

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

Public Member Functions

void setInput (sp< Allocation > in)
void forEach (sp< Allocation > out)

Static Public Member Functions

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

Detailed Description

Intrinsic for converting an Android YUV buffer to RGB.

The input allocation should be supplied in a supported YUV format as a YUV element Allocation. The output is RGBA; the alpha channel will be set to 255.

Definition at line 1832 of file rsCppStructs.h.


Member Function Documentation

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

Create an intrinsic for converting YUV to RGB.

Supported elements types are U8_4.

Parameters:
[in]rsThe RenderScript context
[in]eElement type for output
Returns:
ScriptIntrinsicYuvToRGB
void android::RSC::ScriptIntrinsicYuvToRGB::forEach ( sp< Allocation out)

Convert the image to RGB.

Parameters:
[in]aoutOutput allocation. Must match creation element type.
void android::RSC::ScriptIntrinsicYuvToRGB::setInput ( sp< Allocation in)

Set the input YUV allocation.

Parameters:
[in]ainThe input allocation.

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