/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
RefocusFilter.java | 54 * color image. The D channel has a range of [1,BlurStack.MAX_DEPTH], where 0 58 * @param blurStack an object that has all the parameters for refocus 61 * definition of {@code BlurStack}. 69 protected Bitmap compute(Bitmap inputImage, BlurStack blurStack) { 74 blurStack.getLayerInfo(blurStack.getFocusLayer())); 78 if (!processLayersFromBackToFocus(blurStack)) { 84 if (!processLayersFromFrontToFocus(blurStack)) { 99 protected boolean processLayersFromBackToFocus(BlurStack blurStack) [all...] |
KernelDataForRenderScript.java | 50 computeKernelRadiusFromDiskRadius(BlurStack.getMaxDiskRadius()); 107 * @param blurStack an instance of {@code BlurStack} 110 protected KernelDataForRenderScript(int targetLayer, BlurStack blurStack, 114 int numDepths = blurStack.getNumDepths(targetLayer); 123 int depth = blurStack.getDepth(targetLayer, m); 124 float diskRadius = blurStack.getDiskRadius(depth); 139 int numDepths = blurStack.getNumDepths(targetLayer); 145 int depth = blurStack.getDepth(targetLayer, m) [all...] |
RenderScriptTask.java | 62 public BlurStack blurStack; 67 * {@code BlurStack.MAX_DEPTH}. 0 is reserved for padding pixels. 99 // Generates {@code rgbdImage} and {@code blurStack}. 107 rfFilterF32.compute(rgbdImage, blurStack); 113 rfFilterd1new.compute(rgbdImage, blurStack); 127 * A function that computes {@code rgbdImage} and {@code blurStack} from an 134 blurStack = BlurStack.createFromDepthTransform(
|
BlurStack.java | 42 public class BlurStack { 43 //private static final Log.Tag TAG = new Log.Tag("BlurStack"); 44 private static final String TAG = "BlurStack"; 142 * Creates an instance of BlurStack using depth range, focal depth, desired 154 * @return an instance of {@code BlurStack} 156 public static BlurStack createFromDepthTransform( 159 BlurStack blurStack = new BlurStack(); 170 blurStack.computeDiskRadius(depthTransform, frontFocalDepth, backFocalDepth [all...] |
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
RefocusFilter.java | 53 * color image. The D channel has a range of [1,BlurStack.MAX_DEPTH], where 0 57 * @param blurStack an object that has all the parameters for refocus 60 * definition of {@code BlurStack}. 68 protected Bitmap compute(Bitmap inputImage, BlurStack blurStack) { 73 blurStack.getLayerInfo(blurStack.getFocusLayer())); 77 if (!processLayersFromBackToFocus(blurStack)) { 83 if (!processLayersFromFrontToFocus(blurStack)) { 98 protected boolean processLayersFromBackToFocus(BlurStack blurStack) [all...] |
KernelDataForRenderScript.java | 36 computeKernelRadiusFromDiskRadius(BlurStack.getMaxDiskRadius()); 90 * @param blurStack an instance of {@code BlurStack} 93 protected KernelDataForRenderScript(int targetLayer, BlurStack blurStack, 97 int numDepths = blurStack.getNumDepths(targetLayer); 106 int depth = blurStack.getDepth(targetLayer, m); 107 float diskRadius = blurStack.getDiskRadius(depth); 122 int numDepths = blurStack.getNumDepths(targetLayer); 128 int depth = blurStack.getDepth(targetLayer, m) [all...] |
RenderScriptTask.java | 50 public BlurStack blurStack; 55 * {@code BlurStack.MAX_DEPTH}. 0 is reserved for padding pixels. 87 // Generates {@code rgbdImage} and {@code blurStack}. 104 Bitmap outputImage = filter.compute(rgbdImage, blurStack); 114 * A function that computes {@code rgbdImage} and {@code blurStack} from an 121 blurStack = BlurStack.createFromDepthTransform(
|
BlurStack.java | 27 public class BlurStack { 28 //private static final Log.Tag TAG = new Log.Tag("BlurStack"); 29 private static final String TAG = "BlurStack"; 127 * Creates an instance of BlurStack using depth range, focal depth, desired 139 * @return an instance of {@code BlurStack} 141 public static BlurStack createFromDepthTransform( 144 BlurStack blurStack = new BlurStack(); 155 blurStack.computeDiskRadius(depthTransform, frontFocalDepth, backFocalDepth [all...] |
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/d1new/ |
KernelDataForRenderScriptd1new.java | 21 import android.renderscript.cts.refocus.BlurStack; 50 * @param blurStack an instance of {@code BlurStack} 53 public KernelDataForRenderScriptd1new(int targetLayer, BlurStack blurStack, 55 super(targetLayer, blurStack, renderScript); 59 int numDepths = blurStack.getNumDepths(targetLayer); 60 minDiskRadius = BlurStack.getMaxDiskRadius(); 62 int depth = blurStack.getDepth(targetLayer, m); 63 float diskRadius = blurStack.getDiskRadius(depth) [all...] |
RefocusFilterd1new.java | 24 import android.renderscript.cts.refocus.BlurStack; 42 * {@code Bitmap result = rfFilter.compute(rgbdImage, blurStack, progress);} 133 protected void setKernelData(int targetLayer, BlurStack blurStack) { 135 new KernelDataForRenderScriptd1new(targetLayer, blurStack, renderScript);
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/f32/ |
KernelDataForRenderScriptF32.java | 22 import android.renderscript.cts.refocus.BlurStack; 51 * @param blurStack an instance of {@code BlurStack} 54 public KernelDataForRenderScriptF32(int targetLayer, BlurStack blurStack, 56 super(targetLayer, blurStack, renderScript); 60 int numDepths = blurStack.getNumDepths(targetLayer); 61 minDiskRadius = BlurStack.getMaxDiskRadius(); 63 int depth = blurStack.getDepth(targetLayer, m); 64 float diskRadius = blurStack.getDiskRadius(depth) [all...] |
RefocusFilterF32.java | 27 import android.renderscript.cts.refocus.BlurStack; 44 * {@code Bitmap result = rfFilter.compute(rgbdImage, blurStack, progress);} 135 protected void setKernelData(int targetLayer, BlurStack blurStack) { 137 new KernelDataForRenderScriptF32(targetLayer, blurStack, renderScript);
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/d1new/ |
KernelDataForRenderScriptd1new.java | 3 import com.android.rs.refocus.BlurStack; 38 * @param blurStack an instance of {@code BlurStack} 41 public KernelDataForRenderScriptd1new(int targetLayer, BlurStack blurStack, 43 super(targetLayer, blurStack, renderScript); 47 int numDepths = blurStack.getNumDepths(targetLayer); 48 minDiskRadius = BlurStack.getMaxDiskRadius(); 50 int depth = blurStack.getDepth(targetLayer, m); 51 float diskRadius = blurStack.getDiskRadius(depth) [all...] |
RefocusFilterd1new.java | 3 import com.android.rs.refocus.BlurStack; 28 * {@code Bitmap result = rfFilter.compute(rgbdImage, blurStack, progress);} 116 protected void setKernelData(int targetLayer, BlurStack blurStack) { 118 new KernelDataForRenderScriptd1new(targetLayer, blurStack, renderScript);
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/f32/ |
KernelDataForRenderScriptF32.java | 3 import com.android.rs.refocus.BlurStack; 38 * @param blurStack an instance of {@code BlurStack} 41 public KernelDataForRenderScriptF32(int targetLayer, BlurStack blurStack, 43 super(targetLayer, blurStack, renderScript); 47 int numDepths = blurStack.getNumDepths(targetLayer); 48 minDiskRadius = BlurStack.getMaxDiskRadius(); 50 int depth = blurStack.getDepth(targetLayer, m); 51 float diskRadius = blurStack.getDiskRadius(depth) [all...] |
RefocusFilterF32.java | 4 import com.android.rs.refocus.BlurStack; 27 * {@code Bitmap result = rfFilter.compute(rgbdImage, blurStack, progress);} 114 protected void setKernelData(int targetLayer, BlurStack blurStack) { 116 new KernelDataForRenderScriptF32(targetLayer, blurStack, renderScript);
|