Lines Matching refs:diff
541 int diff = (int64_t)(ce->msc - (15*60*ce->serial + msc + 60));
542 if (diff < 0) {
543 if (-diff > earliest) {
544 fprintf(stderr, "\tframe %d displayed early by %d frames\n", ce->serial, -diff);
545 earliest = -diff;
549 } else if (diff > 0) {
550 if (diff > latest) {
551 fprintf(stderr, "\tframe %d displayed late by %d frames\n", ce->serial, diff);
552 latest = diff;
781 int diff = (int64_t)(ce->msc - (target + ce->serial + 60));
782 if (diff < 0) {
783 if (-diff > earliest) {
784 fprintf(stderr, "\tframe %d displayed early by %d frames\n", ce->serial, -diff);
785 earliest = -diff;
789 } else if (diff > 0) {
790 if (diff > latest) {
791 fprintf(stderr, "\tframe %d displayed late by %d frames\n", ce->serial, diff);
792 latest = diff;
912 int diff;
923 diff = (int64_t)(ce->msc - msc);
924 if (diff < 0) {
925 if (-diff > earliest) {
926 fprintf(stderr, "\tframe (%d, %d) displayed early by %d frames\n", y, x, -diff);
927 earliest = -diff;
931 } else if (diff > 0) {
932 if (diff > latest) {
933 fprintf(stderr, "\tframe (%d, %d) displayed late by %d frames\n", y, x, diff);
934 latest = diff;
1036 int diff = (int64_t)(ce->msc - (15*60*ce->serial + msc + 60));
1045 if (diff < 0) {
1046 if (-diff > earliest) {
1047 fprintf(stderr, "\tnotify %d early by %d msc\n", ce->serial, -diff);
1048 earliest = -diff;
1052 } else if (diff > 0) {
1053 if (diff > latest) {
1054 fprintf(stderr, "\tnotify %d late by %d msc\n", ce->serial, diff);
1055 latest = diff;
1196 int diff;
1205 diff = (int64_t)(ce->msc - msc - ce->serial);
1206 if (diff < 0) {
1207 if (-diff > earliest) {
1208 fprintf(stderr, "\tnotify %d early by %d msc\n",(int)ce->serial, -diff);
1209 earliest = -diff;
1213 } else if (diff > 0) {
1214 if (diff > latest) {
1215 fprintf(stderr, "\tnotify %d late by %d msc\n", (int)ce->serial, diff);
1216 latest = diff;
1270 int diff = (int64_t)(ce->msc - (msc + ce->serial + 60));
1271 if (diff < 0) {
1272 if (-diff > earliest) {
1273 fprintf(stderr, "\tnotify %d early by %d msc\n", ce->serial, -diff);
1274 earliest = -diff;
1278 } else if (diff > 0) {
1279 if (diff > latest) {
1280 fprintf(stderr, "\tnotify %d late by %d msc\n", ce->serial, diff);
1281 latest = diff;
1371 int diff;
1382 diff = (int64_t)(ce->msc - msc);
1383 if (diff < 0) {
1384 if (-diff > earliest) {
1385 fprintf(stderr, "\tnotify (%d, %d) early by %d msc (target %lld, reported %lld)\n", y, x, -diff, (long long)msc, (long long)ce->msc);
1386 earliest = -diff;
1390 } else if (diff > 0) {
1391 if (diff > latest) {
1392 fprintf(stderr, "\tnotify (%d, %d) late by %d msc (target %lld, reported %lld)\n", y, x, diff, (long long)msc, (long long)ce->msc);
1393 latest = diff;