Changeset 101407 in vbox for trunk/src/VBox/ValidationKit/tests/additions
- Timestamp:
- Oct 10, 2023 6:12:40 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r101406 r101407 5498 5498 cDesktopPixels = 0 5499 5499 cDesktopPixelsBlue = 0 5500 threshold = 205500 iThreshold = 20 5501 5501 for i in range(0, cPixels, 4) : 5502 r= aRGBData[i]5503 g= aRGBData[i + 1]5504 b= aRGBData[i + 2]5505 v = (3 * r + 6 * g + b) / 105506 if v > threshold and v < (255 - threshold):5502 iRed = aRGBData[i] 5503 iGreen = aRGBData[i + 1] 5504 iBlue = aRGBData[i + 2] 5505 iBright = (3 * iRed + 6 * iGreen + iBlue) / 10 5506 if iThreshold < iBright < 255 - iThreshold : 5507 5507 cDesktopPixels += 1; 5508 cDesktopPixelsBlue += int( b > g and b > r);5508 cDesktopPixelsBlue += int(iBlue > iRed and iBlue > iGreen); 5509 5509 5510 5510 fpRatioDesktop = cDesktopPixels / cPixels;
Note:
See TracChangeset
for help on using the changeset viewer.