Home
last modified time | relevance | path

Searched refs:planes (Results 1 – 25 of 34) sorted by relevance

12

/device/moto/shamu/camera/QCamera/HAL2/core/src/
DQCameraStream_Preview.cpp82 uint32_t planes[VIDEO_MAX_PLANES]; in initBuffers() local
92 planes[i] = mFrameOffsetInfo.mp[i].len; in initBuffers()
105 mDisplayBuf[i].planes[0].length = planes[0]; in initBuffers()
106 mDisplayBuf[i].planes[0].m.userptr = mPreviewMemory.private_buffer_handle[i]->fd; in initBuffers()
107 mDisplayBuf[i].planes[0].data_offset = mFrameOffsetInfo.mp[0].offset; in initBuffers()
108 mDisplayBuf[i].planes[0].reserved[0] =0; in initBuffers()
110 mDisplayBuf[i].planes[j].length = planes[j]; in initBuffers()
111 mDisplayBuf[i].planes[j].m.userptr = mPreviewMemory.private_buffer_handle[i]->fd; in initBuffers()
112 mDisplayBuf[i].planes[j].data_offset = mFrameOffsetInfo.mp[j].offset; in initBuffers()
113 mDisplayBuf[i].planes[j].reserved[0] = in initBuffers()
[all …]
/device/moto/shamu/camera/QCamera/stack/mm-camera-test/src/
Dmm_qcamera_video.c123 uint32_t planes[VIDEO_MAX_PLANES];
130 planes[i] = frame_offset_info->mp[i].len;
157 pme->video_buf.frame[i].cbcr_off = planes[0];
171 bufs[i].planes[0].length = planes[0];
172 bufs[i].planes[0].m.userptr = bufs[i].fd;
173 bufs[i].planes[0].data_offset = y_off;
174 bufs[i].planes[0].reserved[0] = 0;
177 bufs[i].planes[j].length = planes[j];
178 bufs[i].planes[j].m.userptr = bufs[i].fd;
179 bufs[i].planes[j].data_offset = cbcr_off;
[all …]
Dmm_qcamera_rdi.c72 void *y_off = newFrame->buffer + newFrame->planes[0].data_offset; in dumpRdi()
74 void *cbcr_off = newFrame->buffer + newFrame->planes[0].length; in dumpRdi()
76 …_off length = %d cbcr_off length = %d", __func__, newFrame->planes[0].length,newFrame->planes[1].l… in dumpRdi()
78 write(file_fd, (const void *)(y_off), newFrame->planes[0].length); in dumpRdi()
80 (newFrame->planes[1].length * newFrame->num_planes)); in dumpRdi()
Dmm_qcamera_app.c587 app_bufs->bufs[i].planes[0].length = frame_offset_info->mp[0].len; in mm_stream_alloc_bufs()
588 app_bufs->bufs[i].planes[0].m.userptr = app_bufs->bufs[i].fd; in mm_stream_alloc_bufs()
589 app_bufs->bufs[i].planes[0].data_offset = frame_offset_info->mp[0].offset; in mm_stream_alloc_bufs()
590 app_bufs->bufs[i].planes[0].reserved[0] = 0; in mm_stream_alloc_bufs()
592 app_bufs->bufs[i].planes[j].length = frame_offset_info->mp[j].len; in mm_stream_alloc_bufs()
593 app_bufs->bufs[i].planes[j].m.userptr = app_bufs->bufs[i].fd; in mm_stream_alloc_bufs()
594 app_bufs->bufs[i].planes[j].data_offset = frame_offset_info->mp[j].offset; in mm_stream_alloc_bufs()
595 app_bufs->bufs[i].planes[j].reserved[0] = in mm_stream_alloc_bufs()
596 app_bufs->bufs[i].planes[j-1].reserved[0] + in mm_stream_alloc_bufs()
597 app_bufs->bufs[i].planes[j-1].length; in mm_stream_alloc_bufs()
Dmm_qcamera_preview.c199 void* y_off = newFrame->buffer + newFrame->planes[0].data_offset; in dumpFrameToFile()
200 void* cbcr_off = newFrame->buffer + newFrame->planes[0].length; in dumpFrameToFile()
203 …_off length = %d cbcr_off length = %d", __func__, newFrame->planes[0].length,newFrame->planes[1].l… in dumpFrameToFile()
326 uint32_t planes[VIDEO_MAX_PLANES];
333 planes[i] = frame_offset_info->mp[i].len;
360 pme->preview_buf.frame[i].cbcr_off = planes[0];
374 bufs[i].planes[0].length = planes[0];
375 bufs[i].planes[0].m.userptr = bufs[i].fd;
376 bufs[i].planes[0].data_offset = y_off;
377 bufs[i].planes[0].reserved[0] = 0;
[all …]
/device/lge/hammerhead/camera/QCamera2/HAL3/
DQCamera3Mem.cpp208 bufDef.planes[0].length = offset.mp[0].len; in getBufDef()
209 bufDef.planes[0].m.userptr = mMemInfo[index].fd; in getBufDef()
210 bufDef.planes[0].data_offset = offset.mp[0].offset; in getBufDef()
211 bufDef.planes[0].reserved[0] = 0; in getBufDef()
213 bufDef.planes[i].length = offset.mp[i].len; in getBufDef()
214 bufDef.planes[i].m.userptr = mMemInfo[i].fd; in getBufDef()
215 bufDef.planes[i].data_offset = offset.mp[i].offset; in getBufDef()
216 bufDef.planes[i].reserved[0] = in getBufDef()
217 bufDef.planes[i-1].reserved[0] + in getBufDef()
218 bufDef.planes[i-1].length; in getBufDef()
/device/asus/flo/camera/QCamera2/HAL3/
DQCamera3Mem.cpp205 bufDef.planes[0].length = offset.mp[0].len; in getBufDef()
206 bufDef.planes[0].m.userptr = mMemInfo[index].fd; in getBufDef()
207 bufDef.planes[0].data_offset = offset.mp[0].offset; in getBufDef()
208 bufDef.planes[0].reserved[0] = 0; in getBufDef()
210 bufDef.planes[i].length = offset.mp[i].len; in getBufDef()
211 bufDef.planes[i].m.userptr = mMemInfo[i].fd; in getBufDef()
212 bufDef.planes[i].data_offset = offset.mp[i].offset; in getBufDef()
213 bufDef.planes[i].reserved[0] = in getBufDef()
214 bufDef.planes[i-1].reserved[0] + in getBufDef()
215 bufDef.planes[i-1].length; in getBufDef()
/device/moto/shamu/camera/QCamera/HAL/core/src/
DQCameraHWI_Preview.cpp290 uint32_t planes[VIDEO_MAX_PLANES]; in getBufferNoDisplay() local
445 uint32_t planes[VIDEO_MAX_PLANES]; in initDisplayBuffers() local
463 planes[i] = mFrameOffsetInfo.mp[i].len; in initDisplayBuffers()
474 planes[0], 0, in initDisplayBuffers()
481 mDisplayBuf[i].planes[0].length = planes[0]; in initDisplayBuffers()
482 mDisplayBuf[i].planes[0].m.userptr = mHalCamCtrl->mPreviewMemory.private_buffer_handle[i]->fd; in initDisplayBuffers()
483 mDisplayBuf[i].planes[0].data_offset = mFrameOffsetInfo.mp[0].offset; in initDisplayBuffers()
484 …mDisplayBuf[i].planes[0].reserved[0] =0;// mHalCamCtrl->mPreviewMemory.addr_offset[i]; // mDis… in initDisplayBuffers()
486 mDisplayBuf[i].planes[j].length = planes[j]; in initDisplayBuffers()
487 mDisplayBuf[i].planes[j].m.userptr = mHalCamCtrl->mPreviewMemory.private_buffer_handle[i]->fd; in initDisplayBuffers()
[all …]
DQCameraHWI_Rdi.cpp121 void* y_off = newFrame->buffer + newFrame->planes[0].data_offset; in dumpFrameToFile()
122 void* cbcr_off = newFrame->buffer + newFrame->planes[0].length; in dumpFrameToFile()
124 write(file_fd, (const void *)(y_off), newFrame->planes[0].length); in dumpFrameToFile()
126 (newFrame->planes[1].length * newFrame->num_planes)); in dumpFrameToFile()
DQCameraHWI.cpp2993 buf_def[i].planes[0].length = offset->mp[0].len; in initHeapMem()
2994 buf_def[i].planes[0].m.userptr = heap->mem_info[i].fd; in initHeapMem()
2995 buf_def[i].planes[0].data_offset = offset->mp[0].offset; in initHeapMem()
2996 buf_def[i].planes[0].reserved[0] = 0; in initHeapMem()
2998 buf_def[i].planes[j].length = offset->mp[j].len; in initHeapMem()
2999 buf_def[i].planes[j].m.userptr = heap->mem_info[i].fd; in initHeapMem()
3000 buf_def[i].planes[j].data_offset = offset->mp[j].offset; in initHeapMem()
3001 buf_def[i].planes[j].reserved[0] = in initHeapMem()
3002 buf_def[i].planes[j-1].reserved[0] + in initHeapMem()
3003 buf_def[i].planes[j-1].length; in initHeapMem()
/device/moto/shamu/camera/QCamera2/HAL3/
DQCamera3Mem.cpp236 bufDef.planes[0].length = offset.mp[0].len; in getBufDef()
237 bufDef.planes[0].m.userptr = mMemInfo[index].fd; in getBufDef()
238 bufDef.planes[0].data_offset = offset.mp[0].offset; in getBufDef()
239 bufDef.planes[0].reserved[0] = 0; in getBufDef()
241 bufDef.planes[i].length = offset.mp[i].len; in getBufDef()
242 bufDef.planes[i].m.userptr = mMemInfo[i].fd; in getBufDef()
243 bufDef.planes[i].data_offset = offset.mp[i].offset; in getBufDef()
244 bufDef.planes[i].reserved[0] = in getBufDef()
245 bufDef.planes[i-1].reserved[0] + in getBufDef()
246 bufDef.planes[i-1].length; in getBufDef()
/device/asus/flo/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_app.c251 (uint8_t *)frame->buffer + frame->planes[i].data_offset, in mm_app_dump_frame()
252 frame->planes[i].length); in mm_app_dump_frame()
299 app_bufs[i].buf.planes[0].length = frame_offset_info->mp[0].len; in mm_app_alloc_bufs()
300 app_bufs[i].buf.planes[0].m.userptr = app_bufs[i].buf.fd; in mm_app_alloc_bufs()
301 app_bufs[i].buf.planes[0].data_offset = frame_offset_info->mp[0].offset; in mm_app_alloc_bufs()
302 app_bufs[i].buf.planes[0].reserved[0] = 0; in mm_app_alloc_bufs()
304 app_bufs[i].buf.planes[j].length = frame_offset_info->mp[j].len; in mm_app_alloc_bufs()
305 app_bufs[i].buf.planes[j].m.userptr = app_bufs[i].buf.fd; in mm_app_alloc_bufs()
306 app_bufs[i].buf.planes[j].data_offset = frame_offset_info->mp[j].offset; in mm_app_alloc_bufs()
307 app_bufs[i].buf.planes[j].reserved[0] = in mm_app_alloc_bufs()
[all …]
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_app.c251 (uint8_t *)frame->buffer + frame->planes[i].data_offset, in mm_app_dump_frame()
252 frame->planes[i].length); in mm_app_dump_frame()
299 app_bufs[i].buf.planes[0].length = frame_offset_info->mp[0].len; in mm_app_alloc_bufs()
300 app_bufs[i].buf.planes[0].m.userptr = app_bufs[i].buf.fd; in mm_app_alloc_bufs()
301 app_bufs[i].buf.planes[0].data_offset = frame_offset_info->mp[0].offset; in mm_app_alloc_bufs()
302 app_bufs[i].buf.planes[0].reserved[0] = 0; in mm_app_alloc_bufs()
304 app_bufs[i].buf.planes[j].length = frame_offset_info->mp[j].len; in mm_app_alloc_bufs()
305 app_bufs[i].buf.planes[j].m.userptr = app_bufs[i].buf.fd; in mm_app_alloc_bufs()
306 app_bufs[i].buf.planes[j].data_offset = frame_offset_info->mp[j].offset; in mm_app_alloc_bufs()
307 app_bufs[i].buf.planes[j].reserved[0] = in mm_app_alloc_bufs()
[all …]
/device/lge/hammerhead/camera/QCamera2/HAL/
DQCameraMem.cpp214 bufDef.planes[0].length = offset.mp[0].len; in getBufDef()
215 bufDef.planes[0].m.userptr = mMemInfo[index].fd; in getBufDef()
216 bufDef.planes[0].data_offset = offset.mp[0].offset; in getBufDef()
217 bufDef.planes[0].reserved[0] = 0; in getBufDef()
219 bufDef.planes[i].length = offset.mp[i].len; in getBufDef()
220 bufDef.planes[i].m.userptr = mMemInfo[i].fd; in getBufDef()
221 bufDef.planes[i].data_offset = offset.mp[i].offset; in getBufDef()
222 bufDef.planes[i].reserved[0] = in getBufDef()
223 bufDef.planes[i-1].reserved[0] + in getBufDef()
224 bufDef.planes[i-1].length; in getBufDef()
/device/asus/flo/camera/QCamera2/HAL/
DQCameraMem.cpp214 bufDef.planes[0].length = offset.mp[0].len; in getBufDef()
215 bufDef.planes[0].m.userptr = mMemInfo[index].fd; in getBufDef()
216 bufDef.planes[0].data_offset = offset.mp[0].offset; in getBufDef()
217 bufDef.planes[0].reserved[0] = 0; in getBufDef()
219 bufDef.planes[i].length = offset.mp[i].len; in getBufDef()
220 bufDef.planes[i].m.userptr = mMemInfo[i].fd; in getBufDef()
221 bufDef.planes[i].data_offset = offset.mp[i].offset; in getBufDef()
222 bufDef.planes[i].reserved[0] = in getBufDef()
223 bufDef.planes[i-1].reserved[0] + in getBufDef()
224 bufDef.planes[i-1].length; in getBufDef()
/device/moto/shamu/camera/QCamera2/HAL/
DQCameraMem.cpp213 bufDef.planes[0].length = offset.mp[0].len; in getBufDef()
214 bufDef.planes[0].m.userptr = mMemInfo[index].fd; in getBufDef()
215 bufDef.planes[0].data_offset = offset.mp[0].offset; in getBufDef()
216 bufDef.planes[0].reserved[0] = 0; in getBufDef()
218 bufDef.planes[i].length = offset.mp[i].len; in getBufDef()
219 bufDef.planes[i].m.userptr = mMemInfo[i].fd; in getBufDef()
220 bufDef.planes[i].data_offset = offset.mp[i].offset; in getBufDef()
221 bufDef.planes[i].reserved[0] = in getBufDef()
222 bufDef.planes[i-1].reserved[0] + in getBufDef()
223 bufDef.planes[i-1].length; in getBufDef()
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera_stream.c911 struct v4l2_plane planes[VIDEO_MAX_PLANES]; in mm_stream_read_msm_frame() local
925 vb.m.planes = &planes[0]; in mm_stream_read_msm_frame()
946 __func__, i, vb.m.planes[i].reserved[0], in mm_stream_read_msm_frame()
947 vb.m.planes[i].data_offset); in mm_stream_read_msm_frame()
948 buf_info->buf->planes[i].reserved[0] = in mm_stream_read_msm_frame()
949 vb.m.planes[i].reserved[0]; in mm_stream_read_msm_frame()
950 buf_info->buf->planes[i].data_offset = in mm_stream_read_msm_frame()
951 vb.m.planes[i].data_offset; in mm_stream_read_msm_frame()
1165 buffer.m.planes = &buf->planes[0]; in mm_stream_qbuf()
Dmm_camera_channel.c1855 repro_cmd.payload.reprocess.planes[i].addr_offset = in mm_channel_reprocess()
1856 repro_data->src_frame->planes[i].reserved[0]; in mm_channel_reprocess()
1857 repro_cmd.payload.reprocess.planes[i].data_offset = in mm_channel_reprocess()
1858 repro_data->src_frame->planes[i].data_offset; in mm_channel_reprocess()
1859 repro_cmd.payload.reprocess.planes[i].length = in mm_channel_reprocess()
1860 repro_data->src_frame->planes[i].length; in mm_channel_reprocess()
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_app.c253 … (uint32_t )frame->buffer, frame->planes[i].data_offset, frame->planes[i].length); in mm_app_dump_frame()
256 frame->planes[i].length); in mm_app_dump_frame()
257 offset += frame->planes[i].length; in mm_app_dump_frame()
313 app_bufs[i].buf.planes[0].length = frame_offset_info->mp[0].len; in mm_app_alloc_bufs()
314 app_bufs[i].buf.planes[0].m.userptr = app_bufs[i].buf.fd; in mm_app_alloc_bufs()
315 app_bufs[i].buf.planes[0].data_offset = frame_offset_info->mp[0].offset; in mm_app_alloc_bufs()
316 app_bufs[i].buf.planes[0].reserved[0] = 0; in mm_app_alloc_bufs()
318 app_bufs[i].buf.planes[j].length = frame_offset_info->mp[j].len; in mm_app_alloc_bufs()
319 app_bufs[i].buf.planes[j].m.userptr = app_bufs[i].buf.fd; in mm_app_alloc_bufs()
320 app_bufs[i].buf.planes[j].data_offset = frame_offset_info->mp[j].offset; in mm_app_alloc_bufs()
[all …]
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_stream.c937 struct v4l2_plane planes[VIDEO_MAX_PLANES]; in mm_stream_read_msm_frame() local
944 vb.m.planes = &planes[0]; in mm_stream_read_msm_frame()
1123 struct v4l2_plane planes[VIDEO_MAX_PLANES]; in mm_stream_qbuf() local
1127 memcpy(planes, buf->planes, sizeof(planes)); in mm_stream_qbuf()
1132 buffer.m.planes = &planes[0]; in mm_stream_qbuf()
1136 …buf->stream_id, buf->fd, buffer.index, buffer.length, buf->planes[0].reserved[0], buf->planes[0].d… in mm_stream_qbuf()
1138 …buf->stream_id, buf->fd, buffer.index, buffer.length, buf->planes[1].reserved[0], buf->planes[1].d… in mm_stream_qbuf()
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_stream.c945 struct v4l2_plane planes[VIDEO_MAX_PLANES]; in mm_stream_read_msm_frame() local
952 vb.m.planes = &planes[0]; in mm_stream_read_msm_frame()
1131 struct v4l2_plane planes[VIDEO_MAX_PLANES]; in mm_stream_qbuf() local
1135 memcpy(planes, buf->planes, sizeof(planes)); in mm_stream_qbuf()
1140 buffer.m.planes = &planes[0]; in mm_stream_qbuf()
1144 …buf->stream_id, buf->fd, buffer.index, buffer.length, buf->planes[0].reserved[0], buf->planes[0].d… in mm_stream_qbuf()
1146 …buf->stream_id, buf->fd, buffer.index, buffer.length, buf->planes[1].reserved[0], buf->planes[1].d… in mm_stream_qbuf()
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_stream.c940 struct v4l2_plane planes[VIDEO_MAX_PLANES]; in mm_stream_read_msm_frame() local
947 vb.m.planes = &planes[0]; in mm_stream_read_msm_frame()
1132 struct v4l2_plane planes[VIDEO_MAX_PLANES]; in mm_stream_qbuf() local
1137 memcpy(planes, buf->planes, sizeof(planes)); in mm_stream_qbuf()
1142 buffer.m.planes = &planes[0]; in mm_stream_qbuf()
1146 …buf->stream_id, buf->fd, buffer.index, buffer.length, buf->planes[0].reserved[0], buf->planes[0].d… in mm_stream_qbuf()
1148 …buf->stream_id, buf->fd, buffer.index, buffer.length, buf->planes[1].reserved[0], buf->planes[1].d… in mm_stream_qbuf()
/device/moto/shamu/camera/QCamera/stack/mm-camera-test/inc/
Dmm_qcamera_app.h158 uint32_t planes[]);
/device/asus/flo/camera/QCamera2/stack/common/
Dmm_camera_interface.h72 struct v4l2_plane planes[VIDEO_MAX_PLANES]; member
/device/lge/hammerhead/camera/QCamera2/stack/common/
Dmm_camera_interface.h72 struct v4l2_plane planes[VIDEO_MAX_PLANES]; member

12