Lines Matching refs:bufDef

230         mm_camera_buf_def_t &bufDef, uint32_t index) const  in getBufDef()  argument
236 bufDef.fd = mMemInfo[index].fd; in getBufDef()
237 bufDef.buf_type = CAM_STREAM_BUF_TYPE_MPLANE; in getBufDef()
238 bufDef.frame_len = offset.frame_len; in getBufDef()
239 bufDef.mem_info = (void *)this; in getBufDef()
240 bufDef.planes_buf.num_planes = (int8_t)offset.num_planes; in getBufDef()
241 bufDef.buffer = getPtr(index); in getBufDef()
242 bufDef.buf_idx = index; in getBufDef()
245 bufDef.planes_buf.planes[0].length = offset.mp[0].len; in getBufDef()
246 bufDef.planes_buf.planes[0].m.userptr = (long unsigned int)mMemInfo[index].fd; in getBufDef()
247 bufDef.planes_buf.planes[0].data_offset = offset.mp[0].offset; in getBufDef()
248 bufDef.planes_buf.planes[0].reserved[0] = 0; in getBufDef()
249 for (int i = 1; i < bufDef.planes_buf.num_planes; i++) { in getBufDef()
250 bufDef.planes_buf.planes[i].length = offset.mp[i].len; in getBufDef()
251 bufDef.planes_buf.planes[i].m.userptr = (long unsigned int)mMemInfo[i].fd; in getBufDef()
252 bufDef.planes_buf.planes[i].data_offset = offset.mp[i].offset; in getBufDef()
253 bufDef.planes_buf.planes[i].reserved[0] = in getBufDef()
254 bufDef.planes_buf.planes[i-1].reserved[0] + in getBufDef()
255 bufDef.planes_buf.planes[i-1].length; in getBufDef()
278 mm_camera_buf_def_t &bufDef, in getUserBufDef() argument
293 bufDef.fd = mMemInfo[count].fd; in getUserBufDef()
294 bufDef.buf_type = CAM_STREAM_BUF_TYPE_USERPTR; in getUserBufDef()
295 bufDef.frame_len = buf_info.size; in getUserBufDef()
296 bufDef.mem_info = (void *)this; in getUserBufDef()
297 bufDef.buffer = (void *)((uint8_t *)getPtr(count) in getUserBufDef()
299 bufDef.buf_idx = index; in getUserBufDef()
300 bufDef.user_buf.num_buffers = (int8_t)buf_info.frame_buf_cnt; in getUserBufDef()
301 bufDef.user_buf.bufs_used = (int8_t)buf_info.frame_buf_cnt; in getUserBufDef()
304 cont_buf = (struct msm_camera_user_buf_cont_t *)bufDef.buffer; in getUserBufDef()
305 cont_buf->buf_cnt = bufDef.user_buf.num_buffers; in getUserBufDef()
307 for (int i = 0; i < bufDef.user_buf.num_buffers; i++) { in getUserBufDef()
309 bufDef.user_buf.buf_idx[i] = -1; in getUserBufDef()
313 bufDef.user_buf.plane_buf = planeBufDef; in getUserBufDef()
316 __func__, bufDef.user_buf.num_buffers, index, plane_idx); in getUserBufDef()