@WorkerThread protected fun calculateExactSample(boundsWidth: float, boundsHeight: float, fitIntoBounds: boolean): float