/device/moto/shamu/camera/QCamera/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_interface.c | 52 jpeg_image_buffer_config * buf_info; in mm_jpeg_dump_job() local 53 buf_info = &job->encode_job.encode_parm.buf_info; in mm_jpeg_dump_job() 57 job->encode_job.encode_parm.buf_info.src_imgs.is_video_frame); in mm_jpeg_dump_job() 58 … sin_img fd=%d, buf_len=%d, buf_add=%p: src img img num=%d", buf_info->sink_img.fd, buf_info->sink… in mm_jpeg_dump_job() 59 buf_info->sink_img.buf_vaddr, buf_info->src_imgs.src_img_num); in mm_jpeg_dump_job() 60 for (i=0; i < buf_info->src_imgs.src_img_num; i++) { in mm_jpeg_dump_job() 61 …buf=%d, quality=%d, src: %dx%d, out:%dx%d, crop: %dx%d, x=%d, y=%d", i, buf_info->src_imgs.src_img… in mm_jpeg_dump_job() 62 buf_info->src_imgs.src_img[i].color_format, in mm_jpeg_dump_job() 63 buf_info->src_imgs.src_img[i].type, in mm_jpeg_dump_job() 64 buf_info->src_imgs.src_img[i].num_bufs, in mm_jpeg_dump_job() [all …]
|
D | mm_jpeg.c | 289 …map_jpeg_format(job->encode_parm.buf_info.src_imgs.src_img[JPEG_SRC_IMAGE_TYPE_MAIN].color_format); in mm_jpeg_omx_config_user_preference() 290 if (job->encode_parm.buf_info.src_imgs.src_img_num > 1) { in mm_jpeg_omx_config_user_preference() 292 …map_jpeg_format(job->encode_parm.buf_info.src_imgs.src_img[JPEG_SRC_IMAGE_TYPE_THUMB].color_format… in mm_jpeg_omx_config_user_preference() 300 if (job->encode_parm.buf_info.src_imgs.is_video_frame != 0) { in mm_jpeg_omx_config_user_preference() 317 if (job->encode_parm.buf_info.src_imgs.src_img_num < 2) { in mm_jpeg_omx_config_thumbnail() 322 &(job->encode_parm.buf_info.src_imgs.src_img[JPEG_SRC_IMAGE_TYPE_THUMB]); in mm_jpeg_omx_config_thumbnail() 449 &(job->encode_parm.buf_info.src_imgs.src_img[JPEG_SRC_IMAGE_TYPE_MAIN]); in mm_jpeg_omx_config_main() 462 …rc = mm_jpeg_omx_config_main_buffer_offset(my_obj, src_buf, job->encode_parm.buf_info.src_imgs.is_… in mm_jpeg_omx_config_main() 584 uint8_t has_thumbnail = job->encode_parm.buf_info.src_imgs.src_img_num > 1? 1 : 0; in mm_jpeg_omx_encode() 612 …src_buf[JPEG_SRC_IMAGE_TYPE_MAIN] = &(job->encode_parm.buf_info.src_imgs.src_img[JPEG_SRC_IMAGE_TY… in mm_jpeg_omx_encode() [all …]
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/ |
D | mm_camera_stream.c | 77 mm_camera_buf_info_t* buf_info); 144 mm_camera_buf_info_t *buf_info) in mm_stream_handle_rcvd_buf() argument 162 memcpy(&node->u.buf, buf_info, sizeof(mm_camera_buf_info_t)); in mm_stream_handle_rcvd_buf() 188 memcpy(&node->u.buf, buf_info, sizeof(mm_camera_buf_info_t)); in mm_stream_handle_rcvd_buf() 206 mm_camera_buf_info_t buf_info; in mm_stream_data_notify() local 224 memset(&buf_info, 0, sizeof(mm_camera_buf_info_t)); in mm_stream_data_notify() 227 rc = mm_stream_read_msm_frame(my_obj, &buf_info); in mm_stream_data_notify() 232 idx = buf_info.buf->buf_idx; in mm_stream_data_notify() 251 mm_stream_handle_rcvd_buf(my_obj, &buf_info); in mm_stream_data_notify() 259 mm_camera_buf_info_t buf_info; in mm_stream_buf_notify() local [all …]
|
D | mm_camera_channel.c | 1371 mm_camera_buf_info_t *buf_info) in mm_channel_superbuf_comp_and_enqueue() argument 1381 if (buf_info->stream_id == queue->bundled_streams[buf_s_idx]) { in mm_channel_superbuf_comp_and_enqueue() 1386 CDBG_ERROR("%s: buf from stream (%d) not bundled", __func__, buf_info->stream_id); in mm_channel_superbuf_comp_and_enqueue() 1390 if (mm_channel_util_seq_comp_w_rollover(buf_info->frame_idx, in mm_channel_superbuf_comp_and_enqueue() 1393 mm_channel_qbuf(ch_obj, buf_info->buf); in mm_channel_superbuf_comp_and_enqueue() 1437 memcpy(&new_buf->super_buf[buf_s_idx], buf_info, sizeof(mm_camera_buf_info_t)); in mm_channel_superbuf_comp_and_enqueue() 1449 queue->expected_frame_id = buf_info->frame_idx + queue->attr.post_frame_skip; in mm_channel_superbuf_comp_and_enqueue() 1462 mm_channel_qbuf(ch_obj, buf_info->buf); in mm_channel_superbuf_comp_and_enqueue() 1481 if (frame_idx < buf_info->frame_idx) { in mm_channel_superbuf_comp_and_enqueue() 1485 } else if (frame_idx > buf_info->frame_idx) { in mm_channel_superbuf_comp_and_enqueue() [all …]
|
D | mm_camera_data.c | 208 mm_camera_buf_info_t buf_info; in mm_camera_cmd_thread_stop() local
|
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_channel.c | 1472 mm_camera_buf_info_t *buf_info) in mm_channel_handle_metadata() argument 1477 buf_info->stream_id); in mm_channel_handle_metadata() 1481 __func__, buf_info->stream_id); in mm_channel_handle_metadata() 1487 __func__, buf_info->stream_id); in mm_channel_handle_metadata() 1494 metadata = (const cam_metadata_info_t *)buf_info->buf->buffer; in mm_channel_handle_metadata() 1551 mm_camera_buf_info_t *buf_info) in mm_channel_superbuf_comp_and_enqueue() argument 1562 if (buf_info->stream_id == queue->bundled_streams[buf_s_idx]) { in mm_channel_superbuf_comp_and_enqueue() 1567 CDBG_ERROR("%s: buf from stream (%d) not bundled", __func__, buf_info->stream_id); in mm_channel_superbuf_comp_and_enqueue() 1571 if (mm_channel_handle_metadata(ch_obj, queue, buf_info) < 0) { in mm_channel_superbuf_comp_and_enqueue() 1575 if (mm_channel_util_seq_comp_w_rollover(buf_info->frame_idx, in mm_channel_superbuf_comp_and_enqueue() [all …]
|
D | mm_camera_stream.c | 67 mm_camera_buf_info_t* buf_info, 136 mm_camera_buf_info_t *buf_info, in mm_stream_handle_rcvd_buf() argument 151 node->u.buf = *buf_info; in mm_stream_handle_rcvd_buf() 171 node->u.buf = *buf_info; in mm_stream_handle_rcvd_buf() 199 mm_camera_buf_info_t buf_info; in mm_stream_data_notify() local 215 memset(&buf_info, 0, sizeof(mm_camera_buf_info_t)); in mm_stream_data_notify() 216 rc = mm_stream_read_msm_frame(my_obj, &buf_info, my_obj->frame_offset.num_planes); in mm_stream_data_notify() 220 idx = buf_info.buf->buf_idx; in mm_stream_data_notify() 244 mm_stream_handle_rcvd_buf(my_obj, &buf_info, has_cb); in mm_stream_data_notify() 263 mm_camera_buf_info_t* buf_info = NULL; in mm_stream_dispatch_app_data() local [all …]
|
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_channel.c | 1475 mm_camera_buf_info_t *buf_info) in mm_channel_handle_metadata() argument 1480 buf_info->stream_id); in mm_channel_handle_metadata() 1484 __func__, buf_info->stream_id); in mm_channel_handle_metadata() 1490 __func__, buf_info->stream_id); in mm_channel_handle_metadata() 1497 metadata = (const cam_metadata_info_t *)buf_info->buf->buffer; in mm_channel_handle_metadata() 1554 mm_camera_buf_info_t *buf_info) in mm_channel_superbuf_comp_and_enqueue() argument 1565 if (buf_info->stream_id == queue->bundled_streams[buf_s_idx]) { in mm_channel_superbuf_comp_and_enqueue() 1570 CDBG_ERROR("%s: buf from stream (%d) not bundled", __func__, buf_info->stream_id); in mm_channel_superbuf_comp_and_enqueue() 1574 if (mm_channel_handle_metadata(ch_obj, queue, buf_info) < 0) { in mm_channel_superbuf_comp_and_enqueue() 1578 if (mm_channel_util_seq_comp_w_rollover(buf_info->frame_idx, in mm_channel_superbuf_comp_and_enqueue() [all …]
|
D | mm_camera_stream.c | 67 mm_camera_buf_info_t* buf_info, 116 mm_camera_buf_info_t *buf_info, in mm_stream_handle_rcvd_buf() argument 131 node->u.buf = *buf_info; in mm_stream_handle_rcvd_buf() 151 node->u.buf = *buf_info; in mm_stream_handle_rcvd_buf() 179 mm_camera_buf_info_t buf_info; in mm_stream_data_notify() local 195 memset(&buf_info, 0, sizeof(mm_camera_buf_info_t)); in mm_stream_data_notify() 196 rc = mm_stream_read_msm_frame(my_obj, &buf_info, my_obj->frame_offset.num_planes); in mm_stream_data_notify() 200 idx = buf_info.buf->buf_idx; in mm_stream_data_notify() 224 mm_stream_handle_rcvd_buf(my_obj, &buf_info, has_cb); in mm_stream_data_notify() 243 mm_camera_buf_info_t* buf_info = NULL; in mm_stream_dispatch_app_data() local [all …]
|
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_channel.c | 1761 mm_camera_buf_info_t *buf_info) in mm_channel_handle_metadata() argument 1767 buf_info->stream_id); in mm_channel_handle_metadata() 1783 __func__, buf_info->stream_id); in mm_channel_handle_metadata() 1789 __func__, buf_info->stream_id); in mm_channel_handle_metadata() 1796 metadata = (const metadata_buffer_t *)buf_info->buf->buffer; in mm_channel_handle_metadata() 1854 queue->expected_frame_id = buf_info->frame_idx + 1; in mm_channel_handle_metadata() 1935 if((buf_info->frame_idx >= queue->led_off_start_frame_id) in mm_channel_handle_metadata() 1944 __func__, buf_info->frame_idx, queue->expected_frame_id); in mm_channel_handle_metadata() 1969 mm_camera_buf_info_t *buf_info) in mm_channel_superbuf_comp_and_enqueue() argument 1980 if (buf_info->stream_id == queue->bundled_streams[buf_s_idx]) { in mm_channel_superbuf_comp_and_enqueue() [all …]
|
D | mm_camera_stream.c | 67 mm_camera_buf_info_t* buf_info, 116 mm_camera_buf_info_t *buf_info, in mm_stream_handle_rcvd_buf() argument 131 node->u.buf = *buf_info; in mm_stream_handle_rcvd_buf() 151 node->u.buf = *buf_info; in mm_stream_handle_rcvd_buf() 179 mm_camera_buf_info_t buf_info; in mm_stream_data_notify() local 195 memset(&buf_info, 0, sizeof(mm_camera_buf_info_t)); in mm_stream_data_notify() 196 rc = mm_stream_read_msm_frame(my_obj, &buf_info, my_obj->frame_offset.num_planes); in mm_stream_data_notify() 200 idx = buf_info.buf->buf_idx; in mm_stream_data_notify() 224 mm_stream_handle_rcvd_buf(my_obj, &buf_info, has_cb); in mm_stream_data_notify() 243 mm_camera_buf_info_t* buf_info = NULL; in mm_stream_dispatch_app_data() local [all …]
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-test/src/ |
D | mm_qcamera_pp.c | 57 repro_src_buf_info *buf_info = NULL; in mm_app_preview_pp_notify_cb() local 68 buf_info = (repro_src_buf_info *)mm_qcamera_queue_peek(&pme->repro_q); in mm_app_preview_pp_notify_cb() 69 if (NULL != buf_info) { in mm_app_preview_pp_notify_cb() 70 buf_info->ref_cnt--; in mm_app_preview_pp_notify_cb() 71 if (0 == buf_info->ref_cnt) { in mm_app_preview_pp_notify_cb() 73 pme->cam->ops->qbuf(pme->cam->camera_handle, pme->ch_id, buf_info->frame); in mm_app_preview_pp_notify_cb() 74 mm_stream_invalid_cache(pme, buf_info->frame); in mm_app_preview_pp_notify_cb() 75 buf_info->frame = NULL; in mm_app_preview_pp_notify_cb() 93 repro_src_buf_info *buf_info = NULL; in mm_app_video_pp_notify_cb() local 104 buf_info = (repro_src_buf_info *)mm_qcamera_queue_peek(&pme->repro_q); in mm_app_video_pp_notify_cb() [all …]
|
D | mm_qcamera_snapshot.c | 279 job.encode_job.encode_parm.buf_info.src_imgs.src_img_num = recvd_frame->num_bufs; in encodeData() 287 main_buf_info = &job.encode_job.encode_parm.buf_info.src_imgs.src_img[JPEG_SRC_IMAGE_TYPE_MAIN]; in encodeData() 318 … thumb_buf_info = &job.encode_job.encode_parm.buf_info.src_imgs.src_img[JPEG_SRC_IMAGE_TYPE_THUMB]; in encodeData() 342 job.encode_job.encode_parm.buf_info.sink_img.buf_len = pme->jpeg_buf.bufs[0].frame_len; in encodeData() 343 job.encode_job.encode_parm.buf_info.sink_img.buf_vaddr = pme->jpeg_buf.bufs[0].buffer; in encodeData() 344 job.encode_job.encode_parm.buf_info.sink_img.fd = pme->jpeg_buf.bufs[0].fd; in encodeData()
|
/device/moto/shamu/camera/QCamera/stack/mm-jpeg-interface/inc/ |
D | mm_jpeg_interface.h | 147 jpeg_image_buffer_config buf_info; member
|
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/ |
D | QualcommUsbCamera.cpp | 2848 mmJpegJob.encode_job.encode_parm.buf_info.src_imgs.src_img_num = 1; in encodeJpeg() 2849 mmJpegJob.encode_job.encode_parm.buf_info.src_imgs.is_video_frame = 0; in encodeJpeg() 2852 srcBuf = &mmJpegJob.encode_job.encode_parm.buf_info.src_imgs.src_img[0]; in encodeJpeg() 2874 mmJpegJob.encode_job.encode_parm.buf_info.sink_img.buf_vaddr = in encodeJpeg() 2876 mmJpegJob.encode_job.encode_parm.buf_info.sink_img.fd = 0; in encodeJpeg() 2878 mmJpegJob.encode_job.encode_parm.buf_info.sink_img.buf_len = in encodeJpeg()
|
/device/moto/shamu/camera/QCamera/HAL/core/src/ |
D | QCameraHWI.cpp | 553 jpg_job.encode_job.encode_parm.buf_info.src_imgs.src_img_num = src_img_num; in encodeData() 554 jpg_job.encode_job.encode_parm.buf_info.src_imgs.is_video_frame = FALSE; in encodeData() 579 …main_buf_info = &jpg_job.encode_job.encode_parm.buf_info.src_imgs.src_img[JPEG_SRC_IMAGE_TYPE_MAIN… in encodeData() 608 …thumb_buf_info = &jpg_job.encode_job.encode_parm.buf_info.src_imgs.src_img[JPEG_SRC_IMAGE_TYPE_THU… in encodeData() 635 jpg_job.encode_job.encode_parm.buf_info.src_imgs.is_video_frame = TRUE; in encodeData() 654 jpg_job.encode_job.encode_parm.buf_info.sink_img.buf_len = buf_len; in encodeData() 655 jpg_job.encode_job.encode_parm.buf_info.sink_img.buf_vaddr = (uint8_t *)malloc(buf_len); in encodeData() 656 if (NULL == jpg_job.encode_job.encode_parm.buf_info.sink_img.buf_vaddr) { in encodeData()
|