linux
linux copied to clipboard
JPEG Control Reference in bcm2835-codec driver. Add control ID V4L2_CID_JPEG_RESTART_INTERVAL
I added Image Process Control ID to be able to add RSTn markers to the generated JPEG file.
Tested on a live example. Example of use:
v4l2_control controls;
controls.id = V4L2_CID_JPEG_RESTART_INTERVAL;
controls.value = 100;
if(0 < ioctl(fd, VIDIOC_S_CTRL, &controls)) {
perror("Error VIDIOC_S_EXT_CTRLS");
}