21#include "rawspeedconfig.h"
38 return std::getenv(
"RAWSPEED_BENCHMARK_DRYRUN") !=
nullptr;
43 double sqSide = sqrt(area);
45 sqrt(
static_cast<double>(
aspect.x) /
static_cast<double>(
aspect.y));
constexpr uint64_t RAWSPEED_READNONE roundUp(uint64_t value, uint64_t multiple)
bool RAWSPEED_READNONE __attribute__((visibility("default"))) benchmarkDryRun()
iPoint2D dim(rawspeed::implicit_cast< int >(ceil(sqSide *sqARatio)), rawspeed::implicit_cast< int >(ceil(sqSide/sqARatio)))
iPoint2D RAWSPEED_READNONE iPoint2D aspect
assert(dim.area() >=area)
bool RAWSPEED_READNONE benchmarkDryRun()
rawspeed::iPoint2D RAWSPEED_READNONE areaToRectangle(uint64_t area, rawspeed::iPoint2D aspect={2, 2})
constexpr uint64_t RAWSPEED_READNONE roundUp(uint64_t value, uint64_t multiple)
constexpr RAWSPEED_READNONE Ttgt implicit_cast(Tsrc value)