/device/google/marlin/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_unit_test.c | 47 mm_camera_test_obj_t test_obj; in mm_app_tc_open_close() local 51 memset(&test_obj, 0, sizeof(mm_camera_test_obj_t)); in mm_app_tc_open_close() 52 rc = mm_app_open(cam_app, i, &test_obj); in mm_app_tc_open_close() 59 rc = mm_app_close(&test_obj); in mm_app_tc_open_close() 79 mm_camera_test_obj_t test_obj; in mm_app_tc_start_stop_preview() local 83 memset(&test_obj, 0, sizeof(mm_camera_test_obj_t)); in mm_app_tc_start_stop_preview() 84 rc = mm_app_open(cam_app, i, &test_obj); in mm_app_tc_start_stop_preview() 92 rc = mm_app_start_preview(&test_obj); in mm_app_tc_start_stop_preview() 99 rc = mm_app_stop_preview(&test_obj); in mm_app_tc_start_stop_preview() 107 rc |= mm_app_close(&test_obj); in mm_app_tc_start_stop_preview() [all …]
|
D | mm_qcamera_app.c | 480 mm_camera_test_obj_t *test_obj = in notify_evt_cb() local 482 if (test_obj == NULL || test_obj->cam->camera_handle != camera_handle) { in notify_evt_cb() 504 mm_camera_test_obj_t *test_obj) in mm_app_open() argument 511 rc = cam_app->hal_lib.mm_camera_open((uint8_t)cam_id, &(test_obj->cam)); in mm_app_open() 512 if(rc || !test_obj->cam) { in mm_app_open() 513 LOGE("dev open error. rc = %d, vtbl = %p\n", rc, test_obj->cam); in mm_app_open() 517 LOGD("Open Camera id = %d handle = %d", cam_id, test_obj->cam->camera_handle); in mm_app_open() 523 rc = mm_app_alloc_bufs(&test_obj->cap_buf, in mm_app_open() 534 rc = test_obj->cam->ops->map_buf(test_obj->cam->camera_handle, in mm_app_open() 536 test_obj->cap_buf.mem_info.fd, in mm_app_open() [all …]
|
D | mm_qcamera_video.c | 57 mm_camera_stream_t * mm_app_add_video_stream(mm_camera_test_obj_t *test_obj, in mm_app_add_video_stream() argument 65 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); in mm_app_add_video_stream() 67 stream = mm_app_add_stream(test_obj, channel); in mm_app_add_video_stream() 93 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); in mm_app_add_video_stream() 102 mm_camera_channel_t * mm_app_add_video_channel(mm_camera_test_obj_t *test_obj) in mm_app_add_video_channel() argument 107 channel = mm_app_add_channel(test_obj, in mm_app_add_video_channel() 117 stream = mm_app_add_video_stream(test_obj, in mm_app_add_video_channel() 120 (void *)test_obj, in mm_app_add_video_channel() 124 mm_app_del_channel(test_obj, channel); in mm_app_add_video_channel() 131 int mm_app_start_record_preview(mm_camera_test_obj_t *test_obj) in mm_app_start_record_preview() argument [all …]
|
D | mm_qcamera_preview.c | 518 mm_camera_stream_t * mm_app_add_metadata_stream(mm_camera_test_obj_t *test_obj, in mm_app_add_metadata_stream() argument 526 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); in mm_app_add_metadata_stream() 527 stream = mm_app_add_stream(test_obj, channel); in mm_app_add_metadata_stream() 553 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); in mm_app_add_metadata_stream() 563 const mm_camera_test_obj_t *test_obj, in mm_app_get_analysis_stream_dim() argument 566 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); in mm_app_get_analysis_stream_dim() 595 mm_camera_stream_t * mm_app_add_analysis_stream(mm_camera_test_obj_t *test_obj, in mm_app_add_analysis_stream() argument 603 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); in mm_app_add_analysis_stream() 608 stream = mm_app_add_stream(test_obj, channel); in mm_app_add_analysis_stream() 614 if ((test_obj->preview_resolution.user_input_display_width == 0) || in mm_app_add_analysis_stream() [all …]
|
D | mm_qcamera_reprocess.c | 107 mm_camera_stream_t * mm_app_add_reprocess_stream_from_source(mm_camera_test_obj_t *test_obj, in mm_app_add_reprocess_stream_from_source() argument 120 if ( ( NULL == test_obj ) || in mm_app_add_reprocess_stream_from_source() 127 cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); in mm_app_add_reprocess_stream_from_source() 129 stream = mm_app_add_stream(test_obj, channel); in mm_app_add_reprocess_stream_from_source() 161 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); in mm_app_add_reprocess_stream_from_source() 170 mm_camera_channel_t * mm_app_add_reprocess_channel(mm_camera_test_obj_t *test_obj, in mm_app_add_reprocess_channel() argument 181 channel = mm_app_add_channel(test_obj, in mm_app_add_reprocess_channel() 195 cam_capability_t *caps = ( cam_capability_t * ) ( test_obj->cap_buf.buf.buffer ); in mm_app_add_reprocess_channel() 198 pp_config.sharpness = test_obj->reproc_sharpness; in mm_app_add_reprocess_channel() 201 if (test_obj->reproc_wnr.denoise_enable) { in mm_app_add_reprocess_channel() [all …]
|
D | mm_qcamera_snapshot.c | 80 int encodeData(mm_camera_test_obj_t *test_obj, mm_camera_super_buf_t* recvd_frame, in encodeData() argument 83 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); in encodeData() 89 test_obj->current_job_frames = in encodeData() 91 if (!test_obj->current_job_frames) { in encodeData() 95 *(test_obj->current_job_frames) = *recvd_frame; in encodeData() 99 job.encode_job.session_id = test_obj->current_jpeg_sess_id; in encodeData() 120 if (test_obj->metadata != NULL) { in encodeData() 121 job.encode_job.p_metadata = test_obj->metadata; in encodeData() 126 rc = test_obj->jpeg_ops.start_job(&job, &test_obj->current_job_id); in encodeData() 128 free(test_obj->current_job_frames); in encodeData() [all …]
|
D | mm_qcamera_rdi.c | 92 mm_camera_stream_t * mm_app_add_rdi_stream(mm_camera_test_obj_t *test_obj, in mm_app_add_rdi_stream() argument 102 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); in mm_app_add_rdi_stream() 139 rc = setmetainfoCommand(test_obj, &abc); in mm_app_add_rdi_stream() 144 stream = mm_app_add_stream(test_obj, channel); in mm_app_add_rdi_stream() 178 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); in mm_app_add_rdi_stream() 193 mm_camera_stream_t * mm_app_add_rdi_snapshot_stream(mm_camera_test_obj_t *test_obj, in mm_app_add_rdi_snapshot_stream() argument 202 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); in mm_app_add_rdi_snapshot_stream() 204 stream = mm_app_add_stream(test_obj, channel); in mm_app_add_rdi_snapshot_stream() 235 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); in mm_app_add_rdi_snapshot_stream() 244 mm_camera_channel_t * mm_app_add_rdi_channel(mm_camera_test_obj_t *test_obj, uint8_t num_burst) in mm_app_add_rdi_channel() argument [all …]
|
D | mm_qcamera_main_menu.c | 1106 int take_jpeg_snapshot(mm_camera_test_obj_t *test_obj, int is_burst_mode) in take_jpeg_snapshot() argument 1109 int rc = mm_app_take_picture (test_obj, (uint8_t)is_burst_mode); in take_jpeg_snapshot() 1680 mm_camera_test_obj_t test_obj; in submain() local 1681 memset(&test_obj, 0, sizeof(mm_camera_test_obj_t)); in submain()
|
/device/google/marlin/camera/QCamera2/stack/mm-camera-test/inc/ |
D | mm_qcamera_app.h | 335 mm_camera_test_obj_t test_obj; member 351 extern int setmetainfoCommand(mm_camera_test_obj_t *test_obj, 386 mm_camera_test_obj_t *test_obj); 387 extern int mm_app_close(mm_camera_test_obj_t *test_obj); 389 mm_camera_test_obj_t *test_obj, 394 extern int mm_app_del_channel(mm_camera_test_obj_t *test_obj, 396 extern mm_camera_stream_t * mm_app_add_stream(mm_camera_test_obj_t *test_obj, 398 extern int mm_app_del_stream(mm_camera_test_obj_t *test_obj, 401 extern int mm_app_config_stream(mm_camera_test_obj_t *test_obj, 405 extern int mm_app_start_channel(mm_camera_test_obj_t *test_obj, [all …]
|