Home | History | Annotate | Download | only in libcamera

Lines Matching refs:v4l2_buf

1323     struct v4l2_buffer v4l2_buf;
1326 v4l2_buf.m.planes = planes;
1327 v4l2_buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
1328 v4l2_buf.memory = V4L2_MEMORY_DMABUF;
1329 v4l2_buf.length = 0;
1333 v4l2_buf.length++;
1336 if (exynos_v4l2_dqbuf(m_previewDev->fd, &v4l2_buf) < 0) {
1341 if (VIDEO_MAX_FRAME <= v4l2_buf.index) {
1342 ALOGE("ERR(%s):wrong index = %d", __func__, v4l2_buf.index);
1346 *buf = m_previewBuf[v4l2_buf.index];
1363 struct v4l2_buffer v4l2_buf;
1366 v4l2_buf.m.planes = planes;
1367 v4l2_buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
1368 v4l2_buf.memory = V4L2_MEMORY_DMABUF;
1369 v4l2_buf.index = buf->reserved.p;
1370 v4l2_buf.length = 0;
1373 v4l2_buf.m.planes[i].m.fd= m_previewBuf[buf->reserved.p].fd.extFd[i];
1374 v4l2_buf.m.planes[i].length = m_previewBuf[buf->reserved.p].size.extS[i];
1377 v4l2_buf.length++;
1380 if (exynos_v4l2_qbuf(m_previewDev->fd, &v4l2_buf) < 0) {
1527 struct v4l2_buffer v4l2_buf;
1530 v4l2_buf.m.planes = planes;
1531 v4l2_buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
1532 v4l2_buf.memory = V4L2_MEMORY_DMABUF;
1533 v4l2_buf.length = 0;
1537 v4l2_buf.length++;
1540 if (exynos_v4l2_dqbuf(m_videoDev->fd, &v4l2_buf) < 0) {
1545 if (VIDEO_MAX_FRAME <= v4l2_buf.index) {
1546 ALOGE("ERR(%s):wrong index = %d", __func__, v4l2_buf.index);
1550 *buf = m_videoBuf[v4l2_buf.index];
1578 struct v4l2_buffer v4l2_buf;
1581 v4l2_buf.m.planes = planes;
1582 v4l2_buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
1583 v4l2_buf.memory = V4L2_MEMORY_DMABUF;
1584 v4l2_buf.index = buf->reserved.p;
1585 v4l2_buf.length = 0;
1588 v4l2_buf.m.planes[i].m.fd = (unsigned long)m_videoBuf[buf->reserved.p].fd.extFd[i];
1589 v4l2_buf.m.planes[i].length = m_videoBuf[buf->reserved.p].size.extS[i];
1592 v4l2_buf.length++;
1595 if (exynos_v4l2_qbuf(m_videoDev->fd, &v4l2_buf) < 0) {
1710 struct v4l2_buffer v4l2_buf;
1713 v4l2_buf.m.planes = planes;
1714 v4l2_buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
1715 v4l2_buf.memory = V4L2_MEMORY_DMABUF;
1716 v4l2_buf.length = 0;
1720 v4l2_buf.length++;
1723 if (exynos_v4l2_dqbuf(m_pictureDev->fd, &v4l2_buf) < 0) {
1728 if (VIDEO_MAX_FRAME <= v4l2_buf.index) {
1729 ALOGE("ERR(%s):wrong index = %d", __func__, v4l2_buf.index);
1733 *buf = m_pictureBuf[v4l2_buf.index];
1755 struct v4l2_buffer v4l2_buf;
1758 v4l2_buf.m.planes = planes;
1759 v4l2_buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
1760 v4l2_buf.memory = V4L2_MEMORY_DMABUF;
1761 v4l2_buf.index = buf->reserved.p;
1762 v4l2_buf.length = 0;
1765 v4l2_buf.m.planes[i].m.fd = (unsigned long)m_pictureBuf[buf->reserved.p].fd.extFd[i];
1766 v4l2_buf.m.planes[i].length = m_pictureBuf[buf->reserved.p].size.extS[i];
1769 v4l2_buf.length++;
1772 if (exynos_v4l2_qbuf(m_pictureDev->fd, &v4l2_buf) < 0) {
3469 struct v4l2_buffer v4l2_buf;
3472 v4l2_buf.m.planes = planes;
3473 v4l2_buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
3474 v4l2_buf.memory = V4L2_MEMORY_DMABUF;
3475 v4l2_buf.index = buf[i].reserved.p;
3476 v4l2_buf.length = 0;
3479 v4l2_buf.m.planes[j].m.fd = buf[i].fd.extFd[j];
3480 v4l2_buf.m.planes[j].length = buf[i].size.extS[j];
3483 v4l2_buf.length++;
3486 if (exynos_v4l2_qbuf(fd, &v4l2_buf) < 0) {