INNER CODE UNIT · C++
output_width
nihui/opencv-mobile · highgui/src/capture_cvi.cpp:2899
output_width = width * cap_height / height;
output_height = cap_height;
}
else
{
// thinner
output_width = cap_width;
output_height = height * cap_width / width;
}
}
else if (width > cap_width)
{
output_width = cap_width;
output_height = height * cap_width / width;
}
else if (height > cap_height)
{
output_height = cap_height;