diff options
author | Trevor Johns <trevorjohns@google.com> | 2014-12-16 04:28:09 -0800 |
---|---|---|
committer | Trevor Johns <trevorjohns@google.com> | 2014-12-23 15:37:28 -0800 |
commit | 1eba6c68d1a2aa1041922aa864736b0c944c67c8 (patch) | |
tree | a0608337bef84d1c883bd7ab713617feda525f85 /renderScript | |
parent | e2d472f4981dd1695eb5e2aabe03b39b383b770e (diff) | |
download | android-1eba6c68d1a2aa1041922aa864736b0c944c67c8.tar.gz |
Add metadata for RenderScriptIntrinsic sample
Change-Id: I8dd368cf196553ab5bec7c519286220acb02d516
Diffstat (limited to 'renderScript')
-rw-r--r-- | renderScript/RenderScriptIntrinsic/screenshots/icon-web.png | bin | 0 -> 68679 bytes | |||
-rw-r--r-- | renderScript/RenderScriptIntrinsic/screenshots/main.png | bin | 0 -> 1887670 bytes | |||
-rw-r--r-- | renderScript/RenderScriptIntrinsic/template-params.xml | 57 |
3 files changed, 55 insertions, 2 deletions
diff --git a/renderScript/RenderScriptIntrinsic/screenshots/icon-web.png b/renderScript/RenderScriptIntrinsic/screenshots/icon-web.png Binary files differnew file mode 100644 index 00000000..87f9dac0 --- /dev/null +++ b/renderScript/RenderScriptIntrinsic/screenshots/icon-web.png diff --git a/renderScript/RenderScriptIntrinsic/screenshots/main.png b/renderScript/RenderScriptIntrinsic/screenshots/main.png Binary files differnew file mode 100644 index 00000000..1a813891 --- /dev/null +++ b/renderScript/RenderScriptIntrinsic/screenshots/main.png diff --git a/renderScript/RenderScriptIntrinsic/template-params.xml b/renderScript/RenderScriptIntrinsic/template-params.xml index d5d1656e..8b80bb24 100644 --- a/renderScript/RenderScriptIntrinsic/template-params.xml +++ b/renderScript/RenderScriptIntrinsic/template-params.xml @@ -15,8 +15,6 @@ limitations under the License. --> - - <sample> <name>RenderScriptIntrinsic</name> <group>RenderScript</group> @@ -45,4 +43,59 @@ <template src="base"/> <common src="logger"/> + <metadata> + <status>PUBLISHED</status> + <categories>RenderScript</categories> + <technologies>Android</technologies> + <languages>Java</languages> + <solutions>Mobile</solutions> + <level>EXPERT</level> + <icon>screenshots/icon-web.png</icon> + <screenshots> + <img>screenshots/main.png</img> + </screenshots> + <api_refs> + <android>android.renderscript.RenderScript</android> + <android>android.renderscript.ScriptIntrinsicBlur</android> + <android>android.renderscript.ScriptIntrinsicConvolve5x5</android> + <android>android.renderscript.ScriptIntrinsicColorMatrix</android> + <android></android> + </api_refs> + + <description> +<![CDATA[ +RenderScriptIntrinsic sample that demonstrates how to use RenderScript intrinsics. +Creates several RenderScript intrinsics and shows a filtering result with various parameters. +Also shows how to extends RedioButton with StateListDrawable. +]]> + </description> + + <intro> +<![CDATA[ +[RenderScript][1] is a framework for running computationally intensive tasks at high performance on Android. RenderScript is +primarily oriented for use with data-parallel computation, although serial computationally intensive workloads can +benefit as well. + +RenderScript **intrinsics** are built-in functions that perform well-defined operations often seen +in image processing. Intrinsics provide extremely high-performance implementations of standard +functions with a minimal amount of code. + +This sample shows how to access and use the blur, convolve, and matrix intrinsics: + +```java +mScriptBlur = ScriptIntrinsicBlur.create(mRS, Element.U8_4(mRS)); +mScriptConvolve = ScriptIntrinsicConvolve5x5.create(mRS, + Element.U8_4(mRS)); +mScriptMatrix = ScriptIntrinsicColorMatrix.create(mRS, + Element.U8_4(mRS)); +``` + +RenderScript intrinsics will usually be the fastest possible way for a developer to perform these operations. The +Android team works closely with our partners to ensure that the intrinsics perform as fast as possible on their +architectures — often far beyond anything that can be achieved in a general-purpose language. + +[1]: http://developer.android.com/guide/topics/renderscript/compute.html +]]> + </intro> + </metadata> </sample> |