(resolution, ar_ratio)
| 465 | |
| 466 | |
| 467 | def get_image_size(resolution, ar_ratio): |
| 468 | if ar_ratio in ASPECT_RATIO_MAP: |
| 469 | ar_key = ASPECT_RATIO_MAP[ar_ratio] |
| 470 | else: |
| 471 | ar_key = ar_ratio |
| 472 | rs_dict = ASPECT_RATIOS[resolution][1] |
| 473 | assert (ar_key in rs_dict |
| 474 | ), f'Aspect ratio {ar_ratio} not found for resolution {resolution}' |
| 475 | return rs_dict[ar_key] |
| 476 | |
| 477 | |
| 478 | NUM_FRAMES_MAP = { |
nothing calls this directly
no outgoing calls
no test coverage detected