Home
last modified time | relevance | path

Searched refs:blurStack (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DRefocusFilter.java69 protected Bitmap compute(Bitmap inputImage, BlurStack blurStack) { in compute() argument
74 blurStack.getLayerInfo(blurStack.getFocusLayer())); in compute()
78 if (!processLayersFromBackToFocus(blurStack)) { in compute()
84 if (!processLayersFromFrontToFocus(blurStack)) { in compute()
99 protected boolean processLayersFromBackToFocus(BlurStack blurStack) { in processLayersFromBackToFocus() argument
100 for (int targetLayer = blurStack.getNumLayers() - 1; in processLayersFromBackToFocus()
101 targetLayer >= blurStack.getFocusLayer(); --targetLayer) { in processLayersFromBackToFocus()
103 LayerInfo layerInfo = blurStack.getLayerInfo(targetLayer); in processLayersFromBackToFocus()
109 int dilationRadius = getKernelRadius(layerInfo.backDepth, blurStack); in processLayersFromBackToFocus()
113 setKernelData(targetLayer, blurStack); in processLayersFromBackToFocus()
[all …]
DKernelDataForRenderScript.java110 protected KernelDataForRenderScript(int targetLayer, BlurStack blurStack, in KernelDataForRenderScript() argument
114 int numDepths = blurStack.getNumDepths(targetLayer); in KernelDataForRenderScript()
123 int depth = blurStack.getDepth(targetLayer, m); in KernelDataForRenderScript()
124 float diskRadius = blurStack.getDiskRadius(depth); in KernelDataForRenderScript()
139 int numDepths = blurStack.getNumDepths(targetLayer); in KernelDataForRenderScript()
145 int depth = blurStack.getDepth(targetLayer, m); in KernelDataForRenderScript()
146 float diskRadius = blurStack.getDiskRadius(depth); in KernelDataForRenderScript()
DRenderScriptTask.java62 public BlurStack blurStack; field in RenderScriptTask
107 rfFilterF32.compute(rgbdImage, blurStack); in applyRefocusFilter()
113 rfFilterd1new.compute(rgbdImage, blurStack); in applyRefocusFilter()
134 blurStack = BlurStack.createFromDepthTransform( in prepareRefocusFilter()
DBlurStack.java159 BlurStack blurStack = new BlurStack(); in createFromDepthTransform() local
170 blurStack.computeDiskRadius(depthTransform, frontFocalDepth, backFocalDepth, in createFromDepthTransform()
174 blurStack.generateOneLayerForEachDepth(frontFocalDepth, backFocalDepth); in createFromDepthTransform()
177 float diskRadiusInterval = (blurStack.getDiskRadius(MIN_DEPTH) in createFromDepthTransform()
178 + blurStack.getDiskRadius(MAX_DEPTH)) / numBlendingLayers; in createFromDepthTransform()
183 blurStack.groupDepthLevelsIntoLayers(frontFocalDepth, backFocalDepth, in createFromDepthTransform()
186 return blurStack; in createFromDepthTransform()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/d1new/
DKernelDataForRenderScriptd1new.java53 public KernelDataForRenderScriptd1new(int targetLayer, BlurStack blurStack, in KernelDataForRenderScriptd1new() argument
55 super(targetLayer, blurStack, renderScript); in KernelDataForRenderScriptd1new()
59 int numDepths = blurStack.getNumDepths(targetLayer); in KernelDataForRenderScriptd1new()
62 int depth = blurStack.getDepth(targetLayer, m); in KernelDataForRenderScriptd1new()
63 float diskRadius = blurStack.getDiskRadius(depth); in KernelDataForRenderScriptd1new()
DRefocusFilterd1new.java133 protected void setKernelData(int targetLayer, BlurStack blurStack) { in setKernelData() argument
135 new KernelDataForRenderScriptd1new(targetLayer, blurStack, renderScript); in setKernelData()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/f32/
DKernelDataForRenderScriptF32.java54 public KernelDataForRenderScriptF32(int targetLayer, BlurStack blurStack, in KernelDataForRenderScriptF32() argument
56 super(targetLayer, blurStack, renderScript); in KernelDataForRenderScriptF32()
60 int numDepths = blurStack.getNumDepths(targetLayer); in KernelDataForRenderScriptF32()
63 int depth = blurStack.getDepth(targetLayer, m); in KernelDataForRenderScriptF32()
64 float diskRadius = blurStack.getDiskRadius(depth); in KernelDataForRenderScriptF32()
DRefocusFilterF32.java135 protected void setKernelData(int targetLayer, BlurStack blurStack) { in setKernelData() argument
137 new KernelDataForRenderScriptF32(targetLayer, blurStack, renderScript); in setKernelData()