@awwwwa 创建多个VirChn吗?
Volcan_W 发布的帖子
-
sunxi:VE:[INFO]: 469 enable_cedar_hw_clk_module(): execute set_vcu_en_regmode_to1_to0
sunxi:VE:[INFO]: 469 enable_cedar_hw_clk_module(): execute set_vcu_en_regmode_to1_to0
这个是什么报错?我在使用摄像头的时候经常出现该问题。 -
V821 开发板如何设置摄像头分辨率
通过cat /sys/kernel/debug/mpp/vi查看当前摄像头分辨率如下,该如何设置摄像头分辨率?
vi0:
gc2053_mipi => mipi0 => csi0 => isp0 => vipp0
input => hoff: 0, voff: 0, w: 1920, h: 1080, fmt: RGGB10
output => width: 240, height: 320, fmt: NV21
interface: MIPI, isp_mode: NORMAL, hflip: 0, vflip: 0
prs_in => x: 1920, y: 1080, hb: 1795, hs: 6266
bkuf => cnt: 3 size: 118784 rest: 2, work_mode: online
ispbuf => cnt: 4 size: 3112960/28672/28672/28672, cmp_ratio: 0
frame => cnt: 1400, lost_cnt: 2, error_cnt: 0
internal => avg: 44(ms), max: 50(ms), min: 40(ms)
CSI Bandwidth: 0 -
Tina V821 Linux系统使用V4L2打开摄像头
在使用ioctl设置摄像头格式时,发现ioctl只调用了驱动层v4l2_ioctl,底层硬件驱动的ioctl并未调用,导致设置摄像头格式失败,这个是什么原因导致的,该如何解决?
-
Tina V821 Linux系统使用V4L2打开摄像头报错,如何解决?
在使用V4L2打开GC2053摄像头,获取摄像头支持的格式时,无打印,然后设置格式也一直报错无法成功,返回:Set format。
有无使用V4L2的可执行的应用层代码参考?struct v4l2_fmtdesc fmtdesc; memset(&fmtdesc, 0, sizeof(fmtdesc)); fmtdesc.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; fmtdesc.index = 0; printf("Supported formats:\n"); while (ioctl(fd, VIDIOC_ENUM_FMT, &fmtdesc) == 0) { printf(" %c%c%c%c\n", fmtdesc.pixelformat & 0xFF, (fmtdesc.pixelformat >> 8) & 0xFF, (fmtdesc.pixelformat >> 16) & 0xFF, (fmtdesc.pixelformat >> 24) & 0xFF); fmtdesc.index++; printf("1\n"); } // 设置格式 struct v4l2_format fmt; memset(&fmt, 0, sizeof(fmt)); fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; fmt.fmt.pix.width = WIDTH; fmt.fmt.pix.height = HEIGHT; fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV; // 或者根据摄像头支持格式修改 //fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_RGB565; //fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_NV12; //fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_MJPEG; fmt.fmt.pix.field = V4L2_FIELD_NONE; ret = ioctl(fd, VIDIOC_S_FMT, &fmt); printf("%d\n", ret); if (ioctl(fd, VIDIOC_S_FMT, &fmt) < 0) { perror("Set format"); close(fd); return -1; }