Reset/V4L2/Systemd/rpi_ws281x/Profiler (#820)

This commit is contained in:
Paulchen Panther
2020-06-17 20:59:26 +02:00
committed by GitHub
parent 756247aa1e
commit aa55edf5a7
6 changed files with 42 additions and 19 deletions

View File

@@ -248,16 +248,8 @@ void V4L2Grabber::getV4Ldevices()
break;
case V4L2_FRMSIZE_TYPE_CONTINUOUS:
case V4L2_FRMSIZE_TYPE_STEPWISE:
{
for(unsigned int y = frmsizeenum.stepwise.min_height; y <= frmsizeenum.stepwise.max_height; y += frmsizeenum.stepwise.step_height)
{
for(unsigned int x = frmsizeenum.stepwise.min_width; x <= frmsizeenum.stepwise.max_width; x += frmsizeenum.stepwise.step_width)
{
properties.resolutions << QString::number(x) + "x" + QString::number(y);
enumFrameIntervals(properties.framerates, fd, fmt.fmt.pix.pixelformat, x, y);
}
}
}
// We do not take care of V4L2_FRMSIZE_TYPE_CONTINUOUS or V4L2_FRMSIZE_TYPE_STEPWISE
break;
}
frmsizeenum.index++;
}