Home | History | Annotate | Download | only in tools

Lines Matching defs:dr

329     DiffRecord dr;
331 &dr);
333 if (DiffResource::isStatusFailed(dr.fBase.fStatus)) {
334 printf("Base %s.\n", DiffResource::getStatusDescription(dr.fBase.fStatus));
336 if (DiffResource::isStatusFailed(dr.fComparison.fStatus)) {
337 printf("Comparison %s.\n", DiffResource::getStatusDescription(dr.fComparison.fStatus));
339 printf("Base and Comparison %s.\n", DiffRecord::getResultDescription(dr.fResult));
341 if (DiffRecord::kDifferentPixels_Result == dr.fResult) {
342 printf("%.4f%% of pixels differ", 100 * dr.fFractionDifference);
343 printf(" (%.4f%% weighted)", 100 * dr.fWeightedFraction);
344 if (dr.fFractionDifference < 0.01) {
345 printf(" %d pixels", static_cast<int>(dr.fFractionDifference *
346 dr.fBase.fBitmap.width() *
347 dr.fBase.fBitmap.height()));
351 printf("%d", static_cast<int>(MAX3(dr.fAverageMismatchR,
352 dr.fAverageMismatchG,
353 dr.fAverageMismatchB)));
355 printf("%d", MAX3(dr.fMaxMismatchR,
356 dr.fMaxMismatchG,
357 dr.fMaxMismatchB));
363 if (failOnResultType[dr.fResult]) {
366 if (failOnStatusType[dr.fBase.fStatus][dr.fComparison.fStatus]) {