I want to open /dev/video0 for capture and open /dev/video17 for ipu in one process.but the camera buf DQBUF fail.
---------------------------------------
part of my code:
//ipu strean on
int ipu_type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
if(ioctl(ipu_fd,VIDIOC_STREAMON,&ipu_type) < 0){
perror("ipu STREAMON");
exit(1);
}
type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
if(ioctl(cap_fd,VIDIOC_STREAMON,&type) < 0){
perror("capture ioctl STREAMON");
exit(1);
}
cap_buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
cap_buf.memory = V4L2_MEMORY_MMAP;
if(ioctl(cap_fd,VIDIOC_DQBUF,&cap_buf) < 0){
perror("cap DQBUF");
exit(1);
}
------------------------------------------------------------------------------
the error:
imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_5 = 0x00100000
imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_9 = 0x04000000
imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_9 = 0x04000000
ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0
Hello,
please refer to the following
https://community.nxp.com/thread/274730#comment-322666
Regards,
Yuri.
what do you mean"I want to open /dev/video0 for capture and open /dev/video17 for ipu"?
did you use FSL code to do the process? any error message?