Home
last modified time | relevance | path

Searched refs:scaledOutW (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/camera/device/default/
DExternalCameraUtils.cpp494 uint64_t scaledOutW = static_cast<uint64_t>(outW) * inH / outH; in getCropRect() local
495 if (scaledOutW > inW) { in getCropRect()
500 scaledOutW = scaledOutW & ~0x1; // make it multiple of 2 in getCropRect()
502 out->left = static_cast<int32_t>((inW - scaledOutW) / 2) & ~0x1; in getCropRect()
504 out->width = static_cast<int32_t>(scaledOutW); in getCropRect()
507 out->top, static_cast<int32_t>(scaledOutW)); in getCropRect()
/hardware/interfaces/camera/device/3.4/default/
DExternalCameraUtils.cpp313 uint64_t scaledOutW = static_cast<uint64_t>(outW) * inH / outH; in getCropRect() local
314 if (scaledOutW > inW) { in getCropRect()
319 scaledOutW = scaledOutW & ~0x1; // make it multiple of 2 in getCropRect()
321 out->left = ((inW - scaledOutW) / 2) & ~0x1; in getCropRect()
323 out->width = static_cast<int32_t>(scaledOutW); in getCropRect()
326 __FUNCTION__, inW, inH, outW, outH, out->top, static_cast<int32_t>(scaledOutW)); in getCropRect()