|
发表于 2022-1-12 18:10:17
只看该作者
地板
您好:
我这么设置成功了:
struct v4l2_streamparm Stream_Parm;
memset(&Stream_Parm, 0, sizeof(struct v4l2_streamparm));
Stream_Parm.type = ctx->type;
Stream_Parm.parm.capture.timeperframe.denominator =1;;
Stream_Parm.parm.capture.timeperframe.numerator = 30;
if (-1 == camera_source_ioctl(ctx->fd, VIDIOC_S_PARM, &Stream_Parm)) {
}
if (-1 == camera_source_ioctl(ctx->fd, VIDIOC_G_PARM, &Stream_Parm)) {
}
printf("Stream_ParmG: %d %d %d\n", Stream_Parm.type,
Stream_Parm.parm.capture.timeperframe.denominator,
Stream_Parm.parm.capture.timeperframe.numerator);
但是没有效果,还是15FPS.不知道哪儿出问题了。 |
|