Lines Matching refs:v4l2_buf
163 struct v4l2_buffer v4l2_buf;
168 v4l2_buf.m.planes = planes;
169 v4l2_buf.type = node->type;
170 v4l2_buf.memory = node->memory;
171 v4l2_buf.index = index;
172 v4l2_buf.length = node->planes;
175 v4l2_buf.m.planes[i].m.fd = (int)(node->buffer[index].fd.extFd[i]);
176 v4l2_buf.m.planes[i].length = (unsigned long)(node->buffer[index].size.extS[i]);
179 ret = exynos_v4l2_qbuf(node->fd, &v4l2_buf);
234 struct v4l2_buffer v4l2_buf;
238 v4l2_buf.type = node->type;
239 v4l2_buf.memory = node->memory;
240 v4l2_buf.m.planes = planes;
241 v4l2_buf.length = node->planes;
243 ret = exynos_v4l2_dqbuf(node->fd, &v4l2_buf);
247 return v4l2_buf.index;
252 struct v4l2_buffer v4l2_buf;
256 v4l2_buf.type = node->type;
257 v4l2_buf.memory = node->memory;
258 v4l2_buf.m.planes = planes;
259 v4l2_buf.length = num_plane;
261 ret = exynos_v4l2_dqbuf(node->fd, &v4l2_buf);
265 return v4l2_buf.index;
1553 struct v4l2_buffer v4l2_buf;
1557 v4l2_buf.m.planes = planes;
1558 v4l2_buf.type = currentNode->type;
1559 v4l2_buf.memory = currentNode->memory;
1561 v4l2_buf.length = currentNode->planes;
1562 v4l2_buf.index = i;
1567 v4l2_buf.m.planes[0].m.fd = targetStreamParms->svcBuffers[i].fd.extFd[0];
1568 v4l2_buf.m.planes[2].m.fd = targetStreamParms->svcBuffers[i].fd.extFd[1];
1569 v4l2_buf.m.planes[1].m.fd = targetStreamParms->svcBuffers[i].fd.extFd[2];
1570 v4l2_buf.length += targetStreamParms->metaPlanes;
1571 v4l2_buf.m.planes[v4l2_buf.length-1].m.fd = metaBuf.fd.extFd[0];
1572 v4l2_buf.m.planes[v4l2_buf.length-1].length = metaBuf.size.extS[0];
1574 ALOGV("Qbuf metaBuf: fd(%d), length(%d) plane(%d)", metaBuf.fd.extFd[0], metaBuf.size.extS[0], v4l2_buf.length);
1576 if (exynos_v4l2_qbuf(currentNode->fd, &v4l2_buf) < 0) {
2021 struct v4l2_buffer v4l2_buf;
2111 v4l2_buf.m.planes = planes;
2112 v4l2_buf.type = currentNode->type;
2113 v4l2_buf.memory = currentNode->memory;
2114 v4l2_buf.index = i;
2115 v4l2_buf.length = currentNode->planes;
2126 v4l2_buf.m.planes[0].m.fd = priv_handle->fd;
2132 v4l2_buf.m.planes[0].m.fd = priv_handle->fd;
2133 v4l2_buf.m.planes[1].m.fd = priv_handle->fd1;
2138 v4l2_buf.m.planes[0].m.fd = priv_handle->fd;
2139 v4l2_buf.m.planes[2].m.fd = priv_handle->fd1;
2140 v4l2_buf.m.planes[1].m.fd = priv_handle->fd2;
2146 for (plane_index = 0 ; plane_index < (int)v4l2_buf.length ; plane_index++) {
2149 v4l2_buf.m.planes[plane_index].length = currentBuf.size.extS[plane_index];
2151 __FUNCTION__, plane_index, v4l2_buf.m.planes[plane_index].m.fd,
2153 v4l2_buf.m.planes[plane_index].length);
2164 v4l2_buf.length += targetStreamParms->metaPlanes;
2165 v4l2_buf.m.planes[v4l2_buf.length-1].m.fd = metaBuf.fd.extFd[0];
2166 v4l2_buf.m.planes[v4l2_buf.length-1].length = metaBuf.size.extS[0];
2168 ALOGV("Qbuf metaBuf: fd(%d), length(%d) plane(%d)", metaBuf.fd.extFd[0], metaBuf.size.extS[0], v4l2_buf.length);
2170 if (exynos_v4l2_qbuf(currentNode->fd, &v4l2_buf) < 0) {
4000 struct v4l2_buffer v4l2_buf;
4003 v4l2_buf.m.planes = planes;
4004 v4l2_buf.type = currentNode->type;
4005 v4l2_buf.memory = currentNode->memory;
4006 v4l2_buf.index = selfStreamParms->bufIndex;
4007 v4l2_buf.length = currentNode->planes;
4009 v4l2_buf.m.planes[0].m.fd = priv_handle->fd;
4010 v4l2_buf.m.planes[2].m.fd = priv_handle->fd1;
4011 v4l2_buf.m.planes[1].m.fd = priv_handle->fd2;
4012 for (plane_index=0 ; plane_index < v4l2_buf.length ; plane_index++) {
4013 v4l2_buf.m.planes[plane_index].length = currentBuf->size.extS[plane_index];
4017 v4l2_buf
4018 v4l2_buf.m.planes[v4l2_buf.length-1].m.fd = selfStreamParms->metaBuffers[selfStreamParms->bufIndex].fd.extFd[0];
4019 v4l2_buf.m.planes[v4l2_buf.length-1].length = selfStreamParms->metaBuffers[selfStreamParms->bufIndex].size.extS[0];
4021 if (exynos_v4l2_qbuf(currentNode->fd, &v4l2_buf) < 0) {