diff options
author | Jason Sams <jsams@google.com> | 2013-04-12 16:40:50 -0700 |
---|---|---|
committer | Jason Sams <jsams@google.com> | 2013-04-14 02:51:57 +0000 |
commit | 02d56d90e01e20db8424de94a14fe59dc94f19c0 (patch) | |
tree | 9dc9e8d1edfc1dfbcc79a3c7e1e99c0d59806aa7 /graphics | |
parent | a068eeddc9d47af1a12afbe6efe7d00e8e903b9f (diff) | |
download | frameworks_base-02d56d90e01e20db8424de94a14fe59dc94f19c0.zip frameworks_base-02d56d90e01e20db8424de94a14fe59dc94f19c0.tar.gz frameworks_base-02d56d90e01e20db8424de94a14fe59dc94f19c0.tar.bz2 |
Unhide new RS APIs.
This exposes the fast path handling of YUV data.
bug 8566866
Change-Id: Iaa3700100db61dd51d16d80ea8ae22f2dcc41bb0
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/renderscript/RenderScript.java | 25 | ||||
-rw-r--r-- | graphics/java/android/renderscript/ScriptIntrinsic3DLUT.java | 6 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Type.java | 6 |
3 files changed, 32 insertions, 5 deletions
diff --git a/graphics/java/android/renderscript/RenderScript.java b/graphics/java/android/renderscript/RenderScript.java index 7163151..33639dc 100644 --- a/graphics/java/android/renderscript/RenderScript.java +++ b/graphics/java/android/renderscript/RenderScript.java @@ -99,9 +99,29 @@ public class RenderScript { mCacheDir = cacheDir; } + /** + * ContextType specifies the specific type of context to be created. + * + */ public enum ContextType { + /** + * NORMAL context, this is the default and what shipping apps should + * use. + */ NORMAL (0), + + /** + * DEBUG context, perform extra runtime checks to validate the + * kernels and APIs are being used as intended. Get and SetElementAt + * will be bounds checked in this mode. + */ DEBUG (1), + + /** + * PROFILE context, Intended to be used once the first time an + * application is run on a new device. This mode allows the runtime to + * do additional testing and performance tuning. + */ PROFILE (2); int mID; @@ -915,7 +935,8 @@ public class RenderScript { } /** - * @hide + * Place a message into the message queue to be sent back to the message + * handler once all previous commands have been executed. * * @param id * @param data @@ -1194,9 +1215,9 @@ public class RenderScript { /** * Create a basic RenderScript context. * - * @hide * * @param ctx The context. + * @param ct The type of context to be created. * @return RenderScript */ public static RenderScript create(Context ctx, ContextType ct) { diff --git a/graphics/java/android/renderscript/ScriptIntrinsic3DLUT.java b/graphics/java/android/renderscript/ScriptIntrinsic3DLUT.java index 3e58b87..86f37d8 100644 --- a/graphics/java/android/renderscript/ScriptIntrinsic3DLUT.java +++ b/graphics/java/android/renderscript/ScriptIntrinsic3DLUT.java @@ -20,7 +20,11 @@ import android.util.Log; /** * - * @hide + * Intrinsic for converting RGB to RGBA by using a 3D lookup table. The + * incoming r,g,b values are use as normalized x,y,z coordinates into a 3D + * allocation. The 8 nearest values are sampled and linearly interpolated. The + * result is placed in the output. + * **/ public final class ScriptIntrinsic3DLUT extends ScriptIntrinsic { private Allocation mLUT; diff --git a/graphics/java/android/renderscript/Type.java b/graphics/java/android/renderscript/Type.java index d7c8255..a5e24ce 100644 --- a/graphics/java/android/renderscript/Type.java +++ b/graphics/java/android/renderscript/Type.java @@ -112,7 +112,7 @@ public class Type extends BaseObj { /** * Get the YUV format * - * @hide + * * @return int */ public int getYuv() { @@ -277,7 +277,9 @@ public class Type extends BaseObj { } /** - * @hide + * Set the YUV layout for a Type. This controls how the memory is + * interpreted. Generally and application should not need to call this + * function and it would be set by the Camera. * * only NV21, YV12. Enums from ImageFormat */ |