use of com.google.zxing.MultiFormatReader in project zxing by zxing.
the class BenchmarkAsyncTask method doInBackground.
@Override
protected String doInBackground(Object... params) {
MultiFormatReader reader = new MultiFormatReader();
reader.setHints(null);
// Try to get in a known state before starting the benchmark
System.gc();
List<BenchmarkItem> items = new ArrayList<>();
walkTree(reader, file, items);
int count = 0;
int time = 0;
for (BenchmarkItem item : items) {
if (item != null) {
Log.v(TAG, item.toString());
count++;
time += item.getAverageTime();
}
}
return "TOTAL: Decoded " + count + " images in " + time + " us";
}
Aggregations