📄 reset.c
字号:
#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#include <sys/ioctl.h>#include <linux/videodev.h>#include "pwc-ioctl.h"int main() { const char *dev = "/dev/video0"; int fd = open(dev, O_RDONLY); if (fd < 0) { perror("open"); return -1; } if (ioctl(fd, VIDIOCPWCFACTORY, NULL) < 0) { perror("ioctl VIDIOCPWCFACTORY"); return -1; } close(fd); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -