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

Artistic1

public class Artistic1 extends TestBase

Fields Summary
private ScriptC_artistic1
mScript
private Allocation
mBlured
Constructors Summary
Methods Summary
public voidcreateTest(android.content.res.Resources res)

        mScript = new ScriptC_artistic1(mRS);
        mBlured = Allocation.createTyped(mRS, mInPixelsAllocation.getType());
        mScript.set_gBlur(mBlured);

        ScriptIntrinsicBlur blur = ScriptIntrinsicBlur.create(mRS, Element.U8_4(mRS));
        blur.setRadius(20);
        blur.setInput(mInPixelsAllocation);
        blur.forEach(mBlured);
    
public voidrunTest()

        mScript.invoke_setup();
        mScript.forEach_process(mInPixelsAllocation, mOutPixelsAllocation);