Home | History | Annotate | Download | only in tools

Lines Matching defs:dr

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