This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool set_framerate(int fd) | |
struct v4l2_streamparm parm; | |
parm.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; | |
// 1/15 seconds per frame. Or 15 frames/second | |
parm.parm.capture.timeperframe.numerator = 1; | |
parm.parm.capture.timeperframe.denominator = 15; |