| 594 | } |
| 595 | |
| 596 | static avifBool doesLevelMatch(int width, int height, int levelWidth, int levelHeight, int levelDimMult) |
| 597 | { |
| 598 | const int64_t levelLumaPels = (int64_t)levelWidth * levelHeight; |
| 599 | const int64_t lumaPels = (int64_t)width * height; |
| 600 | return lumaPels <= levelLumaPels && width <= levelWidth * levelDimMult && height <= levelHeight * levelDimMult; |
| 601 | } |
| 602 | |
| 603 | // Quality (q) to quantizer (qp) formula for tune=iq (Image Quality), expressed as a look-up table for more clarity. |
| 604 | // The formula below is a piecewise linear function. Each segment was empirically selected to correct for the |
no outgoing calls
no test coverage detected