Home | History | Annotate | only in /developers/samples/android/renderScript/RenderScriptIntrinsic
Up to higher level directory
NameDateSize
Application/06-Dec-2016
build.gradle06-Dec-2016254
buildSrc/06-Dec-2016
CONTRIB.md06-Dec-20161.6K
gradle/06-Dec-2016
gradlew06-Dec-20165K
gradlew.bat06-Dec-20162.3K
LICENSE06-Dec-201631.5K
packaging.yaml06-Dec-2016508
README.md06-Dec-20163.1K
screenshots/06-Dec-2016
settings.gradle06-Dec-201622
template-params.xml06-Dec-20163.7K

README.md

      1 
      2 Android RenderScriptIntrinsic Sample
      3 ===================================
      4 
      5 RenderScriptIntrinsic sample that demonstrates how to use RenderScript intrinsics.
      6 Creates several RenderScript intrinsics and shows a filtering result with various parameters.
      7 Also shows how to extends RedioButton with StateListDrawable.
      8 
      9 Introduction
     10 ------------
     11 
     12 [RenderScript][1] is a framework for running computationally intensive tasks at high performance on Android. RenderScript is
     13 primarily oriented for use with data-parallel computation, although serial computationally intensive workloads can
     14 benefit as well.
     15 
     16 RenderScript **intrinsics** are built-in functions that perform well-defined operations often seen
     17 in image processing. Intrinsics provide extremely high-performance implementations of standard
     18 functions with a minimal amount of code.
     19 
     20 This sample shows how to access and use the blur, convolve, and matrix intrinsics:
     21 
     22 ```java
     23 mScriptBlur = ScriptIntrinsicBlur.create(mRS, Element.U8_4(mRS));
     24 mScriptConvolve = ScriptIntrinsicConvolve5x5.create(mRS,
     25         Element.U8_4(mRS));
     26 mScriptMatrix = ScriptIntrinsicColorMatrix.create(mRS,
     27         Element.U8_4(mRS));
     28 ```
     29 
     30 RenderScript intrinsics will usually be the fastest possible way for a developer to perform these operations. The
     31 Android team works closely with our partners to ensure that the intrinsics perform as fast as possible on their
     32 architectures  often far beyond anything that can be achieved in a general-purpose language.
     33 
     34 [1]: http://developer.android.com/guide/topics/renderscript/compute.html
     35 
     36 Pre-requisites
     37 --------------
     38 
     39 - Android SDK 24
     40 - Android Build Tools v24.0.2
     41 - Android Support Repository
     42 
     43 Screenshots
     44 -------------
     45 
     46 <img src="screenshots/main.png" height="400" alt="Screenshot"/> 
     47 
     48 Getting Started
     49 ---------------
     50 
     51 This sample uses the Gradle build system. To build this project, use the
     52 "gradlew build" command or use "Import Project" in Android Studio.
     53 
     54 Support
     55 -------
     56 
     57 - Google+ Community: https://plus.google.com/communities/105153134372062985968
     58 - Stack Overflow: http://stackoverflow.com/questions/tagged/android
     59 
     60 If you've found an error in this sample, please file an issue:
     61 https://github.com/googlesamples/android-RenderScriptIntrinsic
     62 
     63 Patches are encouraged, and may be submitted by forking this project and
     64 submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
     65 
     66 License
     67 -------
     68 
     69 Copyright 2016 The Android Open Source Project, Inc.
     70 
     71 Licensed to the Apache Software Foundation (ASF) under one or more contributor
     72 license agreements.  See the NOTICE file distributed with this work for
     73 additional information regarding copyright ownership.  The ASF licenses this
     74 file to you under the Apache License, Version 2.0 (the "License"); you may not
     75 use this file except in compliance with the License.  You may obtain a copy of
     76 the License at
     77 
     78 http://www.apache.org/licenses/LICENSE-2.0
     79 
     80 Unless required by applicable law or agreed to in writing, software
     81 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
     82 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
     83 License for the specific language governing permissions and limitations under
     84 the License.
     85