FileDocCategorySizeDatePackage
WhiteBalance.javaAPI DocAndroid 5.1 API1515Thu Mar 12 22:22:54 GMT 2015com.android.rs.image

WhiteBalance

public class WhiteBalance extends TestBase

Fields Summary
private ScriptC_wbalance
mScript
private android.renderscript.ScriptIntrinsicHistogram
mHist
private android.renderscript.Allocation
mSums
Constructors Summary
Methods Summary
public voidcreateTest(android.content.res.Resources res)

        mScript = new ScriptC_wbalance(mRS);
        mHist = ScriptIntrinsicHistogram.create(mRS, Element.U8_4(mRS));
        mSums = Allocation.createSized(mRS, Element.I32_3(mRS), 256);
        mHist.setOutput(mSums);
        mScript.set_histogramValues(mSums);
    
public voidrunTest()

        mHist.forEach(mInPixelsAllocation);
        mScript.invoke_prepareWhiteBalance();
        mScript.forEach_whiteBalanceKernel(mInPixelsAllocation, mOutPixelsAllocation);