Merge \"Fix NDK linking\"
am: 04c0a5bc59
Change-Id: I86211fbda7709971d8a6c88313537f73b5ebb43a
diff --git a/api/GenerateStubsWhiteList.cpp b/api/GenerateStubsWhiteList.cpp
index 5b202a5..ed03a09 100644
--- a/api/GenerateStubsWhiteList.cpp
+++ b/api/GenerateStubsWhiteList.cpp
@@ -520,6 +520,9 @@
calls << "#ifdef __LP64__\n";
}
for (auto permutation : spec->getPermutations()) {
+ // http://b/27358969 Do not test rsForEach in the all-api test.
+ if (apiLevel >= 24 && permutation->getName().compare(0, 9, "rsForEach") == 0)
+ continue;
generateTestCall(&file, &calls, &variableNumber, *function, *permutation);
}
if (info.intSize != 0) {
diff --git a/api/GenerateTestFiles.cpp b/api/GenerateTestFiles.cpp
index 45cf1f3..3c28801 100644
--- a/api/GenerateTestFiles.cpp
+++ b/api/GenerateTestFiles.cpp
@@ -128,6 +128,9 @@
*/
void writeJavaVerifyVectorMethod() const;
+ // Generate the line that creates the Target.
+ void writeJavaCreateTarget() const;
+
// Generate the method header of the verify function.
void writeJavaVerifyMethodHeader() const;
@@ -248,16 +251,29 @@
mJava->startBlock();
for (auto p : mAllInputsAndOutputs) {
+ bool isFieldArray = !scalar && p->mVectorSize != "1";
+ bool isFloatyField = p->isOutParameter && p->isFloatType && mPermutation.getTest() != "custom";
+
mJava->indent() << "public ";
- if (p->isOutParameter && p->isFloatType && mPermutation.getTest() != "custom") {
+ if (isFloatyField) {
*mJava << "Target.Floaty";
} else {
*mJava << p->javaBaseType;
}
- if (!scalar && p->mVectorSize != "1") {
+ if (isFieldArray) {
*mJava << "[]";
}
*mJava << " " << p->variableName << ";\n";
+
+ // For Float16 parameters, add an extra 'double' field in the class
+ // to hold the Double value converted from the input.
+ if (p->isFloat16Parameter() && !isFloatyField) {
+ mJava->indent() << "public double";
+ if (isFieldArray) {
+ *mJava << "[]";
+ }
+ *mJava << " " + p->variableName << "Double;\n";
+ }
}
mJava->endBlock();
*mJava << "\n";
@@ -417,6 +433,14 @@
*mJava << " * " << p->vectorWidth << " + j";
}
*mJava << "];\n";
+
+ // Convert the Float16 parameter to double and store it in the appropriate field in the
+ // Arguments class.
+ if (p->isFloat16Parameter()) {
+ mJava->indent() << "args." << p->doubleVariableName
+ << " = Float16Utils.convertFloat16ToDouble(args."
+ << p->variableName << ");\n";
+ }
}
}
const bool hasFloat = mPermutation.hasFloatAnswers();
@@ -426,11 +450,16 @@
if (p->isOutParameter) {
mJava->indent() << "args." << p->variableName << " = " << p->javaArrayName
<< "[i * " << p->vectorWidth << " + j];\n";
+ if (p->isFloat16Parameter()) {
+ mJava->indent() << "args." << p->doubleVariableName
+ << " = Float16Utils.convertFloat16ToDouble(args."
+ << p->variableName << ");\n";
+ }
}
}
mJava->indent() << "// Ask the CoreMathVerifier to validate.\n";
if (hasFloat) {
- mJava->indent() << "Target target = new Target(relaxed);\n";
+ writeJavaCreateTarget();
}
mJava->indent() << "String errorMessage = CoreMathVerifier."
<< mJavaVerifierVerifyMethodName << "(args";
@@ -442,7 +471,7 @@
} else {
mJava->indent() << "// Figure out what the outputs should have been.\n";
if (hasFloat) {
- mJava->indent() << "Target target = new Target(relaxed);\n";
+ writeJavaCreateTarget();
}
mJava->indent() << "CoreMathVerifier." << mJavaVerifierComputeMethodName << "(args";
if (hasFloat) {
@@ -520,6 +549,10 @@
}
mJava->indent() << "args." << p->variableName << " = new " << type << "["
<< p->mVectorSize << "];\n";
+ if (p->isFloat16Parameter() && !p->isOutParameter) {
+ mJava->indent() << "args." << p->variableName << "Double = new double["
+ << p->mVectorSize << "];\n";
+ }
}
}
@@ -529,17 +562,32 @@
if (p->mVectorSize == "1") {
mJava->indent() << "args." << p->variableName << " = " << p->javaArrayName << "[i]"
<< ";\n";
+ // Convert the Float16 parameter to double and store it in the appropriate field in
+ // the Arguments class.
+ if (p->isFloat16Parameter()) {
+ mJava->indent() << "args." << p->doubleVariableName << " = "
+ << "Float16Utils.convertFloat16ToDouble(args."
+ << p->variableName << ");\n";
+ }
} else {
mJava->indent() << "for (int j = 0; j < " << p->mVectorSize << " ; j++)";
mJava->startBlock();
mJava->indent() << "args." << p->variableName << "[j] = "
<< p->javaArrayName << "[i * " << p->vectorWidth << " + j]"
<< ";\n";
+
+ // Convert the Float16 parameter to double and store it in the appropriate field in
+ // the Arguments class.
+ if (p->isFloat16Parameter()) {
+ mJava->indent() << "args." << p->doubleVariableName << "[j] = "
+ << "Float16Utils.convertFloat16ToDouble(args."
+ << p->variableName << "[j]);\n";
+ }
mJava->endBlock();
}
}
}
- mJava->indent() << "Target target = new Target(relaxed);\n";
+ writeJavaCreateTarget();
mJava->indent() << "CoreMathVerifier." << mJavaVerifierComputeMethodName
<< "(args, target);\n\n";
@@ -582,6 +630,39 @@
*mJava << "\n";
}
+
+void PermutationWriter::writeJavaCreateTarget() const {
+ string name = mPermutation.getName();
+
+ const char* functionType = "NORMAL";
+ size_t end = name.find('_');
+ if (end != string::npos) {
+ if (name.compare(0, end, "native") == 0) {
+ functionType = "NATIVE";
+ } else if (name.compare(0, end, "half") == 0) {
+ functionType = "HALF";
+ } else if (name.compare(0, end, "fast") == 0) {
+ functionType = "FAST";
+ }
+ }
+
+ string floatType = mReturnParam->specType;
+ const char* precisionStr = "";
+ if (floatType.compare("f16") == 0) {
+ precisionStr = "HALF";
+ } else if (floatType.compare("f32") == 0) {
+ precisionStr = "FLOAT";
+ } else if (floatType.compare("f64") == 0) {
+ precisionStr = "DOUBLE";
+ } else {
+ cerr << "Error. Unreachable. Return type is not floating point\n";
+ }
+
+ mJava->indent() << "Target target = new Target(Target.FunctionType." <<
+ functionType << ", Target.ReturnType." << precisionStr <<
+ ", relaxed);\n";
+}
+
void PermutationWriter::writeJavaVerifyMethodHeader() const {
mJava->indent() << "private void " << mJavaVerifyMethodName << "(";
for (auto p : mAllInputsAndOutputs) {
@@ -617,10 +698,17 @@
void PermutationWriter::writeJavaTestOneValue(const ParameterDefinition& p, const string& argsIndex,
const string& actualIndex) const {
+ string actualOut;
+ if (p.isFloat16Parameter()) {
+ // For Float16 values, the output needs to be converted to Double.
+ actualOut = "Float16Utils.convertFloat16ToDouble(" + p.javaArrayName + actualIndex + ")";
+ } else {
+ actualOut = p.javaArrayName + actualIndex;
+ }
+
mJava->indent() << "if (";
if (p.isFloatType) {
- *mJava << "!args." << p.variableName << argsIndex << ".couldBe(" << p.javaArrayName
- << actualIndex;
+ *mJava << "!args." << p.variableName << argsIndex << ".couldBe(" << actualOut;
const string s = mPermutation.getPrecisionLimit();
if (!s.empty()) {
*mJava << ", " << s;
@@ -657,6 +745,14 @@
mJava->indent() << "appendVariableToMessage(message, args." << p.variableName << argsIndex
<< ");\n";
writeJavaAppendNewLineToMessage();
+ if (p.isFloat16Parameter()) {
+ writeJavaAppendNewLineToMessage();
+ mJava->indent() << "message.append(\"Output " << p.variableName
+ << " (in double): \");\n";
+ mJava->indent() << "appendVariableToMessage(message, args." << p.doubleVariableName
+ << ");\n";
+ writeJavaAppendNewLineToMessage();
+ }
} else {
mJava->indent() << "message.append(\"Expected output " << p.variableName << ": \");\n";
mJava->indent() << "appendVariableToMessage(message, args." << p.variableName << argsIndex
@@ -667,6 +763,14 @@
mJava->indent() << "appendVariableToMessage(message, " << p.javaArrayName << actualIndex
<< ");\n";
+ if (p.isFloat16Parameter()) {
+ writeJavaAppendNewLineToMessage();
+ mJava->indent() << "message.append(\"Actual output " << p.variableName
+ << " (in double): \");\n";
+ mJava->indent() << "appendVariableToMessage(message, Float16Utils.convertFloat16ToDouble("
+ << p.javaArrayName << actualIndex << "));\n";
+ }
+
writeJavaTestOneValue(p, argsIndex, actualIndex);
mJava->startBlock();
mJava->indent() << "message.append(\" FAIL\");\n";
@@ -903,7 +1007,8 @@
*file << "import android.renderscript.Allocation;\n";
*file << "import android.renderscript.RSRuntimeException;\n";
- *file << "import android.renderscript.Element;\n\n";
+ *file << "import android.renderscript.Element;\n";
+ *file << "import android.renderscript.cts.Target;\n\n";
*file << "import java.util.Arrays;\n\n";
*file << "public class " << testName << " extends RSBaseCompute";
diff --git a/api/Specification.cpp b/api/Specification.cpp
index 024b8b6..67b8973 100644
--- a/api/Specification.cpp
+++ b/api/Specification.cpp
@@ -35,7 +35,7 @@
const unsigned int MIN_API_LEVEL = 9;
const NumericalType TYPES[] = {
- {"f16", "FLOAT_16", "half", "float", FLOATING_POINT, 11, 5},
+ {"f16", "FLOAT_16", "half", "short", FLOATING_POINT, 11, 5},
{"f32", "FLOAT_32", "float", "float", FLOATING_POINT, 24, 8},
{"f64", "FLOAT_64", "double", "double", FLOATING_POINT, 53, 11},
{"i8", "SIGNED_8", "char", "byte", SIGNED_INTEGER, 7, 0},
@@ -164,12 +164,14 @@
} else if (!isReturn) {
scanner->error(lineNumber) << "Should have a name.\n";
}
+ doubleVariableName = variableName + "Double";
} else {
variableName = "in";
if (specName.empty()) {
scanner->error(lineNumber) << "Should have a name.\n";
}
variableName += capitalize(specName);
+ doubleVariableName = variableName + "Double";
}
rsAllocName = "gAlloc" + capitalize(variableName);
javaAllocName = variableName;
diff --git a/api/Specification.h b/api/Specification.h
index 8326659..c3c556b 100644
--- a/api/Specification.h
+++ b/api/Specification.h
@@ -96,6 +96,8 @@
std::string rsAllocName; // e.g. gAllocInX
std::string javaAllocName; // e.g. inX
std::string javaArrayName; // e.g. arrayInX
+ std::string doubleVariableName; // e.g. inXDouble, used in .java for storing Float16 parameters
+ // in double.
// If non empty, the mininum and maximum values to be used when generating the test data.
std::string minValue;
@@ -117,6 +119,8 @@
void parseParameterDefinition(const std::string& type, const std::string& name,
const std::string& testOption, int lineNumber, bool isReturn,
Scanner* scanner);
+
+ bool isFloat16Parameter() const { return specType.compare("f16") == 0; }
};
struct VersionInfo {
diff --git a/api/Utilities.cpp b/api/Utilities.cpp
index 6218d51..fa9fd36 100644
--- a/api/Utilities.cpp
+++ b/api/Utilities.cpp
@@ -145,8 +145,8 @@
* to create smaller values to avoid a round up. Same for floats and halfs.
*/
int lowZeroBits = max(0, numberOfIntegerBits - mantissaSize);
- unsigned long l = (0xffffffffffffffff >> (64 - numberOfIntegerBits + lowZeroBits))
- << lowZeroBits;
+ uint64_t l = (0xffffffffffffffff >> (64 - numberOfIntegerBits + lowZeroBits))
+ << lowZeroBits;
return (double)l;
}
diff --git a/api/generate.sh b/api/generate.sh
index b569f67..fd56676 100755
--- a/api/generate.sh
+++ b/api/generate.sh
@@ -46,7 +46,10 @@
rm -f ../../base/docs/html/guide/topics/renderscript/reference/*.jd
mv docs/*.jd ../../base/docs/html/guide/topics/renderscript/reference/
-for i in {11..23}
+# Current API level : 24
+RS_API_LEVEL=24
+
+for ((i=11; i<=RS_API_LEVEL; i++))
do
mv slangtest/all$i.rs ../../compile/slang/tests/P_all_api_$i
done
diff --git a/api/rs_convert.spec b/api/rs_convert.spec
index a608223..6ae7b40 100644
--- a/api/rs_convert.spec
+++ b/api/rs_convert.spec
@@ -81,7 +81,6 @@
t: u8, u16, u32, u64, i8, i16, i32, i64, f16, f32, f64
ret: #3#1
arg: #2#1 v, compatible(#3)
-test: none
end:
function: convert_#3#1
@@ -92,7 +91,6 @@
t: f16
ret: #3#1
arg: #2#1 v, compatible(#3)
-test: none
end:
function: rsPackColorTo8888
diff --git a/api/rs_math.spec b/api/rs_math.spec
index 96eee81..15378ad 100644
--- a/api/rs_math.spec
+++ b/api/rs_math.spec
@@ -197,8 +197,7 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1,1)
end:
function: acosh
@@ -222,7 +221,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: acospi
@@ -247,8 +245,7 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1,1)
end:
function: asin
@@ -271,8 +268,7 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1,1)
end:
function: asinh
@@ -296,7 +292,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: asinpi
@@ -321,8 +316,7 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1,1)
end:
function: atan
@@ -345,8 +339,7 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1,1)
end:
function: atan2
@@ -372,7 +365,6 @@
ret: #2#1
arg: #2#1 numerator
arg: #2#1 denominator
-test: none
end:
function: atan2pi
@@ -400,7 +392,6 @@
ret: #2#1
arg: #2#1 numerator
arg: #2#1 denominator
-test: none
end:
function: atanh
@@ -423,8 +414,7 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1,1)
end:
function: atanpi
@@ -449,8 +439,7 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1,1)
end:
function: cbrt
@@ -474,7 +463,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: ceil
@@ -500,7 +488,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: clamp
@@ -565,7 +552,6 @@
arg: #2#1 value
arg: #2#1 min_value
arg: #2#1 max_value, above(min_value)
-test: none
end:
function: clamp
@@ -577,7 +563,6 @@
arg: #2#1 value
arg: #2 min_value
arg: #2 max_value, above(min_value)
-test: none
end:
function: clz
@@ -619,7 +604,6 @@
ret: #2#1
arg: #2#1 magnitude_value
arg: #2#1 sign_value
-test: none
end:
function: cos
@@ -643,7 +627,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: cosh
@@ -667,7 +650,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: cospi
@@ -693,7 +675,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: degrees
@@ -715,7 +696,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: erf
@@ -737,7 +717,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: erfc
@@ -759,7 +738,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: exp
@@ -783,7 +761,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: exp10
@@ -807,7 +784,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: exp2
@@ -831,7 +807,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: expm1
@@ -855,7 +830,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: fabs
@@ -879,7 +853,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: fdim
@@ -905,7 +878,6 @@
ret: #2#1
arg: #2#1 a
arg: #2#1 b
-test: none
end:
function: floor
@@ -931,7 +903,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: fma
@@ -961,7 +932,6 @@
arg: #2#1 multiplicand1
arg: #2#1 multiplicand2
arg: #2#1 offset
-test: none
end:
function: fmax
@@ -987,7 +957,6 @@
ret: #2#1
arg: #2#1 a
arg: #2#1 b
-test: none
end:
function: fmax
@@ -1008,7 +977,6 @@
ret: #2#1
arg: #2#1 a
arg: #2 b
-test: none
end:
function: fmin
@@ -1034,7 +1002,6 @@
ret: #2#1
arg: #2#1 a
arg: #2#1 b
-test: none
end:
function: fmin
@@ -1055,7 +1022,6 @@
ret: #2#1
arg: #2#1 a
arg: #2 b
-test: none
end:
function: fmod
@@ -1083,10 +1049,8 @@
ret: #2#1
arg: #2#1 numerator
arg: #2#1 denominator
-test: none
end:
-# TODO Add (both variants) of fract for f16
function: fract
version: 9
w: 1, 2, 3, 4
@@ -1129,7 +1093,6 @@
ret: #2#1
arg: #2#1 v
arg: #2#1* floor
-test: none
end:
function: fract
@@ -1138,10 +1101,8 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
-# TODO Add f16 frexp
function: frexp
version: 9
w: 1, 2, 3, 4
@@ -1239,7 +1200,6 @@
ret: #2#1
arg: #2#1 a
arg: #2#1 b
-test: none
end:
function: ilogb
@@ -1383,7 +1343,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: log10
@@ -1407,7 +1366,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: log1p
@@ -1431,7 +1389,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: log2
@@ -1455,7 +1412,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: logb
@@ -1484,7 +1440,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: mad
@@ -1514,7 +1469,6 @@
arg: #2#1 multiplicand1
arg: #2#1 multiplicand2
arg: #2#1 offset
-test: none
end:
function: max
@@ -1538,7 +1492,6 @@
ret: #2#1
arg: #2#1 a
arg: #2#1 b
-test: none
end:
function: max
@@ -1559,7 +1512,6 @@
ret: #2#1
arg: #2#1 a
arg: #2 b
-test: none
end:
function: max
@@ -1653,7 +1605,6 @@
ret: #2#1
arg: #2#1 a
arg: #2#1 b
-test: none
end:
function: min
@@ -1674,7 +1625,6 @@
ret: #2#1
arg: #2#1 a
arg: #2 b
-test: none
end:
function: min
@@ -1773,7 +1723,6 @@
arg: #2#1 start
arg: #2#1 stop
arg: #2#1 fraction
-test: none
end:
function: mix
@@ -1796,7 +1745,6 @@
arg: #2#1 start
arg: #2#1 stop
arg: #2 fraction
-test: none
end:
function: modf
@@ -1846,7 +1794,6 @@
summary: Not a Number
description:
Returns a half-precision floating point NaN value (Not a Number).
-test: none
end:
function: native_acos
@@ -1873,9 +1820,9 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(-1,1) here similar to the float version?
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1,1)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_acosh
@@ -1901,7 +1848,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: native_acospi
@@ -1930,9 +1876,9 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(-1,1) here similar to the float version?
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1,1)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_asin
@@ -1959,9 +1905,9 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(-1,1) here similar to the float version?
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1,1)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_asinh
@@ -1987,7 +1933,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: native_asinpi
@@ -2016,9 +1961,9 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(-1,1) here similar to the float version?
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1,1)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_atan
@@ -2043,9 +1988,7 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(-1,1) here similar to the float version?
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1, 1)
end:
function: native_atan2
@@ -2073,7 +2016,6 @@
ret: #2#1
arg: #2#1 numerator
arg: #2#1 denominator
-test: none
end:
function: native_atan2pi
@@ -2104,7 +2046,6 @@
ret: #2#1
arg: #2#1 numerator
arg: #2#1 denominator
-test: none
end:
function: native_atanh
@@ -2129,9 +2070,7 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(-1,1) here similar to the float version?
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1,1)
end:
function: native_atanpi
@@ -2158,9 +2097,7 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(-1,1) here similar to the float version?
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1,1)
end:
function: native_cbrt
@@ -2184,7 +2121,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: native_cos
@@ -2207,8 +2143,9 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-314,314)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_cosh
@@ -2232,7 +2169,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: native_cospi
@@ -2257,8 +2193,9 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-100,100)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_divide
@@ -2282,7 +2219,6 @@
ret: #2#1
arg: #2#1 left_vector
arg: #2#1 right_vector
-test: none
end:
function: native_exp
@@ -2309,9 +2245,7 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(-86, 86) here similar to the float version?
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-86,86)
end:
function: native_exp10
@@ -2338,9 +2272,7 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(-37, 37) here similar to the float version?
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-37,37)
end:
function: native_exp2
@@ -2367,9 +2299,7 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(-125, 125) here similar to the float version?
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-125,125)
end:
function: native_expm1
@@ -2393,7 +2323,7 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
+test: custom
end:
function: native_hypot
@@ -2419,7 +2349,6 @@
ret: #2#1
arg: #2#1 a
arg: #2#1 b
-test: none
end:
function: native_log
@@ -2445,9 +2374,7 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(10e-10,10e10) here similar to the float version?
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(10e-5,65504)
end:
function: native_log10
@@ -2473,9 +2400,7 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(10e-10,10e10) here similar to the float version?
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(10e-5,65504)
end:
function: native_log1p
@@ -2499,7 +2424,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: native_log2
@@ -2525,9 +2449,7 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(10e-10,10e10) here similar to the float version?
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(10e-5,65504)
end:
function: native_powr
@@ -2552,11 +2474,8 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(0, 256) here similar to the float version?
-arg: #2#1 base
-# TODO Need range(-15,15) here similar to the float version?
-arg: #2#1 exponent
-test: none
+arg: #2#1 base, range(0,256)
+arg: #2#1 exponent, range(-15,15)
end:
function: native_recip
@@ -2580,7 +2499,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: native_rootn
@@ -2630,7 +2548,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: native_sin
@@ -2653,8 +2570,9 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-314,314)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_sincos
@@ -2679,8 +2597,9 @@
t: f16
ret: #2#1
arg: #2#1 v
-arg: #2#1* cos
-test: none
+arg: #2#1* cos, range(-314,314)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_sinh
@@ -2704,7 +2623,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: native_sinpi
@@ -2729,8 +2647,9 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-100,100)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_sqrt
@@ -2754,7 +2673,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: native_tan
@@ -2775,8 +2693,8 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-314,314)
+test: custom
end:
function: native_tanh
@@ -2800,7 +2718,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: native_tanpi
@@ -2825,8 +2742,8 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-100,100)
+test: custom
end:
function: nextafter
@@ -2880,7 +2797,6 @@
ret: #2#1
arg: #2#1 base
arg: #2#1 exponent
-test: none
end:
function: pown
@@ -2907,7 +2823,6 @@
ret: #2#1
arg: #2#1 base
arg: int#1 exponent
-test: none
end:
function: powr
@@ -2934,10 +2849,8 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(0,3000) here similar to the float version?
-arg: #2#1 base
+arg: #2#1 base, range(0,300)
arg: #2#1 exponent
-test: none
end:
function: radians
@@ -2959,7 +2872,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: remainder
@@ -2988,7 +2900,6 @@
ret: #2#1
arg: #2#1 numerator
arg: #2#1 denominator
-test: none
end:
function: remquo
@@ -3051,7 +2962,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: rootn
@@ -3105,7 +3015,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: rsqrt
@@ -3129,7 +3038,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: sign
@@ -3155,7 +3063,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: sin
@@ -3179,7 +3086,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: sincos
@@ -3203,7 +3109,6 @@
ret: #2#1
arg: #2#1 v
arg: #2#1* cos
-test: none
end:
function: sinh
@@ -3227,7 +3132,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: sinpi
@@ -3253,7 +3157,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: sqrt
@@ -3277,7 +3180,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: step
@@ -3305,7 +3207,6 @@
ret: #2#1
arg: #2#1 edge
arg: #2#1 v
-test: none
end:
function: step
@@ -3326,7 +3227,6 @@
ret: #2#1
arg: #2#1 edge
arg: #2 v
-test: none
end:
function: step
@@ -3347,7 +3247,6 @@
ret: #2#1
arg: #2 edge
arg: #2#1 v
-test: none
end:
function: tan
@@ -3371,7 +3270,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: tanh
@@ -3395,7 +3293,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: tanpi
@@ -3421,7 +3318,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: tgamma
@@ -3445,7 +3341,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: trunc
@@ -3471,7 +3366,6 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
end:
function: rsClamp
diff --git a/api/rs_vector_math.spec b/api/rs_vector_math.spec
index a9f3583..c1d464d 100644
--- a/api/rs_vector_math.spec
+++ b/api/rs_vector_math.spec
@@ -56,7 +56,7 @@
ret: #2#1
arg: #2#1 left_vector
arg: #2#1 right_vector
-test: none
+test: vector
end:
function: distance
@@ -83,7 +83,7 @@
ret: #2
arg: #2#1 left_vector
arg: #2#1 right_vector
-test: none
+test: vector
end:
function: dot
@@ -108,7 +108,7 @@
ret: #2
arg: #2#1 left_vector
arg: #2#1 right_vector
-test: none
+test: vector
end:
function: fast_distance
@@ -191,7 +191,7 @@
t: f16
ret: #2
arg: #2#1 v
-test: none
+test: vector
end:
function: native_distance
@@ -218,7 +218,7 @@
ret: #2
arg: #2#1 left_vector
arg: #2#1 right_vector
-test: none
+test: vector
end:
function: native_length
@@ -243,7 +243,7 @@
t: f16
ret: #2
arg: #2#1 v
-test: none
+test: vector
end:
function: native_normalize
@@ -268,7 +268,7 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
+test: vector
end:
function: normalize
@@ -296,5 +296,5 @@
t: f16
ret: #2#1
arg: #2#1 v
-test: none
+test: vector
end:
diff --git a/driver/runtime/build_bc_lib_internal.mk b/driver/runtime/build_bc_lib_internal.mk
index 20f8e53..8a3276d 100644
--- a/driver/runtime/build_bc_lib_internal.mk
+++ b/driver/runtime/build_bc_lib_internal.mk
@@ -41,14 +41,11 @@
endif
bc_translated_clang_cc1_cflags := $(addprefix -Xclang , $(bc_clang_cc1_cflags))
-# Bug: 25435756 - must be switched back to the proper API level
-bc_RS_VERSION := -DRS_VERSION=4294967295
-
# Disable deprecated warnings, because we have to support even legacy APIs.
bc_warning_flags := -Wno-deprecated -Werror
bc_cflags := -MD \
- $(bc_RS_VERSION) \
+ $(RS_VERSION_DEFINE) \
-std=c99 \
-c \
-O3 \
diff --git a/java/tests/Refocus/dataExtraction/N5.txt b/java/tests/Refocus/dataExtraction/N5.txt
new file mode 100644
index 0000000..cf08589
--- /dev/null
+++ b/java/tests/Refocus/dataExtraction/N5.txt
@@ -0,0 +1,972 @@
+N5(fp_relaxed + no force CPU)
+1.
+07-30 19:27:05.154 20903-21523/com.example.xinyiwang.refocus V/RenderScript﹕ 0xb4aa0000 Launching thread(s), CPUs 4
+07-30 19:27:05.166 20903-21523/com.example.xinyiwang.refocus V/RenderScript﹕ Successfully loaded runtime: libRSDriver_adreno.so
+07-30 19:27:06.356 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:06.356 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:06.452 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:06.452 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:06.465 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ Initialize: 7692709 ns
+07-30 19:27:07.209 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ UnpackInputImage: 744708645 ns
+07-30 19:27:07.210 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:07.210 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:07.378 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:07.378 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:07.387 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 4345677 ns
+07-30 19:27:07.786 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 398907448 ns
+07-30 19:27:08.762 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 975083853 ns
+07-30 19:27:08.791 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 28282761 ns
+07-30 19:27:09.832 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 1041012239 ns
+07-30 19:27:09.926 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:09.926 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:09.983 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:09.984 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:10.008 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 4137918 ns
+07-30 19:27:10.222 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 213465573 ns
+07-30 19:27:11.009 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 786876041 ns
+07-30 19:27:11.980 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 970581510 ns
+07-30 19:27:12.098 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 118639948 ns
+07-30 19:27:12.147 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:12.148 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:12.201 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:12.201 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:12.212 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 636667 ns
+07-30 19:27:12.322 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 109328281 ns
+07-30 19:27:12.526 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 203709167 ns
+07-30 19:27:13.492 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 966430364 ns
+07-30 19:27:13.581 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 88634375 ns
+07-30 19:27:13.624 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:13.624 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:13.655 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:13.656 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:13.680 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 645729 ns
+07-30 19:27:13.757 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 77239583 ns
+07-30 19:27:13.786 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 28213855 ns
+07-30 19:27:13.906 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 119870677 ns
+07-30 19:27:13.985 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:13.986 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:14.129 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:14.129 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:14.138 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 3115521 ns
+07-30 19:27:14.720 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 581354635 ns
+07-30 19:27:15.496 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 775913594 ns
+07-30 19:27:15.606 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 110070469 ns
+07-30 19:27:15.608 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:15.608 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:15.663 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:15.663 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:15.690 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 4180729 ns
+07-30 19:27:15.799 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 109000781 ns
+07-30 19:27:15.984 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 185129478 ns
+07-30 19:27:16.752 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 767500781 ns
+07-30 19:27:16.835 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:16.835 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:16.883 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:16.884 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:16.906 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 2917761 ns
+07-30 19:27:16.948 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 41583542 ns
+07-30 19:27:17.006 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 58018230 ns
+07-30 19:27:17.748 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 741257969 ns
+07-30 19:27:17.846 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ finalizeFuzzyImageUsingSharpImage: 98189844 ns
+07-30 19:27:17.936 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ PackOutputImage: 89524271 ns
+07-30 19:27:17.970 20903-20903/com.example.xinyiwang.refocus D/RefocusFilter﹕ filterAndBlendAllLayersUsingKernel is finished
+07-30 19:27:17.970 20903-20903/com.example.xinyiwang.refocus D/RenderScriptTask﹕ applyRefocusFilter is finished in 11.943 seconds
+2.
+07-30 19:27:26.721 20903-20903/com.example.xinyiwang.refocus V/RenderScript_jni﹕ RS native mode
+07-30 19:27:26.724 20903-21740/com.example.xinyiwang.refocus W/RenderScript﹕ Warning: unknown RenderScript HAL API query, 2027
+07-30 19:27:26.724 20903-21740/com.example.xinyiwang.refocus V/RenderScript﹕ 0xb4ab9000 Launching thread(s), CPUs 4
+07-30 19:27:26.730 20903-21740/com.example.xinyiwang.refocus V/RenderScript﹕ Successfully loaded runtime: libRSDriver_adreno.so
+07-30 19:27:27.918 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:27.918 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:28.001 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:28.001 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:28.015 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ Initialize: 8358281 ns
+07-30 19:27:28.820 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ UnpackInputImage: 805078749 ns
+07-30 19:27:28.821 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:28.821 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:28.986 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:28.986 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:28.997 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 5152031 ns
+07-30 19:27:29.393 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 396080834 ns
+07-30 19:27:29.483 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 89543073 ns
+07-30 19:27:30.401 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 917795938 ns
+07-30 19:27:31.439 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 1037267916 ns
+07-30 19:27:31.528 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:31.528 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:31.535 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:31.536 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:31.544 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 3498645 ns
+07-30 19:27:31.753 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 208450521 ns
+07-30 19:27:32.546 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 792533126 ns
+07-30 19:27:33.518 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 972003125 ns
+07-30 19:27:33.638 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 119180625 ns
+07-30 19:27:33.681 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:33.681 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:33.688 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:33.688 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:33.695 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 672241 ns
+07-30 19:27:33.803 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 107990833 ns
+07-30 19:27:34.008 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 204717449 ns
+07-30 19:27:34.982 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 973478801 ns
+07-30 19:27:35.077 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 95736667 ns
+07-30 19:27:35.121 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:35.121 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:35.128 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:35.128 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:35.134 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 762864 ns
+07-30 19:27:35.209 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 74354635 ns
+07-30 19:27:35.238 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 28623542 ns
+07-30 19:27:35.354 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 115884583 ns
+07-30 19:27:35.424 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:35.424 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:35.529 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:35.529 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:35.538 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 2984010 ns
+07-30 19:27:35.643 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 105226406 ns
+07-30 19:27:36.117 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 473978542 ns
+07-30 19:27:36.887 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 769540521 ns
+07-30 19:27:36.982 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:36.982 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:36.990 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:36.990 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:36.999 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 3552917 ns
+07-30 19:27:37.117 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 117572084 ns
+07-30 19:27:37.306 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 186346250 ns
+07-30 19:27:38.080 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 774575468 ns
+07-30 19:27:38.150 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:38.150 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:38.156 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:38.156 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:27:38.161 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 582865 ns
+07-30 19:27:38.203 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 41755417 ns
+07-30 19:27:38.262 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 58238802 ns
+07-30 19:27:38.999 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 736826719 ns
+07-30 19:27:39.116 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ finalizeFuzzyImageUsingSharpImage: 117157344 ns
+07-30 19:27:39.214 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ PackOutputImage: 97593384 ns
+07-30 19:27:39.253 20903-20903/com.example.xinyiwang.refocus D/RefocusFilter﹕ filterAndBlendAllLayersUsingKernel is finished
+07-30 19:27:39.253 20903-20903/com.example.xinyiwang.refocus D/RenderScriptTask﹕ applyRefocusFilter is finished in 11.672 seconds
+3.
+07-30 19:29:38.511 20903-22922/com.example.xinyiwang.refocus V/RenderScript﹕ 0x9cf66000 Launching thread(s), CPUs 4
+07-30 19:29:38.517 20903-22922/com.example.xinyiwang.refocus V/RenderScript﹕ Successfully loaded runtime: libRSDriver_adreno.so
+07-30 19:29:39.688 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:39.688 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:39.773 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:39.773 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:39.781 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ Initialize: 2504999 ns
+07-30 19:29:40.533 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ UnpackInputImage: 752169062 ns
+07-30 19:29:40.534 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:40.534 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:40.705 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:40.706 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:40.715 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 4269480 ns
+07-30 19:29:41.107 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 391731875 ns
+07-30 19:29:41.198 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 90118281 ns
+07-30 19:29:42.116 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 917892396 ns
+07-30 19:29:43.157 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 1041016353 ns
+07-30 19:29:43.246 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:43.246 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:43.254 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:43.254 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:43.263 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 3555833 ns
+07-30 19:29:43.475 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 211798229 ns
+07-30 19:29:44.270 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 794321093 ns
+07-30 19:29:45.234 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 964059166 ns
+07-30 19:29:45.355 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 120531980 ns
+07-30 19:29:45.401 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:45.401 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:45.450 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:45.450 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:45.456 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 699323 ns
+07-30 19:29:45.569 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 113117864 ns
+07-30 19:29:45.774 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 204340104 ns
+07-30 19:29:46.746 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 971051199 ns
+07-30 19:29:46.841 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 95253698 ns
+07-30 19:29:46.884 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:46.884 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:46.892 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:46.892 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:46.905 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 756824 ns
+07-30 19:29:46.979 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 74604687 ns
+07-30 19:29:47.008 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 28761875 ns
+07-30 19:29:47.123 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 115072499 ns
+07-30 19:29:47.189 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:47.189 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:47.279 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:47.279 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:47.288 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 3277136 ns
+07-30 19:29:47.393 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 105150000 ns
+07-30 19:29:47.869 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 476414115 ns
+07-30 19:29:48.640 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 770711093 ns
+07-30 19:29:48.738 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:48.738 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:48.748 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:48.748 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:48.757 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 3574532 ns
+07-30 19:29:48.869 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 111750209 ns
+07-30 19:29:49.056 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 185581823 ns
+07-30 19:29:49.833 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 776534843 ns
+07-30 19:29:49.912 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:49.912 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:49.918 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:49.918 20903-20903/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:29:49.929 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 3112291 ns
+07-30 19:29:49.971 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 41814843 ns
+07-30 19:29:50.030 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 58610886 ns
+07-30 19:29:50.765 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 734947656 ns
+07-30 19:29:50.863 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ finalizeFuzzyImageUsingSharpImage: 98521926 ns
+07-30 19:29:50.955 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ PackOutputImage: 91504115 ns
+07-30 19:29:51.003 20903-20903/com.example.xinyiwang.refocus D/RefocusFilter﹕ filterAndBlendAllLayersUsingKernel is finished
+07-30 19:29:51.003 20903-20903/com.example.xinyiwang.refocus D/RenderScriptTask﹕ applyRefocusFilter is finished in 11.647 seconds
+N5(fp_relaxed + force-CPU)
+1.
+07-30 19:31:07.899 23889-24171/com.example.xinyiwang.refocus D/RenderScript﹕ Skipping hardware driver and loading default CPU driver
+07-30 19:31:07.900 23889-24171/com.example.xinyiwang.refocus V/RenderScript﹕ 0xacde8000 Launching thread(s), CPUs 4
+07-30 19:31:08.818 23889-23889/com.example.xinyiwang.refocus I/art﹕ Waiting for a blocking GC NativeAlloc
+07-30 19:31:08.826 23889-23889/com.example.xinyiwang.refocus I/art﹕ WaitForGcToComplete blocked for 7.800ms for cause NativeAlloc
+07-30 19:31:08.826 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:08.826 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:08.834 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:08.834 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:08.845 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ Initialize: 3813542 ns
+07-30 19:31:09.267 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ UnpackInputImage: 421386040 ns
+07-30 19:31:09.267 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:09.267 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:09.416 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:09.416 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:09.502 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 80264219 ns
+07-30 19:31:09.510 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 7799115 ns
+07-30 19:31:09.534 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 24218698 ns
+07-30 19:31:10.028 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 493669428 ns
+07-30 19:31:10.069 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 41221823 ns
+07-30 19:31:10.069 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.069 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.077 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.077 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.120 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 38194635 ns
+07-30 19:31:10.283 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 163350313 ns
+07-30 19:31:10.308 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 24480730 ns
+07-30 19:31:10.347 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 39535938 ns
+07-30 19:31:10.353 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 6229948 ns
+07-30 19:31:10.354 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.354 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.359 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.359 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.382 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 18408594 ns
+07-30 19:31:10.414 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 31903750 ns
+07-30 19:31:10.440 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 25091615 ns
+07-30 19:31:10.471 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 31120938 ns
+07-30 19:31:10.477 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 6190261 ns
+07-30 19:31:10.477 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.477 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.483 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.483 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.503 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 15035260 ns
+07-30 19:31:10.511 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 7683958 ns
+07-30 19:31:10.562 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 51327968 ns
+07-30 19:31:10.580 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 17393907 ns
+07-30 19:31:10.580 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.580 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.639 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.639 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.663 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 19185365 ns
+07-30 19:31:10.764 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 101451667 ns
+07-30 19:31:10.789 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 24321094 ns
+07-30 19:31:10.814 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 25565468 ns
+07-30 19:31:10.814 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.814 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.821 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.821 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.842 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 16482187 ns
+07-30 19:31:10.873 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 31615938 ns
+07-30 19:31:10.898 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 24323230 ns
+07-30 19:31:10.908 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 10103959 ns
+07-30 19:31:10.908 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.908 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.913 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.913 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:10.929 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 11202968 ns
+07-30 19:31:10.943 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 13811875 ns
+07-30 19:31:10.967 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 23858386 ns
+07-30 19:31:10.974 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 6731354 ns
+07-30 19:31:11.017 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ finalizeFuzzyImageUsingSharpImage: 43389844 ns
+07-30 19:31:11.080 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ PackOutputImage: 62504687 ns
+07-30 19:31:11.080 23889-23889/com.example.xinyiwang.refocus D/RefocusFilter﹕ filterAndBlendAllLayersUsingKernel is finished
+07-30 19:31:11.080 23889-23889/com.example.xinyiwang.refocus D/RenderScriptTask﹕ applyRefocusFilter is finished in 2.297 seconds
+2.
+07-30 19:31:19.445 23889-23895/com.example.xinyiwang.refocus W/art﹕ Suspending all threads took: 9.779ms
+07-30 19:31:23.601 23889-23889/com.example.xinyiwang.refocus V/RenderScript_jni﹕ RS native mode
+07-30 19:31:23.601 23889-24382/com.example.xinyiwang.refocus D/RenderScript﹕ Skipping hardware driver and loading default CPU driver
+07-30 19:31:23.602 23889-24382/com.example.xinyiwang.refocus V/RenderScript﹕ 0xadba1000 Launching thread(s), CPUs 4
+07-30 19:31:24.471 23889-23889/com.example.xinyiwang.refocus I/art﹕ Waiting for a blocking GC NativeAlloc
+07-30 19:31:24.475 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:24.475 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:24.481 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:24.481 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:24.495 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ Initialize: 6421147 ns
+07-30 19:31:24.982 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ UnpackInputImage: 487326405 ns
+07-30 19:31:24.982 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:24.982 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:25.126 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:25.126 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:25.219 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 87788125 ns
+07-30 19:31:25.227 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 7784583 ns
+07-30 19:31:25.251 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 24835051 ns
+07-30 19:31:25.735 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 482978646 ns
+07-30 19:31:25.776 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 41651562 ns
+07-30 19:31:25.777 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:25.777 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:25.783 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:25.783 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:25.826 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 38509739 ns
+07-30 19:31:25.996 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 170016198 ns
+07-30 19:31:26.022 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 25124948 ns
+07-30 19:31:26.062 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 40124219 ns
+07-30 19:31:26.068 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 6221511 ns
+07-30 19:31:26.068 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.068 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.074 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.074 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.097 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 18112865 ns
+07-30 19:31:26.129 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 32179427 ns
+07-30 19:31:26.155 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 25252136 ns
+07-30 19:31:26.184 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 28878854 ns
+07-30 19:31:26.190 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 5881875 ns
+07-30 19:31:26.190 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.190 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.195 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.195 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.214 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 14854427 ns
+07-30 19:31:26.222 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 7836094 ns
+07-30 19:31:26.275 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 52776459 ns
+07-30 19:31:26.293 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 17213073 ns
+07-30 19:31:26.293 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.293 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.352 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.352 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.379 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 22060677 ns
+07-30 19:31:26.484 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 104356146 ns
+07-30 19:31:26.513 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 29173958 ns
+07-30 19:31:26.538 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 24952136 ns
+07-30 19:31:26.538 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.538 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.544 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.544 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.565 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 16739219 ns
+07-30 19:31:26.597 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 31376666 ns
+07-30 19:31:26.621 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 24360780 ns
+07-30 19:31:26.632 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 10366145 ns
+07-30 19:31:26.632 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.632 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.637 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.637 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:26.652 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 11020313 ns
+07-30 19:31:26.666 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 13680001 ns
+07-30 19:31:26.691 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 24247604 ns
+07-30 19:31:26.697 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 6873958 ns
+07-30 19:31:26.743 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ finalizeFuzzyImageUsingSharpImage: 45541875 ns
+07-30 19:31:26.800 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ PackOutputImage: 57080886 ns
+07-30 19:31:26.800 23889-23889/com.example.xinyiwang.refocus D/RefocusFilter﹕ filterAndBlendAllLayersUsingKernel is finished
+07-30 19:31:26.800 23889-23889/com.example.xinyiwang.refocus D/RenderScriptTask﹕ applyRefocusFilter is finished in 2.354 seconds
+3.
+07-30 19:31:34.159 23889-23889/com.example.xinyiwang.refocus V/RenderScript_jni﹕ RS native mode
+07-30 19:31:34.160 23889-24530/com.example.xinyiwang.refocus D/RenderScript﹕ Skipping hardware driver and loading default CPU driver
+07-30 19:31:34.161 23889-24530/com.example.xinyiwang.refocus V/RenderScript﹕ 0xadbb3000 Launching thread(s), CPUs 4
+07-30 19:31:35.041 23889-23889/com.example.xinyiwang.refocus I/art﹕ Waiting for a blocking GC NativeAlloc
+07-30 19:31:35.063 23889-23889/com.example.xinyiwang.refocus I/art﹕ WaitForGcToComplete blocked for 21.483ms for cause NativeAlloc
+07-30 19:31:35.063 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:35.063 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:35.069 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:35.069 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:35.084 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ Initialize: 8543593 ns
+07-30 19:31:35.529 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ UnpackInputImage: 444961302 ns
+07-30 19:31:35.529 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:35.529 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:35.673 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:35.673 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:35.756 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 76533958 ns
+07-30 19:31:35.766 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 9899635 ns
+07-30 19:31:35.792 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 26570468 ns
+07-30 19:31:36.285 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 493097500 ns
+07-30 19:31:36.326 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 40875729 ns
+07-30 19:31:36.327 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:36.327 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:36.333 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:36.333 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:36.378 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 40749479 ns
+07-30 19:31:36.550 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 171540885 ns
+07-30 19:31:36.575 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 24889792 ns
+07-30 19:31:36.616 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 40915260 ns
+07-30 19:31:36.622 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 5976198 ns
+07-30 19:31:36.622 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:36.622 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:36.628 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:36.628 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:36.655 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 21768022 ns
+07-30 19:31:36.692 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 36678333 ns
+07-30 19:31:36.716 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 24162656 ns
+07-30 19:31:36.746 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 29692605 ns
+07-30 19:31:36.751 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 5597708 ns
+07-30 19:31:36.751 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:36.751 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:36.758 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:36.758 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:36.778 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 15863906 ns
+07-30 19:31:36.786 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 7493022 ns
+07-30 19:31:36.845 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 58619219 ns
+07-30 19:31:36.863 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 18469999 ns
+07-30 19:31:36.863 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:36.863 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:36.924 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:36.924 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:36.948 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 19459948 ns
+07-30 19:31:37.052 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 103930781 ns
+07-30 19:31:37.078 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 26093698 ns
+07-30 19:31:37.103 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 24194114 ns
+07-30 19:31:37.103 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:37.103 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:37.109 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:37.109 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:37.132 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 18425989 ns
+07-30 19:31:37.164 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 31879167 ns
+07-30 19:31:37.188 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 24024376 ns
+07-30 19:31:37.198 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 10092656 ns
+07-30 19:31:37.198 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:37.198 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:37.203 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:37.203 23889-23889/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:31:37.219 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 11034687 ns
+07-30 19:31:37.233 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 13740260 ns
+07-30 19:31:37.257 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 23780104 ns
+07-30 19:31:37.264 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 6777082 ns
+07-30 19:31:37.305 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ finalizeFuzzyImageUsingSharpImage: 41130365 ns
+07-30 19:31:37.362 23889-23889/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ PackOutputImage: 57610520 ns
+07-30 19:31:37.363 23889-23889/com.example.xinyiwang.refocus D/RefocusFilter﹕ filterAndBlendAllLayersUsingKernel is finished
+07-30 19:31:37.363 23889-23889/com.example.xinyiwang.refocus D/RenderScriptTask﹕ applyRefocusFilter is finished in 2.335 seconds
+N5(no rs_fp_relaxed + force-CPU)
+1.
+07-30 19:33:32.789 25520-25520/com.example.xinyiwang.refocus V/RenderScript_jni﹕ RS native mode
+07-30 19:33:32.790 25520-26022/com.example.xinyiwang.refocus D/RenderScript﹕ Skipping hardware driver and loading default CPU driver
+07-30 19:33:32.791 25520-26022/com.example.xinyiwang.refocus V/RenderScript﹕ 0xb4aa0000 Launching thread(s), CPUs 4
+07-30 19:33:33.340 25520-25526/com.example.xinyiwang.refocus W/art﹕ Suspending all threads took: 6.112ms
+07-30 19:33:33.688 25520-25520/com.example.xinyiwang.refocus I/art﹕ Waiting for a blocking GC NativeAlloc
+07-30 19:33:33.702 25520-25520/com.example.xinyiwang.refocus I/art﹕ WaitForGcToComplete blocked for 14.127ms for cause NativeAlloc
+07-30 19:33:33.702 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:33.703 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:33.708 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:33.708 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:33.715 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ Initialize: 1662136 ns
+07-30 19:33:34.160 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ UnpackInputImage: 445091145 ns
+07-30 19:33:34.160 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:34.160 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:34.305 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:34.305 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:34.420 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 109887188 ns
+07-30 19:33:34.433 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 12888385 ns
+07-30 19:33:34.467 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 33858282 ns
+07-30 19:33:35.227 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 759487761 ns
+07-30 19:33:35.274 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 47190624 ns
+07-30 19:33:35.274 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:35.274 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:35.281 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:35.281 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:35.324 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 38035207 ns
+07-30 19:33:35.488 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 163522917 ns
+07-30 19:33:35.520 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 31557916 ns
+07-30 19:33:35.573 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 53312708 ns
+07-30 19:33:35.582 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 8880573 ns
+07-30 19:33:35.582 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:35.582 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:35.588 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:35.588 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:35.610 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 18168229 ns
+07-30 19:33:35.643 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 32152656 ns
+07-30 19:33:35.674 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 31335312 ns
+07-30 19:33:35.711 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 36365417 ns
+07-30 19:33:35.717 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 6585833 ns
+07-30 19:33:35.717 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:35.717 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:35.723 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:35.723 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:35.744 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 15016823 ns
+07-30 19:33:35.752 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 8047032 ns
+07-30 19:33:35.807 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 54786511 ns
+07-30 19:33:35.827 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 20238125 ns
+07-30 19:33:35.828 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:35.828 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:35.889 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:35.890 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:35.914 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 19296145 ns
+07-30 19:33:36.018 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 103844999 ns
+07-30 19:33:36.050 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 31302813 ns
+07-30 19:33:36.085 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 35348282 ns
+07-30 19:33:36.085 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:36.085 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:36.093 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:36.093 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:36.115 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 16523386 ns
+07-30 19:33:36.150 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 34647448 ns
+07-30 19:33:36.181 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 31226511 ns
+07-30 19:33:36.195 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 13983177 ns
+07-30 19:33:36.195 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:36.195 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:36.201 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:36.201 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:36.217 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 11012448 ns
+07-30 19:33:36.231 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 13583542 ns
+07-30 19:33:36.262 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 31108854 ns
+07-30 19:33:36.270 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 8528958 ns
+07-30 19:33:36.319 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ finalizeFuzzyImageUsingSharpImage: 48637917 ns
+07-30 19:33:36.381 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ PackOutputImage: 61420416 ns
+07-30 19:33:36.381 25520-25520/com.example.xinyiwang.refocus D/RefocusFilter﹕ filterAndBlendAllLayersUsingKernel is finished
+07-30 19:33:36.381 25520-25520/com.example.xinyiwang.refocus D/RenderScriptTask﹕ applyRefocusFilter is finished in 2.706 seconds
+2.
+07-30 19:33:42.480 25520-25530/com.example.xinyiwang.refocus W/art﹕ Suspending all threads took: 8.539ms
+07-30 19:33:42.830 25520-25520/com.example.xinyiwang.refocus V/RenderScript_jni﹕ RS native mode
+07-30 19:33:42.831 25520-26188/com.example.xinyiwang.refocus D/RenderScript﹕ Skipping hardware driver and loading default CPU driver
+07-30 19:33:42.832 25520-26188/com.example.xinyiwang.refocus V/RenderScript﹕ 0xb4ab9000 Launching thread(s), CPUs 4
+07-30 19:33:43.717 25520-25520/com.example.xinyiwang.refocus I/art﹕ Waiting for a blocking GC NativeAlloc
+07-30 19:33:43.739 25520-25520/com.example.xinyiwang.refocus I/art﹕ WaitForGcToComplete blocked for 21.819ms for cause NativeAlloc
+07-30 19:33:43.739 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:43.739 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:43.744 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:43.744 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:43.755 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ Initialize: 3890053 ns
+07-30 19:33:44.233 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ UnpackInputImage: 478362446 ns
+07-30 19:33:44.233 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:44.233 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:44.377 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:44.377 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:44.482 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 100024479 ns
+07-30 19:33:44.491 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 8519479 ns
+07-30 19:33:44.524 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 32762344 ns
+07-30 19:33:45.266 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 741921928 ns
+07-30 19:33:45.311 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 45126666 ns
+07-30 19:33:45.311 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:45.311 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:45.318 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:45.318 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:45.362 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 39322917 ns
+07-30 19:33:45.530 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 168107500 ns
+07-30 19:33:45.562 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 31989792 ns
+07-30 19:33:45.614 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 51365313 ns
+07-30 19:33:45.620 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 6625417 ns
+07-30 19:33:45.621 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:45.621 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:45.626 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:45.626 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:45.649 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 17875730 ns
+07-30 19:33:45.681 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 32060260 ns
+07-30 19:33:45.713 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 31923020 ns
+07-30 19:33:45.747 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 33439688 ns
+07-30 19:33:45.753 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 6148697 ns
+07-30 19:33:45.753 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:45.753 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:45.758 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:45.758 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:45.779 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 15675729 ns
+07-30 19:33:45.786 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 7552865 ns
+07-30 19:33:45.842 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 55561874 ns
+07-30 19:33:45.862 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 19835729 ns
+07-30 19:33:45.862 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:45.862 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:45.921 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:45.922 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:45.948 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 21005104 ns
+07-30 19:33:46.057 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 109147605 ns
+07-30 19:33:46.089 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 31833802 ns
+07-30 19:33:46.126 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 36825365 ns
+07-30 19:33:46.126 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:46.126 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:46.132 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:46.132 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:46.153 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 16392760 ns
+07-30 19:33:46.185 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 31856460 ns
+07-30 19:33:46.217 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 31771979 ns
+07-30 19:33:46.231 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 14162760 ns
+07-30 19:33:46.232 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:46.232 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:46.237 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:46.237 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:46.252 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 11001406 ns
+07-30 19:33:46.266 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 13796720 ns
+07-30 19:33:46.298 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 31556614 ns
+07-30 19:33:46.307 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 8601823 ns
+07-30 19:33:46.357 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ finalizeFuzzyImageUsingSharpImage: 50662969 ns
+07-30 19:33:46.418 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ PackOutputImage: 60832031 ns
+07-30 19:33:46.419 25520-25520/com.example.xinyiwang.refocus D/RefocusFilter﹕ filterAndBlendAllLayersUsingKernel is finished
+07-30 19:33:46.419 25520-25520/com.example.xinyiwang.refocus D/RenderScriptTask﹕ applyRefocusFilter is finished in 2.715 seconds
+3.
+07-30 19:33:52.161 25520-25520/com.example.xinyiwang.refocus V/RenderScript_jni﹕ RS native mode
+07-30 19:33:52.162 25520-26309/com.example.xinyiwang.refocus D/RenderScript﹕ Skipping hardware driver and loading default CPU driver
+07-30 19:33:52.162 25520-26309/com.example.xinyiwang.refocus V/RenderScript﹕ 0x99fb4000 Launching thread(s), CPUs 4
+07-30 19:33:52.270 25520-25530/com.example.xinyiwang.refocus I/art﹕ Background partial concurrent mark sweep GC freed 124(2MB) AllocSpace objects, 1(204KB) LOS objects, 14% free, 93MB/109MB, paused 5.658ms total 14.053ms
+07-30 19:33:53.134 25520-25520/com.example.xinyiwang.refocus I/art﹕ Waiting for a blocking GC NativeAlloc
+07-30 19:33:53.150 25520-25520/com.example.xinyiwang.refocus I/art﹕ WaitForGcToComplete blocked for 15.626ms for cause NativeAlloc
+07-30 19:33:53.150 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:53.150 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:53.158 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:53.158 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:53.175 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ Initialize: 8068126 ns
+07-30 19:33:53.663 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ UnpackInputImage: 488255832 ns
+07-30 19:33:53.663 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:53.663 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:53.830 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:53.831 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:53.922 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 85027395 ns
+07-30 19:33:53.930 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 8416563 ns
+07-30 19:33:53.964 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 33207031 ns
+07-30 19:33:54.768 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 804447083 ns
+07-30 19:33:54.819 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 50743386 ns
+07-30 19:33:54.819 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:54.819 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:54.827 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:54.827 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:54.883 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 50339791 ns
+07-30 19:33:55.072 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 188871823 ns
+07-30 19:33:55.104 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 32316510 ns
+07-30 19:33:55.159 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 54552396 ns
+07-30 19:33:55.166 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 7111511 ns
+07-30 19:33:55.166 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.166 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.172 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.172 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.199 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 20797343 ns
+07-30 19:33:55.235 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 36401303 ns
+07-30 19:33:55.267 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 32211510 ns
+07-30 19:33:55.303 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 35823905 ns
+07-30 19:33:55.310 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 6735730 ns
+07-30 19:33:55.310 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.310 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.316 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.316 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.339 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 17545209 ns
+07-30 19:33:55.348 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 8871250 ns
+07-30 19:33:55.409 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 61057135 ns
+07-30 19:33:55.431 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 22113021 ns
+07-30 19:33:55.431 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.431 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.500 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.500 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.528 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 22017916 ns
+07-30 19:33:55.649 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 121592604 ns
+07-30 19:33:55.681 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 31964844 ns
+07-30 19:33:55.721 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 39297343 ns
+07-30 19:33:55.721 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.721 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.728 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.728 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.752 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 18929375 ns
+07-30 19:33:55.789 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 36665834 ns
+07-30 19:33:55.821 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 32018229 ns
+07-30 19:33:55.837 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 15510052 ns
+07-30 19:33:55.837 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.837 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.843 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.843 25520-25520/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:33:55.861 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 12595000 ns
+07-30 19:33:55.877 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 16018594 ns
+07-30 19:33:55.909 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 31824739 ns
+07-30 19:33:55.919 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 9806615 ns
+07-30 19:33:55.972 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ finalizeFuzzyImageUsingSharpImage: 53379479 ns
+07-30 19:33:56.049 25520-25520/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ PackOutputImage: 76032240 ns
+07-30 19:33:56.049 25520-25520/com.example.xinyiwang.refocus D/RefocusFilter﹕ filterAndBlendAllLayersUsingKernel is finished
+07-30 19:33:56.049 25520-25520/com.example.xinyiwang.refocus D/RenderScriptTask﹕ applyRefocusFilter is finished in 2.934 seconds
+N5(no fp_relaxed + no force CPU)
+1.
+07-30 19:35:49.081 27224-27224/com.example.xinyiwang.refocus V/RenderScript_jni﹕ RS native mode
+07-30 19:35:49.085 27224-27657/com.example.xinyiwang.refocus W/RenderScript﹕ Warning: unknown RenderScript HAL API query, 2027
+07-30 19:35:49.085 27224-27657/com.example.xinyiwang.refocus V/RenderScript﹕ 0xb4aa0000 Launching thread(s), CPUs 4
+07-30 19:35:49.096 27224-27657/com.example.xinyiwang.refocus V/RenderScript﹕ Successfully loaded runtime: libRSDriver_adreno.so
+07-30 19:35:49.470 27224-27234/com.example.xinyiwang.refocus W/art﹕ Suspending all threads took: 10.482ms
+07-30 19:35:50.357 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:50.357 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:50.438 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:50.439 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:50.459 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ Initialize: 14349584 ns
+07-30 19:35:51.266 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ UnpackInputImage: 806706250 ns
+07-30 19:35:51.266 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:51.266 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:51.412 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:51.412 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:51.509 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 90958646 ns
+07-30 19:35:51.517 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 7522761 ns
+07-30 19:35:51.543 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 26539739 ns
+07-30 19:35:52.285 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 741445104 ns
+07-30 19:35:52.336 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 51519948 ns
+07-30 19:35:52.337 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:52.337 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:52.344 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:52.344 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:52.392 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 44345833 ns
+07-30 19:35:52.562 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 169463281 ns
+07-30 19:35:52.589 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 26529010 ns
+07-30 19:35:52.641 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 52009583 ns
+07-30 19:35:52.647 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 6658490 ns
+07-30 19:35:52.648 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:52.648 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:52.654 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:52.654 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:52.678 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 20135938 ns
+07-30 19:35:52.711 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 32260885 ns
+07-30 19:35:52.737 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 26597032 ns
+07-30 19:35:52.773 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 35224479 ns
+07-30 19:35:52.779 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 6272292 ns
+07-30 19:35:52.780 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:52.780 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:52.785 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:52.785 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:52.807 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 17497968 ns
+07-30 19:35:52.814 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 7491719 ns
+07-30 19:35:52.887 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 72620052 ns
+07-30 19:35:52.907 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 20256718 ns
+07-30 19:35:52.908 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:52.908 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:52.968 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:52.968 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:52.997 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 24499376 ns
+07-30 19:35:53.104 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 106941510 ns
+07-30 19:35:53.131 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 26763802 ns
+07-30 19:35:53.168 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 36991042 ns
+07-30 19:35:53.168 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:53.168 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:53.175 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:53.175 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:53.200 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 19989062 ns
+07-30 19:35:53.235 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 35372969 ns
+07-30 19:35:53.262 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 26385000 ns
+07-30 19:35:53.277 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 14947865 ns
+07-30 19:35:53.277 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:53.277 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:53.282 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:53.283 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:35:53.300 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 12361302 ns
+07-30 19:35:53.314 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 14297083 ns
+07-30 19:35:53.340 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 26376458 ns
+07-30 19:35:53.351 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 10150416 ns
+07-30 19:35:53.398 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ finalizeFuzzyImageUsingSharpImage: 47193854 ns
+07-30 19:35:53.455 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ PackOutputImage: 57472969 ns
+07-30 19:35:53.485 27224-27224/com.example.xinyiwang.refocus D/RefocusFilter﹕ filterAndBlendAllLayersUsingKernel is finished
+07-30 19:35:53.485 27224-27224/com.example.xinyiwang.refocus D/RenderScriptTask﹕ applyRefocusFilter is finished in 3.486 seconds
+2.
+07-30 19:37:01.995 27224-27224/com.example.xinyiwang.refocus V/RenderScript_jni﹕ RS native mode
+07-30 19:37:01.996 27224-28541/com.example.xinyiwang.refocus W/RenderScript﹕ Warning: unknown RenderScript HAL API query, 2027
+07-30 19:37:01.997 27224-28541/com.example.xinyiwang.refocus V/RenderScript﹕ 0x9dd56000 Launching thread(s), CPUs 4
+07-30 19:37:02.005 27224-28541/com.example.xinyiwang.refocus V/RenderScript﹕ Successfully loaded runtime: libRSDriver_adreno.so
+07-30 19:37:03.192 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:03.192 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:03.278 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:03.278 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:03.286 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ Initialize: 2400834 ns
+07-30 19:37:04.144 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ UnpackInputImage: 858308072 ns
+07-30 19:37:04.145 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:04.145 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:04.289 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:04.289 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:04.397 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 102398282 ns
+07-30 19:37:04.405 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 8421094 ns
+07-30 19:37:04.433 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 27482447 ns
+07-30 19:37:05.171 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 737864687 ns
+07-30 19:37:05.219 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 48371718 ns
+07-30 19:37:05.220 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:05.220 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:05.228 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:05.228 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:05.283 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 49770521 ns
+07-30 19:37:05.460 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 176678854 ns
+07-30 19:37:05.489 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 29699166 ns
+07-30 19:37:05.542 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 52074635 ns
+07-30 19:37:05.548 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 6839323 ns
+07-30 19:37:05.549 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:05.549 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:05.555 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:05.555 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:05.580 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 19551250 ns
+07-30 19:37:05.612 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 31920521 ns
+07-30 19:37:05.640 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 27788073 ns
+07-30 19:37:05.676 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 35546198 ns
+07-30 19:37:05.682 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 6220103 ns
+07-30 19:37:05.683 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:05.683 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:05.689 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:05.689 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:05.711 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 16898020 ns
+07-30 19:37:05.718 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 7746666 ns
+07-30 19:37:05.791 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 72361148 ns
+07-30 19:37:05.811 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 19956042 ns
+07-30 19:37:05.812 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:05.812 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:05.872 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:05.872 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:05.899 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 21729063 ns
+07-30 19:37:06.001 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 102067968 ns
+07-30 19:37:06.029 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 27691302 ns
+07-30 19:37:06.066 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 37100990 ns
+07-30 19:37:06.067 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:06.067 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:06.074 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:06.074 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:06.097 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 18358073 ns
+07-30 19:37:06.130 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 33186250 ns
+07-30 19:37:06.158 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 27714479 ns
+07-30 19:37:06.173 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 14856822 ns
+07-30 19:37:06.173 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:06.173 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:06.179 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:06.179 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:06.196 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 11903751 ns
+07-30 19:37:06.210 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 14162760 ns
+07-30 19:37:06.238 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 27377344 ns
+07-30 19:37:06.248 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 10172969 ns
+07-30 19:37:06.295 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ finalizeFuzzyImageUsingSharpImage: 46702604 ns
+07-30 19:37:06.352 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ PackOutputImage: 56773437 ns
+07-30 19:37:06.381 27224-27224/com.example.xinyiwang.refocus D/RefocusFilter﹕ filterAndBlendAllLayersUsingKernel is finished
+07-30 19:37:06.381 27224-27224/com.example.xinyiwang.refocus D/RenderScriptTask﹕ applyRefocusFilter is finished in 3.551 seconds
+07-30 19:37:10.935 27224-27224/com.example.xinyiwang.refocus V/RenderScript_jni﹕ RS native mode
+07-30 19:37:10.936 27224-28696/com.example.xinyiwang.refocus W/RenderScript﹕ Warning: unknown RenderScript HAL API query, 2027
+07-30 19:37:10.937 27224-28696/com.example.xinyiwang.refocus V/RenderScript﹕ 0x99c42000 Launching thread(s), CPUs 4
+07-30 19:37:10.944 27224-28696/com.example.xinyiwang.refocus V/RenderScript﹕ Successfully loaded runtime: libRSDriver_adreno.so
+07-30 19:37:12.194 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:12.194 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:12.275 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:12.275 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:12.285 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ Initialize: 4610313 ns
+07-30 19:37:13.095 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ UnpackInputImage: 809969531 ns
+07-30 19:37:13.096 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:13.096 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:13.240 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:13.240 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:13.333 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 87421874 ns
+07-30 19:37:13.340 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 7395417 ns
+07-30 19:37:13.367 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 26610105 ns
+07-30 19:37:14.115 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 748072655 ns
+07-30 19:37:14.164 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 49076718 ns
+07-30 19:37:14.165 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:14.165 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:14.172 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:14.172 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:14.220 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 43956406 ns
+07-30 19:37:14.386 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 165820260 ns
+07-30 19:37:14.413 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 27054739 ns
+07-30 19:37:14.465 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 51823646 ns
+07-30 19:37:14.472 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 7075989 ns
+07-30 19:37:14.473 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:14.473 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:14.479 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:14.479 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:14.505 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 21428230 ns
+07-30 19:37:14.537 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 32098333 ns
+07-30 19:37:14.566 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 28777084 ns
+07-30 19:37:14.602 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 35767708 ns
+07-30 19:37:14.610 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 7889063 ns
+07-30 19:37:14.610 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:14.610 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:14.615 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:14.615 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:14.637 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 16990834 ns
+07-30 19:37:14.645 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 7475833 ns
+07-30 19:37:14.719 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 74262656 ns
+07-30 19:37:14.739 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 20079948 ns
+07-30 19:37:14.739 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:14.739 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:14.801 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:14.801 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:14.828 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 22044688 ns
+07-30 19:37:14.929 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 101436771 ns
+07-30 19:37:14.955 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 25747396 ns
+07-30 19:37:14.992 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 36625832 ns
+07-30 19:37:14.993 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:14.993 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:15.000 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:15.000 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:15.028 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 23537709 ns
+07-30 19:37:15.061 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 32790677 ns
+07-30 19:37:15.087 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 25695521 ns
+07-30 19:37:15.102 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 14809062 ns
+07-30 19:37:15.102 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:15.102 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:15.108 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:15.108 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:37:15.125 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 12109845 ns
+07-30 19:37:15.139 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 13895521 ns
+07-30 19:37:15.168 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 28462969 ns
+07-30 19:37:15.178 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 10476354 ns
+07-30 19:37:15.228 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ finalizeFuzzyImageUsingSharpImage: 50057604 ns
+07-30 19:37:15.284 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ PackOutputImage: 55320000 ns
+07-30 19:37:15.313 27224-27224/com.example.xinyiwang.refocus D/RefocusFilter﹕ filterAndBlendAllLayersUsingKernel is finished
+07-30 19:37:15.313 27224-27224/com.example.xinyiwang.refocus D/RenderScriptTask﹕ applyRefocusFilter is finished in 3.455 seconds
+3.
+07-30 19:38:16.585 27224-27224/com.example.xinyiwang.refocus V/RenderScript_jni﹕ RS native mode
+07-30 19:38:16.587 27224-29497/com.example.xinyiwang.refocus W/RenderScript﹕ Warning: unknown RenderScript HAL API query, 2027
+07-30 19:38:16.588 27224-29497/com.example.xinyiwang.refocus V/RenderScript﹕ 0x930b4000 Launching thread(s), CPUs 4
+07-30 19:38:16.595 27224-29497/com.example.xinyiwang.refocus V/RenderScript﹕ Successfully loaded runtime: libRSDriver_adreno.so
+07-30 19:38:16.682 27224-27230/com.example.xinyiwang.refocus W/art﹕ Suspending all threads took: 5.242ms
+07-30 19:38:17.770 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:17.770 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:17.862 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:17.862 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:17.875 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ Initialize: 4844115 ns
+07-30 19:38:18.700 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ UnpackInputImage: 825655937 ns
+07-30 19:38:18.701 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:18.701 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:18.846 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:18.846 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:18.952 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 100380052 ns
+07-30 19:38:18.960 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 7432083 ns
+07-30 19:38:18.988 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 27897708 ns
+07-30 19:38:19.734 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 746301561 ns
+07-30 19:38:19.782 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 47897292 ns
+07-30 19:38:19.783 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:19.783 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:19.790 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:19.790 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:19.841 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 46264323 ns
+07-30 19:38:20.009 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 167735938 ns
+07-30 19:38:20.038 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 28916771 ns
+07-30 19:38:20.092 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 53768437 ns
+07-30 19:38:20.099 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 6560990 ns
+07-30 19:38:20.099 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.099 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.105 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.106 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.135 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 24277344 ns
+07-30 19:38:20.178 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 42726979 ns
+07-30 19:38:20.210 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 32664583 ns
+07-30 19:38:20.248 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 37938021 ns
+07-30 19:38:20.265 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 16287604 ns
+07-30 19:38:20.265 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.265 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.271 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.271 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.299 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 22384531 ns
+07-30 19:38:20.308 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 9725104 ns
+07-30 19:38:20.384 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 75600468 ns
+07-30 19:38:20.404 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 20084270 ns
+07-30 19:38:20.405 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.405 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.465 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.465 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.495 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 24911407 ns
+07-30 19:38:20.606 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 110718698 ns
+07-30 19:38:20.636 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 29967344 ns
+07-30 19:38:20.676 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 39337292 ns
+07-30 19:38:20.676 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.676 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.683 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.683 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.715 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 27040573 ns
+07-30 19:38:20.759 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 43469948 ns
+07-30 19:38:20.788 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 28925052 ns
+07-30 19:38:20.805 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 16937448 ns
+07-30 19:38:20.806 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.806 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.812 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.812 27224-27224/com.example.xinyiwang.refocus I/art﹕ Starting a blocking GC NativeAlloc
+07-30 19:38:20.829 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 12237240 ns
+07-30 19:38:20.843 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteInFrontOfFocalDepth: 14223593 ns
+07-30 19:38:20.874 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerInFrontOfFocalDepth: 30596562 ns
+07-30 19:38:20.884 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerInFrontOfFocalDepth: 10271979 ns
+07-30 19:38:20.932 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ finalizeFuzzyImageUsingSharpImage: 47473803 ns
+07-30 19:38:20.988 27224-27224/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ PackOutputImage: 56640677 ns
+07-30 19:38:21.018 27224-27224/com.example.xinyiwang.refocus D/RefocusFilter﹕ filterAndBlendAllLayersUsingKernel is finished
+07-30 19:38:21.018 27224-27224/com.example.xinyiwang.refocus D/RenderScriptTask﹕ applyRefocusFilter is finished in 3.578 seconds
+N5(original)
diff --git a/java/tests/Refocus/dataExtraction/N5ave.txt b/java/tests/Refocus/dataExtraction/N5ave.txt
new file mode 100644
index 0000000..145ca50
--- /dev/null
+++ b/java/tests/Refocus/dataExtraction/N5ave.txt
@@ -0,0 +1,53 @@
+N5(fp_relaxed + no force CPU)
+Initialize: 6185329
+UnpackInputImage: 767318818
+MarkLayerMask: 18810331
+ComputeLayerMatteBehindFocalDepth: 792356787
+ComputeIntegralImageForLayerBehindFocalDepth: 1380414062
+FilterLayerBehindFocalDepth: 2589058177
+updateSharpImageUsingFuzzyImage: 1369367186
+ComputeLayerMatteInFrontOfFocalDepth: 418402639
+ComputeIntegralImageForLayerInFrontOfFocalDepth: 819410573
+FilterLayerInFrontOfFocalDepth: 2060655173
+finalizeFuzzyImageUsingSharpImage: 104623038
+PackOutputImage: 92873923
+N5(fp_relaxed + force-CPU)
+Initialize: 6259427
+UnpackInputImage: 451224582
+MarkLayerMask: 203898194
+ComputeLayerMatteBehindFocalDepth: 218055104
+ComputeIntegralImageForLayerBehindFocalDepth: 74875364
+FilterLayerBehindFocalDepth: 614245678
+updateSharpImageUsingFuzzyImage: 70974531
+ComputeLayerMatteInFrontOfFocalDepth: 148614167
+ComputeIntegralImageForLayerInFrontOfFocalDepth: 74727743
+FilterLayerInFrontOfFocalDepth: 41885624
+finalizeFuzzyImageUsingSharpImage: 43354028
+PackOutputImage: 59065364
+N5(no rs_fp_relaxed + force-CPU)
+Initialize: 4540105
+UnpackInputImage: 470569807
+MarkLayerMask: 225496526
+ComputeLayerMatteBehindFocalDepth: 225137344
+ComputeIntegralImageForLayerBehindFocalDepth: 97053905
+FilterLayerBehindFocalDepth: 914040573
+updateSharpImageUsingFuzzyImage: 82445104
+ComputeLayerMatteInFrontOfFocalDepth: 160384602
+ComputeIntegralImageForLayerInFrontOfFocalDepth: 94869461
+FilterLayerInFrontOfFocalDepth: 60688125
+finalizeFuzzyImageUsingSharpImage: 50893455
+PackOutputImage: 66094895
+N5(no fp_relaxed + no force CPU)
+Initialize: 8734948
+UnpackInputImage: 1100213263
+MarkLayerMask: 318460713
+ComputeLayerMatteBehindFocalDepth: 293971909
+ComputeIntegralImageForLayerBehindFocalDepth: 112185485
+FilterLayerBehindFocalDepth: 1207560346
+updateSharpImageUsingFuzzyImage: 113682169
+ComputeLayerMatteInFrontOfFocalDepth: 207521249
+ComputeIntegralImageForLayerInFrontOfFocalDepth: 110567743
+FilterLayerInFrontOfFocalDepth: 84226023
+finalizeFuzzyImageUsingSharpImage: 63809288
+PackOutputImage: 75402361
+N5(original)
diff --git a/java/tests/Refocus/dataExtraction/N5clean.txt b/java/tests/Refocus/dataExtraction/N5clean.txt
new file mode 100644
index 0000000..72053ca
--- /dev/null
+++ b/java/tests/Refocus/dataExtraction/N5clean.txt
@@ -0,0 +1,173 @@
+Initialize: 0
+UnpackInputImage: 0
+MarkLayerMask: 0
+ComputeLayerMatteBehindFocalDepth: 0
+ComputeIntegralImageForLayerBehindFocalDepth: 0
+FilterLayerBehindFocalDepth: 0
+updateSharpImageUsingFuzzyImage: 0
+ComputeLayerMatteInFrontOfFocalDepth: 0
+ComputeIntegralImageForLayerInFrontOfFocalDepth: 0
+FilterLayerInFrontOfFocalDepth: 0
+finalizeFuzzyImageUsingSharpImage: 0
+PackOutputImage: 0
+N5(fp_relaxed + no force CPU)
+1.
+Initialize: 7692709
+UnpackInputImage: 744708645
+MarkLayerMask: 19980002
+ComputeLayerMatteBehindFocalDepth: 798940885
+ComputeIntegralImageForLayerBehindFocalDepth: 1965669061
+FilterLayerBehindFocalDepth: 1993508490
+updateSharpImageUsingFuzzyImage: 1368157239
+ComputeLayerMatteInFrontOfFocalDepth: 731938958
+ComputeIntegralImageForLayerInFrontOfFocalDepth: 1019061302
+FilterLayerInFrontOfFocalDepth: 1618829219
+finalizeFuzzyImageUsingSharpImage: 98189844
+PackOutputImage: 89524271
+2.
+Initialize: 8358281
+UnpackInputImage: 805078749
+MarkLayerMask: 17205573
+ComputeLayerMatteBehindFocalDepth: 786876823
+ComputeIntegralImageForLayerBehindFocalDepth: 1086793648
+FilterLayerBehindFocalDepth: 2891901406
+updateSharpImageUsingFuzzyImage: 1368069791
+ComputeLayerMatteInFrontOfFocalDepth: 264553907
+ComputeIntegralImageForLayerInFrontOfFocalDepth: 718563594
+FilterLayerInFrontOfFocalDepth: 2280942708
+finalizeFuzzyImageUsingSharpImage: 117157344
+PackOutputImage: 97593384
+3.
+Initialize: 2504999
+UnpackInputImage: 752169062
+MarkLayerMask: 19245419
+ComputeLayerMatteBehindFocalDepth: 791252655
+ComputeIntegralImageForLayerBehindFocalDepth: 1088779478
+FilterLayerBehindFocalDepth: 2881764636
+updateSharpImageUsingFuzzyImage: 1371874530
+ComputeLayerMatteInFrontOfFocalDepth: 258715052
+ComputeIntegralImageForLayerInFrontOfFocalDepth: 720606824
+FilterLayerInFrontOfFocalDepth: 2282193592
+finalizeFuzzyImageUsingSharpImage: 98521926
+PackOutputImage: 91504115
+N5(fp_relaxed + force-CPU)
+1.
+Initialize: 3813542
+UnpackInputImage: 421386040
+MarkLayerMask: 198773228
+ComputeLayerMatteBehindFocalDepth: 210737136
+ComputeIntegralImageForLayerBehindFocalDepth: 73791043
+FilterLayerBehindFocalDepth: 615654272
+updateSharpImageUsingFuzzyImage: 71035939
+ComputeLayerMatteInFrontOfFocalDepth: 146879480
+ComputeIntegralImageForLayerInFrontOfFocalDepth: 72502710
+FilterLayerInFrontOfFocalDepth: 42400781
+finalizeFuzzyImageUsingSharpImage: 43389844
+PackOutputImage: 62504687
+2.
+Initialize: 6421147
+UnpackInputImage: 487326405
+MarkLayerMask: 209085365
+ComputeLayerMatteBehindFocalDepth: 217816302
+ComputeIntegralImageForLayerBehindFocalDepth: 75212135
+FilterLayerBehindFocalDepth: 604758178
+updateSharpImageUsingFuzzyImage: 70968021
+ComputeLayerMatteInFrontOfFocalDepth: 149412813
+ComputeIntegralImageForLayerInFrontOfFocalDepth: 77782342
+FilterLayerInFrontOfFocalDepth: 42192239
+finalizeFuzzyImageUsingSharpImage: 45541875
+PackOutputImage: 57080886
+3.
+Initialize: 8543593
+UnpackInputImage: 444961302
+MarkLayerMask: 203835989
+ComputeLayerMatteBehindFocalDepth: 225611875
+ComputeIntegralImageForLayerBehindFocalDepth: 75622916
+FilterLayerBehindFocalDepth: 622324584
+updateSharpImageUsingFuzzyImage: 70919634
+ComputeLayerMatteInFrontOfFocalDepth: 149550208
+ComputeIntegralImageForLayerInFrontOfFocalDepth: 73898178
+FilterLayerInFrontOfFocalDepth: 41063852
+finalizeFuzzyImageUsingSharpImage: 41130365
+PackOutputImage: 57610520
+N5(no rs_fp_relaxed + force-CPU)
+1.
+Initialize: 1662136
+UnpackInputImage: 445091145
+MarkLayerMask: 227939426
+ComputeLayerMatteBehindFocalDepth: 216610990
+ComputeIntegralImageForLayerBehindFocalDepth: 96751510
+FilterLayerBehindFocalDepth: 903952397
+updateSharpImageUsingFuzzyImage: 82895155
+ComputeLayerMatteInFrontOfFocalDepth: 152075989
+ComputeIntegralImageForLayerInFrontOfFocalDepth: 93638178
+FilterLayerInFrontOfFocalDepth: 57860417
+finalizeFuzzyImageUsingSharpImage: 48637917
+PackOutputImage: 61420416
+2.
+Initialize: 3890053
+UnpackInputImage: 478362446
+MarkLayerMask: 221298125
+ComputeLayerMatteBehindFocalDepth: 216240104
+ComputeIntegralImageForLayerBehindFocalDepth: 96675156
+FilterLayerBehindFocalDepth: 882288803
+updateSharpImageUsingFuzzyImage: 77736509
+ComputeLayerMatteInFrontOfFocalDepth: 154800785
+ComputeIntegralImageForLayerInFrontOfFocalDepth: 95162395
+FilterLayerInFrontOfFocalDepth: 59589948
+finalizeFuzzyImageUsingSharpImage: 50662969
+PackOutputImage: 60832031
+3.
+Initialize: 8068126
+UnpackInputImage: 488255832
+MarkLayerMask: 227252029
+ComputeLayerMatteBehindFocalDepth: 242560939
+ComputeIntegralImageForLayerBehindFocalDepth: 97735051
+FilterLayerBehindFocalDepth: 955880519
+updateSharpImageUsingFuzzyImage: 86703648
+ComputeLayerMatteInFrontOfFocalDepth: 174277032
+ComputeIntegralImageForLayerInFrontOfFocalDepth: 95807812
+FilterLayerInFrontOfFocalDepth: 64614010
+finalizeFuzzyImageUsingSharpImage: 53379479
+PackOutputImage: 76032240
+N5(no fp_relaxed + no force CPU)
+1.
+Initialize: 14349584
+UnpackInputImage: 806706250
+MarkLayerMask: 229788125
+ComputeLayerMatteBehindFocalDepth: 216738646
+ComputeIntegralImageForLayerBehindFocalDepth: 79665781
+FilterLayerBehindFocalDepth: 901299218
+updateSharpImageUsingFuzzyImage: 84707448
+ComputeLayerMatteInFrontOfFocalDepth: 156611562
+ComputeIntegralImageForLayerInFrontOfFocalDepth: 79525260
+FilterLayerInFrontOfFocalDepth: 62089323
+finalizeFuzzyImageUsingSharpImage: 47193854
+PackOutputImage: 57472969
+2.
+Initialize: 7011147
+UnpackInputImage: 1668277603
+MarkLayerMask: 468098546
+ComputeLayerMatteBehindFocalDepth: 437556978
+ComputeIntegralImageForLayerBehindFocalDepth: 167411614
+FilterLayerBehindFocalDepth: 1807773333
+updateSharpImageUsingFuzzyImage: 165508904
+ComputeLayerMatteInFrontOfFocalDepth: 297539947
+ComputeIntegralImageForLayerInFrontOfFocalDepth: 162689011
+FilterLayerInFrontOfFocalDepth: 124042029
+finalizeFuzzyImageUsingSharpImage: 96760208
+PackOutputImage: 112093437
+3.
+Initialize: 4844115
+UnpackInputImage: 825655937
+MarkLayerMask: 257495470
+ComputeLayerMatteBehindFocalDepth: 227620104
+ComputeIntegralImageForLayerBehindFocalDepth: 89479062
+FilterLayerBehindFocalDepth: 913608487
+updateSharpImageUsingFuzzyImage: 90830156
+ComputeLayerMatteInFrontOfFocalDepth: 168412239
+ComputeIntegralImageForLayerInFrontOfFocalDepth: 89488958
+FilterLayerInFrontOfFocalDepth: 66546719
+finalizeFuzzyImageUsingSharpImage: 47473803
+PackOutputImage: 56640677
+N5(original)
diff --git a/java/tests/Refocus/dataExtraction/RefocusTestTimingProcess.txt b/java/tests/Refocus/dataExtraction/RefocusTestTimingProcess.txt
new file mode 100644
index 0000000..98460a4
--- /dev/null
+++ b/java/tests/Refocus/dataExtraction/RefocusTestTimingProcess.txt
@@ -0,0 +1,36 @@
+This document is to explain the process to extract kernel running time of Refocus(Lens Blur) app in GoogleCamera. A test app is made to run two versions of refocus renderscript and compare the result.
+The app that comes with this documentation can be found inside android source tree at frameworks/rs/java/tests/Refocus
+The folder frameworks/rs/java/tests/Refocus/dataExtraction contains all the shell scripts and sample data files to extract kernel time
+
+
+Here are somethings you might want to know:
+1. All the timing numbers are in nanoseconds, since a lot of the kernel is processed really fast.
+2. To process one image, a lot of the kernels are called more than once. Therefore, we need to add the running time of the same kernel together to get the total time of one kernel. For example, if a kernel “MarkLayerMask” is called 7 times to process one image, then the logcat would have 7 time entries for this kernel and we need to add these 7 numbers together.
+3. You might want to run the script several times with some short intervals (a few seconds) and average the performance number. Make sure not to use the first two runs since the device might take some time to set things right
+
+
+Here are the timing process:
+1. choose which device you want to test and create a corresponding text file to record the logcat. For example, you want to test it on Nexus5 then create a file N5.txt.
+2. make and install the Refocus test app. Open up logcat and launch the app. Two scripts are called for the test app, the original pointer version with the log title “RefocusFilterF32” and the global allocation version with the log title “RefocusFilterd1new”. Choose which one you want to record (or record both), copy the corresponding log from the first line with the title you choose till the last time with the same log title, and paste them in the N5.txt file. If you want to take 3 set of numbers and average them, organize 3 sets of data like the following(all tests in the file need to have 3 sets of data). You have to organize your file like this:
+ N5 (d1new)
+ 1.
+ …….logs 1...
+ 2.
+ ……..logs 2...
+ 3.
+ …….logs 3….
+ N5 (f32)
+ 1.
+ …..logs 1…..
+ 2.
+ …..logs 2…..
+ 3.
+ …..logs 3…..
+ N5 (you have to put this dummy line here. The script is not perfect and feel free to change)
+
+
+3. Put the file “extract_ave.sh” and “extract_data.sh” in the same directory as the file N5.txt
+4. Type command “./extract_date.sh N5.txt N5cleanData.txt”
+This command strip up the messy log and put the clean data into a new file called N5cleanData.txt
+5. Type command “./extract_ave.sh N5cleanData.txt N5aveData.txt”
+This command averages the clean data and stores the final result in N5aveData.txt
diff --git a/java/tests/Refocus/dataExtraction/extract_ave.sh b/java/tests/Refocus/dataExtraction/extract_ave.sh
new file mode 100755
index 0000000..00408d8
--- /dev/null
+++ b/java/tests/Refocus/dataExtraction/extract_ave.sh
@@ -0,0 +1,117 @@
+#!/bin/bash
+
+filename=$1
+cleanFilename=$2
+
+regexN='^N[0-9]'
+regexData=':'
+regexNum='^[1-7]\.'
+
+sum=0
+count=0
+InitializeSum=0
+UnpackInputImageSum=0
+MarkLayerMaskSum=0
+ComputeLayerMatteBehindFocalDepthSum=0
+ComputeIntegralImageForLayerBehindFocalDepthSum=0
+FilterLayerBehindFocalDepthSum=0
+updateSharpImageUsingFuzzyImageSum=0
+ComputeLayerMatteInFrontOfFocalDepthSum=0
+FilterLayerInFrontOfFocalDepthSum=0
+finalizeFuzzyImageUsingSharpImageSum=0
+PackOutputImageSum=0
+
+while read line;do
+ if [[ $line =~ $regexN ]];
+ then
+ if (( count > 0 ));then
+ rNine=$((InitializeSum/count))
+ echo "Initialize: $rNine" >> $cleanFilename
+ InitializeSum=0
+ rTen=$((UnpackInputImageSum/count))
+ echo "UnpackInputImage: $rTen" >> $cleanFilename
+ UnpackInputImageSum=0
+ rZero=$((MarkLayerMaskSum/count))
+ echo "MarkLayerMask: $rZero" >> $cleanFilename
+ MarkLayerMaskSum=0
+ rOne=$((ComputeLayerMatteBehindFocalDepthSum/count))
+ echo "ComputeLayerMatteBehindFocalDepth: $rOne" >> $cleanFilename
+ ComputeLayerMatteBehindFocalDepthSum=0
+ rTwo=$((ComputeIntegralImageForLayerBehindFocalDepthSum/count))
+ echo "ComputeIntegralImageForLayerBehindFocalDepth: $rTwo" >> $cleanFilename
+ ComputeIntegralImageForLayerBehindFocalDepthSum=0
+ rThree=$((FilterLayerBehindFocalDepthSum/count))
+ echo "FilterLayerBehindFocalDepth: $rThree" >> $cleanFilename
+ FilterLayerBehindFocalDepthSum=0
+ rFour=$((updateSharpImageUsingFuzzyImageSum/count))
+ echo "updateSharpImageUsingFuzzyImage: $rFour" >> $cleanFilename
+ updateSharpImageUsingFuzzyImageSum=0
+ rFive=$((ComputeLayerMatteInFrontOfFocalDepthSum/count))
+ echo "ComputeLayerMatteInFrontOfFocalDepth: $rFive" >> $cleanFilename
+ ComputeLayerMatteInFrontOfFocalDepthSum=0
+ rEight=$((ComputeIntegralImageForLayerInFrontOfFocalDepthSum/count))
+ echo "ComputeIntegralImageForLayerInFrontOfFocalDepth: $rEight" >> $cleanFilename
+ ComputeIntegralImageForLayerInFrontOfFocalDepthSum=0
+ rSix=$((FilterLayerInFrontOfFocalDepthSum/count))
+ echo "FilterLayerInFrontOfFocalDepth: $rSix" >> $cleanFilename
+ FilterLayerInFrontOfFocalDepthSum=0
+ rSeven=$((finalizeFuzzyImageUsingSharpImageSum/count))
+ echo "finalizeFuzzyImageUsingSharpImage: $rSeven" >> $cleanFilename
+ finalizeFuzzyImageUsingSharpImageSum=0
+ rEight=$((PackOutputImageSum/count))
+ echo "PackOutputImage: $rEight" >> $cleanFilename
+ PackOutputImageSum=0
+ count=0
+ fi
+ echo $line >> $cleanFilename
+
+ elif [[ $line =~ $regexData ]];
+ then
+ #collect corresponding data
+ newLine=`echo $line|awk '{print $2}'`
+ sum=`echo $((sum+newLine))`
+ if [[ $line =~ 'Initialize' ]];
+ then
+ InitializeSum=`echo $((InitializeSum+newLine))`
+ elif [[ $line =~ 'UnpackInputImage' ]];
+ then
+ UnpackInputImageSum=`echo $((UnpackInputImageSum+newLine))`
+ elif [[ $line =~ 'MarkLayerMask' ]];
+ then
+ MarkLayerMaskSum=`echo $((MarkLayerMaskSum+newLine))`
+ elif [[ $line =~ 'ComputeLayerMatteBehindFocalDepth' ]];
+ then
+ ComputeLayerMatteBehindFocalDepthSum=`echo $((ComputeLayerMatteBehindFocalDepthSum+newLine))`
+ elif [[ $line =~ 'ComputeIntegralImageForLayerBehindFocalDepth' ]];
+ then
+ ComputeIntegralImageForLayerBehindFocalDepthSum=`echo $((ComputeIntegralImageForLayerBehindFocalDepthSum+newLine))`
+ elif [[ $line =~ 'FilterLayerBehindFocalDepth' ]];
+ then
+ FilterLayerBehindFocalDepthSum=`echo $((FilterLayerBehindFocalDepthSum+newLine))`
+ elif [[ $line =~ [uU]pdateSharpImageUsingFuzzyImage ]];
+ then
+ updateSharpImageUsingFuzzyImageSum=`echo $((updateSharpImageUsingFuzzyImageSum+newLine))`
+ elif [[ $line =~ 'ComputeLayerMatteInFrontOfFocalDepth' ]];
+ then
+ ComputeLayerMatteInFrontOfFocalDepthSum=`echo $((ComputeLayerMatteInFrontOfFocalDepthSum+newLine))`
+ elif [[ $line =~ 'ComputeIntegralImageForLayerInFrontOfFocalDepth' ]];
+ then
+ ComputeIntegralImageForLayerInFrontOfFocalDepthSum=`echo $((ComputeIntegralImageForLayerInFrontOfFocalDepthSum+newLine))`
+ elif [[ $line =~ 'FilterLayerInFrontOfFocalDepth' ]];
+ then
+ FilterLayerInFrontOfFocalDepthSum=`echo $((FilterLayerInFrontOfFocalDepthSum+newLine))`
+ elif [[ $line =~ [fF]inalizeFuzzyImageUsingSharpImage ]];
+ then
+ finalizeFuzzyImageUsingSharpImageSum=`echo $((finalizeFuzzyImageUsingSharpImageSum+newLine))`
+ elif [[ $line =~ 'PackOutputImage' ]];
+ then
+ PackOutputImageSum=`echo $((PackOutputImageSum+newLine))`
+ fi
+
+ elif [[ $line =~ $regexNum ]];
+ then
+ count=$((count+1))
+ fi
+done < <(tr -d '\r' < $filename)
+
+echo $filename
diff --git a/java/tests/Refocus/dataExtraction/extract_data.sh b/java/tests/Refocus/dataExtraction/extract_data.sh
new file mode 100755
index 0000000..82982ba
--- /dev/null
+++ b/java/tests/Refocus/dataExtraction/extract_data.sh
@@ -0,0 +1,129 @@
+#!/bin/bash
+
+filename=$1
+cleanFilename=$2
+
+regexN='^N[0-9]'
+regexData='(D/RefocusFilter)'
+regexNum='^[1-7]\.'
+
+sum=0
+InitializeSum=0
+UnpackInputImageSum=0
+MarkLayerMaskSum=0
+ComputeLayerMatteBehindFocalDepthSum=0
+ComputeIntegralImageForLayerBehindFocalDepthSum=0
+FilterLayerBehindFocalDepthSum=0
+updateSharpImageUsingFuzzyImageSum=0
+ComputeLayerMatteInFrontOfFocalDepthSum=0
+ComputeIntegralImageForLayerInFrontOfFocalDepthSum=0
+FilterLayerInFrontOfFocalDepthSum=0
+finalizeFuzzyImageUsingSharpImageSum=0
+PackOutputImageSum=0
+
+while read line;do
+ if [[ $line =~ $regexN ]];
+ then
+ echo "Initialize: $InitializeSum" >> $cleanFilename
+ InitializeSum=0
+ echo "UnpackInputImage: $UnpackInputImageSum" >> $cleanFilename
+ UnpackInputImageSum=0
+ echo "MarkLayerMask: $MarkLayerMaskSum" >> $cleanFilename
+ MarkLayerMaskSum=0
+ echo "ComputeLayerMatteBehindFocalDepth: $ComputeLayerMatteBehindFocalDepthSum" >> $cleanFilename
+ ComputeLayerMatteBehindFocalDepthSum=0
+ echo "ComputeIntegralImageForLayerBehindFocalDepth: $ComputeIntegralImageForLayerBehindFocalDepthSum" >> $cleanFilename
+ ComputeIntegralImageForLayerBehindFocalDepthSum=0
+ echo "FilterLayerBehindFocalDepth: $FilterLayerBehindFocalDepthSum" >> $cleanFilename
+ FilterLayerBehindFocalDepthSum=0
+ echo "updateSharpImageUsingFuzzyImage: $updateSharpImageUsingFuzzyImageSum" >> $cleanFilename
+ updateSharpImageUsingFuzzyImageSum=0
+ echo "ComputeLayerMatteInFrontOfFocalDepth: $ComputeLayerMatteInFrontOfFocalDepthSum" >> $cleanFilename
+ ComputeLayerMatteInFrontOfFocalDepthSum=0
+ echo "ComputeIntegralImageForLayerInFrontOfFocalDepth: $ComputeIntegralImageForLayerInFrontOfFocalDepthSum" >> $cleanFilename
+ ComputeIntegralImageForLayerInFrontOfFocalDepthSum=0
+ echo "FilterLayerInFrontOfFocalDepth: $FilterLayerInFrontOfFocalDepthSum" >> $cleanFilename
+ FilterLayerInFrontOfFocalDepthSum=0
+ echo "finalizeFuzzyImageUsingSharpImage: $finalizeFuzzyImageUsingSharpImageSum" >> $cleanFilename
+ finalizeFuzzyImageUsingSharpImageSum=0
+ echo "PackOutputImage: $PackOutputImageSum" >> $cleanFilename
+ PackOutputImageSum=0
+ echo $line >> $cleanFilename
+
+ elif [[ $line =~ $regexData ]];
+ then
+ #collect corresponding data
+ newLine=`echo $line|grep -oE '[0-9]+ ns'|awk '{print $1}'`
+ sum=`echo $((sum+newLine))`
+ if [[ $line =~ 'Initialize' ]];
+ then
+ InitializeSum=`echo $((InitializeSum+newLine))`;
+ elif [[ $line =~ 'UnpackInputImage' ]];
+ then
+ UnpackInputImageSum=`echo $((UnpackInputImageSum+newLine))`
+ elif [[ $line =~ 'MarkLayerMask' ]];
+ then
+ MarkLayerMaskSum=`echo $((MarkLayerMaskSum+newLine))`
+ elif [[ $line =~ 'ComputeLayerMatteBehindFocalDepth' ]];
+ then
+ ComputeLayerMatteBehindFocalDepthSum=`echo $((ComputeLayerMatteBehindFocalDepthSum+newLine))`
+ elif [[ $line =~ 'ComputeIntegralImageForLayerBehindFocalDepth' ]];
+ then
+ ComputeIntegralImageForLayerBehindFocalDepthSum=`echo $((ComputeIntegralImageForLayerBehindFocalDepthSum+newLine))`
+ elif [[ $line =~ 'FilterLayerBehindFocalDepth' ]];
+ then
+ FilterLayerBehindFocalDepthSum=`echo $((FilterLayerBehindFocalDepthSum+newLine))`
+ elif [[ $line =~ [uU]pdateSharpImageUsingFuzzyImage ]];
+ then
+ updateSharpImageUsingFuzzyImageSum=`echo $((updateSharpImageUsingFuzzyImageSum+newLine))`
+ elif [[ $line =~ 'ComputeLayerMatteInFrontOfFocalDepth' ]];
+ then
+ ComputeLayerMatteInFrontOfFocalDepthSum=`echo $((ComputeLayerMatteInFrontOfFocalDepthSum+newLine))`
+ elif [[ $line =~ 'ComputeIntegralImageForLayerInFrontOfFocalDepth' ]];
+ then
+ ComputeIntegralImageForLayerInFrontOfFocalDepthSum=`echo $((ComputeIntegralImageForLayerInFrontOfFocalDepthSum+newLine))`
+ elif [[ $line =~ 'FilterLayerInFrontOfFocalDepth' ]];
+ then
+ FilterLayerInFrontOfFocalDepthSum=`echo $((FilterLayerInFrontOfFocalDepthSum+newLine))`
+ elif [[ $line =~ [fF]inalizeFuzzyImageUsingSharpImage ]];
+ then
+ finalizeFuzzyImageUsingSharpImageSum=`echo $((finalizeFuzzyImageUsingSharpImageSum+newLine))`
+ elif [[ $line =~ 'PackOutputImage' ]];
+ then
+ PackOutputImageSum=`echo $((PackOutputImageSum+newLine))`
+ fi
+
+ elif [[ $line =~ $regexNum ]];
+ then
+ if ! [[ $line =~ '1.' ]];
+ then
+ echo "Initialize: $InitializeSum" >> $cleanFilename
+ InitializeSum=0
+ echo "UnpackInputImage: $UnpackInputImageSum" >> $cleanFilename
+ UnpackInputImageSum=0
+ echo "MarkLayerMask: $MarkLayerMaskSum" >> $cleanFilename
+ MarkLayerMaskSum=0
+ echo "ComputeLayerMatteBehindFocalDepth: $ComputeLayerMatteBehindFocalDepthSum" >> $cleanFilename
+ ComputeLayerMatteBehindFocalDepthSum=0
+ echo "ComputeIntegralImageForLayerBehindFocalDepth: $ComputeIntegralImageForLayerBehindFocalDepthSum" >> $cleanFilename
+ ComputeIntegralImageForLayerBehindFocalDepthSum=0
+ echo "FilterLayerBehindFocalDepth: $FilterLayerBehindFocalDepthSum" >> $cleanFilename
+ FilterLayerBehindFocalDepthSum=0
+ echo "updateSharpImageUsingFuzzyImage: $updateSharpImageUsingFuzzyImageSum" >> $cleanFilename
+ updateSharpImageUsingFuzzyImageSum=0
+ echo "ComputeLayerMatteInFrontOfFocalDepth: $ComputeLayerMatteInFrontOfFocalDepthSum" >> $cleanFilename
+ ComputeLayerMatteInFrontOfFocalDepthSum=0
+ echo "ComputeIntegralImageForLayerInFrontOfFocalDepth: $ComputeIntegralImageForLayerInFrontOfFocalDepthSum" >> $cleanFilename
+ ComputeIntegralImageForLayerInFrontOfFocalDepthSum=0
+ echo "FilterLayerInFrontOfFocalDepth: $FilterLayerInFrontOfFocalDepthSum" >> $cleanFilename
+ FilterLayerInFrontOfFocalDepthSum=0
+ echo "finalizeFuzzyImageUsingSharpImage: $finalizeFuzzyImageUsingSharpImageSum" >> $cleanFilename
+ finalizeFuzzyImageUsingSharpImageSum=0
+ echo "PackOutputImage: $PackOutputImageSum" >> $cleanFilename
+ PackOutputImageSum=0
+ fi
+ echo $line >> $cleanFilename
+ fi
+done < $filename
+
+echo $filename
diff --git a/java/tests/Refocus/src/com/android/rs/test/layered_filter_fast_f32.rs b/java/tests/Refocus/src/com/android/rs/test/layered_filter_fast_f32.rs
index f82a3b7..5586435 100644
--- a/java/tests/Refocus/src/com/android/rs/test/layered_filter_fast_f32.rs
+++ b/java/tests/Refocus/src/com/android/rs/test/layered_filter_fast_f32.rs
@@ -488,8 +488,9 @@
return rsPackColorTo8888(result);
}
-// Copies g_fuzzy_image to output color image, excluding the padded margin.
+// Copies g_sharp_image to output color image, excluding the padded margin.
// (x, y) is the pixel coordinate in the output image.
+// This kernel extracts intermediate images for testing purpose.
uchar4 __attribute__((kernel)) PackSharpImage(uint32_t x, uint32_t y) {
// Maps (x,y) to the padded image coordinate system.
x += g_image_size.margin;
@@ -511,6 +512,7 @@
// Copies g_fuzzy_image to output color image, excluding the padded margin.
// (x, y) is the pixel coordinate in the output image.
+// This kernel extracts intermediate images for testing purpose.
uchar4 __attribute__((kernel)) PackFuzzyImage(uint32_t x, uint32_t y) {
// Maps (x,y) to the padded image coordinate system.
x += g_image_size.margin;