/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | VrState.java | 29 public RenderScript mRs; field in VrState 42 mRs = src.mRs; in clone() 60 if (mRs == null) { in createOutputAllocation() 72 Type.Builder b = new Type.Builder(mRs, Element.RGBA_8888(mRs)); in createOutputAllocation() 76 mScrAllocation = Allocation.createTyped(mRs, b.create(), in createOutputAllocation() 91 Type.Builder b = new Type.Builder(mRs, Element.F32_2(mRs)); in createOutputAllocation() 95 mzRangeFullAllocation = Allocation.createTyped(mRs, b.create()); in createOutputAllocation() 104 mRs = src.mRs; in copyData()
|
D | RsBrickedBitMask.java | 59 Type.Builder b = new Type.Builder(state.mRs, android.renderscript.Element.U32(state.mRs)); in RsBrickedBitMask() 61 mBrick_allocation = Allocation.createTyped(state.mRs, b.create(), Allocation.USAGE_SCRIPT); in RsBrickedBitMask() 63 scriptC_bricked = new ScriptC_bricked(state.mRs); in RsBrickedBitMask() 69 scriptC_bricked.set_opacity(state.mMaterial.getOpacityAllocation(state.mRs)); in RsBrickedBitMask() 70 state.mRs.finish(); in RsBrickedBitMask() 74 Allocation tmp = Allocation.createTyped(state.mRs, b.create(), Allocation.USAGE_SCRIPT); in RsBrickedBitMask()
|
D | VrPipline1.java | 56 scriptC_vr.set_opacity(state.mMaterial.getOpacityAllocation(state.mRs)); in creatOpacityAllocation() 60 scriptC_vr.set_color_map(state.mMaterial.getColorMapAllocation(state.mRs)); in creatColorMapAllocation() 73 scriptC_vr = new ScriptC_vr(state.mRs); in setupTriangles() 76 script_resize = ScriptIntrinsicResize.create(state.mRs); in setupTriangles() 115 state.mRs.finish(); in raycast()
|
D | BasicPipeline.java | 53 scriptC_rasterize = new ScriptC_rasterize(state.mRs); in rasterizeTriangles() 61 state.mRs.finish(); in rasterizeTriangles()
|
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
D | FindRegion.java | 84 public Rect findMatch(ScriptC_find_region findRegion, RenderScript mRs, Bitmap image) { in findMatch() argument 89 Type.Builder builderI32_2 = new Type.Builder(mRs, Element.I32_2(mRs)); in findMatch() 91 border_coords = Allocation.createTyped(mRs, builderI32_2.create()); in findMatch() 94 border_coords_float = Allocation.createSized(mRs, Element.F32_2(mRs), mPointsXY.length / 2); in findMatch() 99 findRegion.set_image(Allocation.createFromBitmap(mRs, image)); in findMatch() 101 Type.Builder builderF32_3 = new Type.Builder(mRs, Element.F32_3(mRs)); in findMatch() 103 border_values = Allocation.createTyped(mRs, builderF32_3.create()); in findMatch() 107 Type.Builder builderF32 = new Type.Builder(mRs, Element.F32(mRs)); in findMatch() 111 Allocation fit = Allocation.createTyped(mRs, builderF32.create()); in findMatch() 126 Allocation fit_max = Allocation.createSized(mRs, Element.I32_2(mRs), 1); in findMatch()
|
D | MainActivity.java | 53 RenderScript mRs; field in MainActivity 71 mRs = RenderScript.create(this.getBaseContext()); in onCreate() 72 mHealingScript = new ScriptC_healing(mRs); in onCreate() 73 mFindRegion = new ScriptC_find_region(mRs); in onCreate() 316 d = regions[0].findMatch(mFindRegion, mRs, mDisplayedImage); in doInBackground() 322 regions[0].heal(mHealingScript, mRs, mImage2, mImage2); in doInBackground()
|
D | Region.java | 110 public Drawable findMatch(ScriptC_find_region findRegion, RenderScript mRs, Bitmap image) { in findMatch() argument 111 Rect mRoiBounds = mFindRegion.findMatch(findRegion, mRs, image); in findMatch()
|
/frameworks/rs/script_api/ |
D | GenerateTestFiles.cpp | 78 GeneratedFile* mRs; member in PermutationWriter 180 mRs(rsFile), in PermutationWriter() 926 *mRs << "\n"; in writeRsSection() 930 *mRs << mReturnParam->rsType; in writeRsSection() 932 *mRs << "void"; in writeRsSection() 934 *mRs << " __attribute__((kernel)) " << mRsKernelName; in writeRsSection() 935 *mRs << "("; in writeRsSection() 938 *mRs << mFirstInputParam->rsType << " " << mFirstInputParam->variableName; in writeRsSection() 943 *mRs << ", "; in writeRsSection() 945 *mRs << "unsigned int x"; in writeRsSection() [all …]
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
D | FindRegion.java | 75 public Rect findMatch(ScriptC_find_region findRegion, RenderScript mRs, Bitmap image) { in findMatch() argument 80 border_coords = allocFloat2(mPointsXY, mRs); in findMatch() 81 Allocation aImage = Allocation.createFromBitmap(mRs, image); in findMatch() 82 Allocation ret = Allocation.createSized(mRs, Element.I32_2(mRs), 1); in findMatch()
|
D | MainActivity.java | 53 RenderScript mRs; field in MainActivity 71 mRs = RenderScript.create(this.getBaseContext()); in onCreate() 72 mHealingScript = new ScriptC_healing(mRs); in onCreate() 73 mFindRegion = new ScriptC_find_region(mRs); in onCreate() 314 d = regions[0].findMatch(mFindRegion, mRs, mDisplayedImage); in doInBackground() 320 regions[0].heal(mHealingScript, mRs, mImage2, mImage2); in doInBackground()
|
D | Region.java | 101 public Drawable findMatch(ScriptC_find_region findRegion, RenderScript mRs, Bitmap image) { in findMatch() argument 102 Rect mRoiBounds = mFindRegion.findMatch(findRegion, mRs, image); in findMatch()
|
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
D | ViewfinderProcessor.java | 47 RenderScript mRs; field in ViewfinderProcessor 62 mRs = rs; in ViewfinderProcessor() 213 mRs.finish(); in run() 262 RenderScript mRs = RenderScript.create(context); in processImage() local 267 img_alloc = Allocation.createFromBitmap(mRs, image); in processImage() 269 Type.Builder buffTypeBuilder = new Type.Builder(mRs, Element.U8(mRs)); in processImage() 271 blur_alloc = Allocation.createTyped(mRs, buffTypeBuilder.create()); in processImage() 272 edge_alloc = Allocation.createTyped(mRs, buffTypeBuilder.create()); in processImage() 275 ScriptC_canny canny_script = new ScriptC_canny(mRs); in processImage()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/ |
D | VrActivity.java | 53 private RenderScript mRs; field in VrActivity 61 mRs = RenderScript.create(VrActivity.this); in onCreate() 100 return mLoader.getVolume(mRs, names[0]); in doInBackground() 113 mVrView.setVolume(mRs, v); in onPostExecute()
|
D | VrView.java | 305 mState1.mRs = rs; in setVolume() 362 if (mState1.mRs == null) return 0L; in doInBackground() 419 state.mRs.finish(); in doInBackground() 463 mState1.mRs.finish(); in doInBackground()
|