(w, h)
| 68 | return w * h <= target_area and w % divisor == 0 and h % divisor == 0 |
| 69 | |
| 70 | def get_ratio_diff(w, h): |
| 71 | return abs(w / h - target_ratio) |
| 72 | |
| 73 | def round_to_64(value, round_up=False, divisor=64): |
| 74 | if round_up: |
no outgoing calls
no test coverage detected