allocCase = 0;
}
else {
- if ((m_streamThreads[0].get())->m_activated == TRUE) {
+ if ((m_streamThreads[0].get())->m_activated == true) {
ALOGV("DEBUG(%s): stream 0 exists and activated.", __FUNCTION__);
allocCase = 1;
}
usleep(100000); // TODO : guarantee the codes below will be run after readyToRunInternal()
*format_actual = HAL_PIXEL_FORMAT_YV12;
- *usage = GRALLOC_USAGE_SW_WRITE_OFTEN | GRALLOC_USAGE_YUV_ADDR;
+ *usage = GRALLOC_USAGE_SW_WRITE_OFTEN;
*max_buffers = 8;
newParameters.streamType = 0;
usleep(100000); // TODO : guarantee the codes below will be run after readyToRunInternal()
*format_actual = HAL_PIXEL_FORMAT_RGBA_8888;
- *usage = GRALLOC_USAGE_SW_WRITE_OFTEN | GRALLOC_USAGE_YUV_ADDR;
+ *usage = GRALLOC_USAGE_SW_WRITE_OFTEN;
*max_buffers = 10;
recordParameters.outputWidth = width;
//m_getAlignedYUVSize(HAL_PIXEL_FORMAT_2_V4L2_PIX(targetRecordParms->outputFormat),
// targetRecordParms->outputWidth, targetRecordParms->outputHeight, ¤tBuf);
currentBuf.fd.extFd[0] = priv_handle->fd;
- currentBuf.fd.extFd[1] = priv_handle->u_fd;
- currentBuf.fd.extFd[2] = priv_handle->v_fd;
+ currentBuf.fd.extFd[1] = priv_handle->fd1;
+ currentBuf.fd.extFd[2] = priv_handle->fd2;
ALOGV("DEBUG(%s): yddr(%x), uoffset(%d), voffset(%d)", __FUNCTION__,priv_handle->yaddr, priv_handle->uoffset, priv_handle->voffset);
ALOGV("DEBUG(%s): ion_size(%d), stride(%d), ", __FUNCTION__,priv_handle->size, priv_handle->stride);
for (plane_index=0 ; plane_index < targetRecordParms->svcPlanes ; plane_index++) {
currentNode->width, currentNode->height, ¤tBuf);
v4l2_buf.m.planes[0].m.fd = priv_handle->fd;
- v4l2_buf.m.planes[2].m.fd = priv_handle->u_fd;
- v4l2_buf.m.planes[1].m.fd = priv_handle->v_fd;
+ v4l2_buf.m.planes[2].m.fd = priv_handle->fd1;
+ v4l2_buf.m.planes[1].m.fd = priv_handle->fd2;
currentBuf.fd.extFd[0] = priv_handle->fd;
- currentBuf.fd.extFd[2] = priv_handle->u_fd;
- currentBuf.fd.extFd[1] = priv_handle->v_fd;
+ currentBuf.fd.extFd[2] = priv_handle->fd1;
+ currentBuf.fd.extFd[1] = priv_handle->fd2;
ALOGV("DEBUG(%s): yddr(%x), uoffset(%d), voffset(%d)", __FUNCTION__,priv_handle->yaddr, priv_handle->uoffset, priv_handle->voffset);
ALOGV("DEBUG(%s): ion_size(%d), stride(%d), ", __FUNCTION__,priv_handle->size, priv_handle->stride);
v4l2_buf.length = currentNode->planes;
v4l2_buf.m.planes[0].m.fd = priv_handle->fd;
- v4l2_buf.m.planes[2].m.fd = priv_handle->u_fd;
- v4l2_buf.m.planes[1].m.fd = priv_handle->v_fd;
+ v4l2_buf.m.planes[2].m.fd = priv_handle->fd1;
+ v4l2_buf.m.planes[1].m.fd = priv_handle->fd2;
for (plane_index=0 ; plane_index < v4l2_buf.length ; plane_index++) {
v4l2_buf.m.planes[plane_index].length = currentBuf->size.extS[plane_index];
ALOGV("DEBUG(%s): plane(%d): fd(%d) length(%d)",