Home | History | Annotate | only in /developers/build/prebuilts/gradle/RenderScriptIntrinsic
Up to higher level directory
NameDateSize
.google/23-Apr-2015
Application/23-Apr-2015
build.gradle23-Apr-201514
CONTRIB.md23-Apr-20151.6K
CONTRIBUTING.md23-Apr-20151.5K
gradle/23-Apr-2015
gradlew23-Apr-20155K
gradlew.bat23-Apr-20152.3K
LICENSE23-Apr-201511.1K
NOTICE23-Apr-2015613
packaging.yaml23-Apr-2015508
README.md23-Apr-20153.1K
screenshots/23-Apr-2015
settings.gradle23-Apr-201522

README.md

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