/hardware/qcom/camera/QCamera2/stack/mm-camera-test/src/ |
mm_qcamera_unit_test.c | 45 mm_camera_test_obj_t test_obj; local 49 memset(&test_obj, 0, sizeof(mm_camera_test_obj_t)); 50 rc = mm_app_open(cam_app, i, &test_obj); 57 rc = mm_app_close(&test_obj); 77 mm_camera_test_obj_t test_obj; local 81 memset(&test_obj, 0, sizeof(mm_camera_test_obj_t)); 82 rc = mm_app_open(cam_app, i, &test_obj); 90 rc = mm_app_start_preview(&test_obj); 97 rc = mm_app_stop_preview(&test_obj); 105 rc |= mm_app_close(&test_obj); 125 mm_camera_test_obj_t test_obj; local 173 mm_camera_test_obj_t test_obj; local 221 mm_camera_test_obj_t test_obj; local 296 mm_camera_test_obj_t test_obj; local 395 mm_camera_test_obj_t test_obj; local 448 mm_camera_test_obj_t test_obj; local 501 mm_camera_test_obj_t test_obj; local 554 mm_camera_test_obj_t test_obj; local 605 mm_camera_test_obj_t test_obj; local [all...] |
mm_qcamera_app.c | 476 mm_camera_test_obj_t *test_obj = local 478 if (test_obj == NULL || test_obj->cam->camera_handle != camera_handle) { 500 mm_camera_test_obj_t *test_obj) 507 rc = cam_app->hal_lib.mm_camera_open((uint8_t)cam_id, &(test_obj->cam)); 508 if(rc || !test_obj->cam) { 509 LOGE("dev open error. rc = %d, vtbl = %p\n", rc, test_obj->cam); 513 LOGD("Open Camera id = %d handle = %d", cam_id, test_obj->cam->camera_handle); 519 rc = mm_app_alloc_bufs(&test_obj->cap_buf, 530 rc = test_obj->cam->ops->map_buf(test_obj->cam->camera_handle [all...] |
mm_qcamera_video.c | 57 mm_camera_stream_t * mm_app_add_video_stream(mm_camera_test_obj_t *test_obj, 65 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 67 stream = mm_app_add_stream(test_obj, channel); 93 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); 102 mm_camera_channel_t * mm_app_add_video_channel(mm_camera_test_obj_t *test_obj) 107 channel = mm_app_add_channel(test_obj, 117 stream = mm_app_add_video_stream(test_obj, 120 (void *)test_obj, 124 mm_app_del_channel(test_obj, channel); 131 int mm_app_start_record_preview(mm_camera_test_obj_t *test_obj) [all...] |
mm_qcamera_preview.c | 516 mm_camera_stream_t * mm_app_add_metadata_stream(mm_camera_test_obj_t *test_obj, 524 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 525 stream = mm_app_add_stream(test_obj, channel); 551 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); 561 const mm_camera_test_obj_t *test_obj, 564 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 592 mm_camera_stream_t * mm_app_add_analysis_stream(mm_camera_test_obj_t *test_obj, 600 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 605 stream = mm_app_add_stream(test_obj, channel); 611 if ((test_obj->preview_resolution.user_input_display_width == 0) | [all...] |
mm_qcamera_reprocess.c | 107 mm_camera_stream_t * mm_app_add_reprocess_stream_from_source(mm_camera_test_obj_t *test_obj, 120 if ( ( NULL == test_obj ) || 127 cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 129 stream = mm_app_add_stream(test_obj, channel); 161 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); 170 mm_camera_channel_t * mm_app_add_reprocess_channel(mm_camera_test_obj_t *test_obj, 181 channel = mm_app_add_channel(test_obj, 195 cam_capability_t *caps = ( cam_capability_t * ) ( test_obj->cap_buf.buf.buffer ); 198 pp_config.sharpness = test_obj->reproc_sharpness; 201 if (test_obj->reproc_wnr.denoise_enable) [all...] |
/device/huawei/angler/camera/QCamera2/stack/mm-camera-test/src/ |
mm_qcamera_video.c | 56 mm_camera_stream_t * mm_app_add_video_stream(mm_camera_test_obj_t *test_obj, 64 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 66 stream = mm_app_add_stream(test_obj, channel); 91 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); 100 mm_camera_channel_t * mm_app_add_video_channel(mm_camera_test_obj_t *test_obj) 105 channel = mm_app_add_channel(test_obj, 115 stream = mm_app_add_video_stream(test_obj, 118 (void *)test_obj, 122 mm_app_del_channel(test_obj, channel); 129 int mm_app_start_record_preview(mm_camera_test_obj_t *test_obj) [all...] |
mm_qcamera_preview.c | 387 mm_camera_stream_t * mm_app_add_metadata_stream(mm_camera_test_obj_t *test_obj, 395 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 397 stream = mm_app_add_stream(test_obj, channel); 422 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); 431 mm_camera_stream_t * mm_app_add_preview_stream(mm_camera_test_obj_t *test_obj, 439 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 441 stream = mm_app_add_stream(test_obj, channel); 462 if ((test_obj->preview_resolution.user_input_display_width == 0) || 463 ( test_obj->preview_resolution.user_input_display_height == 0)) { 467 stream->s_config.stream_info->dim.width = test_obj->preview_resolution.user_input_display_width [all...] |
mm_qcamera_unit_test.c | 44 mm_camera_test_obj_t test_obj; local 48 memset(&test_obj, 0, sizeof(mm_camera_test_obj_t)); 49 rc = mm_app_open(cam_app, i, &test_obj); 56 rc = mm_app_close(&test_obj); 76 mm_camera_test_obj_t test_obj; local 80 memset(&test_obj, 0, sizeof(mm_camera_test_obj_t)); 81 rc = mm_app_open(cam_app, i, &test_obj); 89 rc = mm_app_start_preview(&test_obj); 96 rc = mm_app_stop_preview(&test_obj); 104 rc |= mm_app_close(&test_obj); 124 mm_camera_test_obj_t test_obj; local 172 mm_camera_test_obj_t test_obj; local 220 mm_camera_test_obj_t test_obj; local 295 mm_camera_test_obj_t test_obj; local 394 mm_camera_test_obj_t test_obj; local 447 mm_camera_test_obj_t test_obj; local 500 mm_camera_test_obj_t test_obj; local 553 mm_camera_test_obj_t test_obj; local 604 mm_camera_test_obj_t test_obj; local [all...] |
mm_qcamera_app.c | 471 mm_camera_test_obj_t *test_obj = local 473 if (test_obj == NULL || test_obj->cam->camera_handle != camera_handle) { 495 mm_camera_test_obj_t *test_obj) 502 rc = cam_app->hal_lib.mm_camera_open((uint8_t)cam_id, &(test_obj->cam)); 504 CDBG_ERROR("%s:dev open error. rc = %d, vtbl = %p\n", __func__, rc, test_obj->cam); 508 CDBG("Open Camera id = %d handle = %d", cam_id, test_obj->cam->camera_handle); 514 rc = mm_app_alloc_bufs(&test_obj->cap_buf, 525 rc = test_obj->cam->ops->map_buf(test_obj->cam->camera_handle [all...] |
mm_qcamera_reprocess.c | 106 mm_camera_stream_t * mm_app_add_reprocess_stream_from_source(mm_camera_test_obj_t *test_obj, 119 if ( ( NULL == test_obj ) || 126 cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 128 stream = mm_app_add_stream(test_obj, channel); 159 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); 168 mm_camera_channel_t * mm_app_add_reprocess_channel(mm_camera_test_obj_t *test_obj, 179 channel = mm_app_add_channel(test_obj, 193 cam_capability_t *caps = ( cam_capability_t * ) ( test_obj->cap_buf.buf.buffer ); 196 pp_config.sharpness = test_obj->reproc_sharpness; 199 if (test_obj->reproc_wnr.denoise_enable) [all...] |
mm_qcamera_snapshot.c | 79 int encodeData(mm_camera_test_obj_t *test_obj, mm_camera_super_buf_t* recvd_frame, 82 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 88 test_obj->current_job_frames = 90 if (!test_obj->current_job_frames) { 94 *(test_obj->current_job_frames) = *recvd_frame; 98 job.encode_job.session_id = test_obj->current_jpeg_sess_id; 119 if (test_obj->metadata != NULL) { 120 job.encode_job.p_metadata = test_obj->metadata; 125 rc = test_obj->jpeg_ops.start_job(&job, &test_obj->current_job_id) [all...] |
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-test/src/ |
mm_qcamera_video.c | 56 mm_camera_stream_t * mm_app_add_video_stream(mm_camera_test_obj_t *test_obj, 64 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 66 stream = mm_app_add_stream(test_obj, channel); 91 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); 100 mm_camera_channel_t * mm_app_add_video_channel(mm_camera_test_obj_t *test_obj) 105 channel = mm_app_add_channel(test_obj, 115 stream = mm_app_add_video_stream(test_obj, 118 (void *)test_obj, 122 mm_app_del_channel(test_obj, channel); 129 int mm_app_start_record_preview(mm_camera_test_obj_t *test_obj) [all...] |
mm_qcamera_preview.c | 387 mm_camera_stream_t * mm_app_add_metadata_stream(mm_camera_test_obj_t *test_obj, 395 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 397 stream = mm_app_add_stream(test_obj, channel); 422 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); 431 mm_camera_stream_t * mm_app_add_preview_stream(mm_camera_test_obj_t *test_obj, 439 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 441 stream = mm_app_add_stream(test_obj, channel); 462 if ((test_obj->preview_resolution.user_input_display_width == 0) || 463 ( test_obj->preview_resolution.user_input_display_height == 0)) { 467 stream->s_config.stream_info->dim.width = test_obj->preview_resolution.user_input_display_width [all...] |
mm_qcamera_unit_test.c | 44 mm_camera_test_obj_t test_obj; local 48 memset(&test_obj, 0, sizeof(mm_camera_test_obj_t)); 49 rc = mm_app_open(cam_app, i, &test_obj); 56 rc = mm_app_close(&test_obj); 76 mm_camera_test_obj_t test_obj; local 80 memset(&test_obj, 0, sizeof(mm_camera_test_obj_t)); 81 rc = mm_app_open(cam_app, i, &test_obj); 89 rc = mm_app_start_preview(&test_obj); 96 rc = mm_app_stop_preview(&test_obj); 104 rc |= mm_app_close(&test_obj); 124 mm_camera_test_obj_t test_obj; local 172 mm_camera_test_obj_t test_obj; local 220 mm_camera_test_obj_t test_obj; local 295 mm_camera_test_obj_t test_obj; local 394 mm_camera_test_obj_t test_obj; local 447 mm_camera_test_obj_t test_obj; local 500 mm_camera_test_obj_t test_obj; local 553 mm_camera_test_obj_t test_obj; local 604 mm_camera_test_obj_t test_obj; local [all...] |
mm_qcamera_app.c | 471 mm_camera_test_obj_t *test_obj = local 473 if (test_obj == NULL || test_obj->cam->camera_handle != camera_handle) { 495 mm_camera_test_obj_t *test_obj) 502 rc = cam_app->hal_lib.mm_camera_open((uint8_t)cam_id, &(test_obj->cam)); 504 CDBG_ERROR("%s:dev open error. rc = %d, vtbl = %p\n", __func__, rc, test_obj->cam); 508 CDBG("Open Camera id = %d handle = %d", cam_id, test_obj->cam->camera_handle); 514 rc = mm_app_alloc_bufs(&test_obj->cap_buf, 525 rc = test_obj->cam->ops->map_buf(test_obj->cam->camera_handle [all...] |
mm_qcamera_reprocess.c | 106 mm_camera_stream_t * mm_app_add_reprocess_stream_from_source(mm_camera_test_obj_t *test_obj, 119 if ( ( NULL == test_obj ) || 126 cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 128 stream = mm_app_add_stream(test_obj, channel); 159 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); 168 mm_camera_channel_t * mm_app_add_reprocess_channel(mm_camera_test_obj_t *test_obj, 179 channel = mm_app_add_channel(test_obj, 193 cam_capability_t *caps = ( cam_capability_t * ) ( test_obj->cap_buf.buf.buffer ); 196 pp_config.sharpness = test_obj->reproc_sharpness; 199 if (test_obj->reproc_wnr.denoise_enable) [all...] |
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/src/ |
mm_qcamera_video.c | 56 mm_camera_stream_t * mm_app_add_video_stream(mm_camera_test_obj_t *test_obj, 64 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 66 stream = mm_app_add_stream(test_obj, channel); 91 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); 100 mm_camera_channel_t * mm_app_add_video_channel(mm_camera_test_obj_t *test_obj) 105 channel = mm_app_add_channel(test_obj, 115 stream = mm_app_add_video_stream(test_obj, 118 (void *)test_obj, 122 mm_app_del_channel(test_obj, channel); 129 int mm_app_start_record_preview(mm_camera_test_obj_t *test_obj) [all...] |
mm_qcamera_preview.c | 361 mm_camera_stream_t * mm_app_add_metadata_stream(mm_camera_test_obj_t *test_obj, 369 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 371 stream = mm_app_add_stream(test_obj, channel); 396 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); 405 mm_camera_stream_t * mm_app_add_preview_stream(mm_camera_test_obj_t *test_obj, 413 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 415 stream = mm_app_add_stream(test_obj, channel); 436 if ((test_obj->preview_resolution.user_input_display_width == 0) || 437 ( test_obj->preview_resolution.user_input_display_height == 0)) { 441 stream->s_config.stream_info->dim.width = test_obj->preview_resolution.user_input_display_width [all...] |
mm_qcamera_unit_test.c | 44 mm_camera_test_obj_t test_obj; local 48 memset(&test_obj, 0, sizeof(mm_camera_test_obj_t)); 49 rc = mm_app_open(cam_app, i, &test_obj); 56 rc = mm_app_close(&test_obj); 76 mm_camera_test_obj_t test_obj; local 80 memset(&test_obj, 0, sizeof(mm_camera_test_obj_t)); 81 rc = mm_app_open(cam_app, i, &test_obj); 89 rc = mm_app_start_preview(&test_obj); 96 rc = mm_app_stop_preview(&test_obj); 104 rc |= mm_app_close(&test_obj); 124 mm_camera_test_obj_t test_obj; local 172 mm_camera_test_obj_t test_obj; local 220 mm_camera_test_obj_t test_obj; local 295 mm_camera_test_obj_t test_obj; local 394 mm_camera_test_obj_t test_obj; local 447 mm_camera_test_obj_t test_obj; local 500 mm_camera_test_obj_t test_obj; local 553 mm_camera_test_obj_t test_obj; local 604 mm_camera_test_obj_t test_obj; local [all...] |
mm_qcamera_app.c | 460 mm_camera_test_obj_t *test_obj = local 462 if (test_obj == NULL || test_obj->cam->camera_handle != camera_handle) { 484 mm_camera_test_obj_t *test_obj) 491 test_obj->cam = cam_app->hal_lib.mm_camera_open(cam_id); 492 if(test_obj->cam == NULL) { 497 CDBG("Open Camera id = %d handle = %d", cam_id, test_obj->cam->camera_handle); 503 rc = mm_app_alloc_bufs(&test_obj->cap_buf, 514 rc = test_obj->cam->ops->map_buf(test_obj->cam->camera_handle [all...] |
mm_qcamera_reprocess.c | 106 mm_camera_stream_t * mm_app_add_reprocess_stream_from_source(mm_camera_test_obj_t *test_obj, 119 if ( ( NULL == test_obj ) || 126 cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); 128 stream = mm_app_add_stream(test_obj, channel); 159 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); 168 mm_camera_channel_t * mm_app_add_reprocess_channel(mm_camera_test_obj_t *test_obj, 179 channel = mm_app_add_channel(test_obj, 193 cam_capability_t *caps = ( cam_capability_t * ) ( test_obj->cap_buf.buf.buffer ); 196 pp_config.sharpness = test_obj->reproc_sharpness; 199 if (test_obj->reproc_wnr.denoise_enable) [all...] |
/hardware/qcom/camera/QCamera2/stack/mm-camera-test/inc/ |
mm_qcamera_app.h | 335 mm_camera_test_obj_t test_obj; member in struct:__anon32165 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...] |
/device/huawei/angler/camera/QCamera2/stack/mm-camera-test/inc/ |
mm_qcamera_app.h | 335 mm_camera_test_obj_t test_obj; member in struct:__anon3597 383 mm_camera_test_obj_t *test_obj); 384 extern int mm_app_close(mm_camera_test_obj_t *test_obj); 386 mm_camera_test_obj_t *test_obj, 391 extern int mm_app_del_channel(mm_camera_test_obj_t *test_obj, 393 extern mm_camera_stream_t * mm_app_add_stream(mm_camera_test_obj_t *test_obj, 395 extern int mm_app_del_stream(mm_camera_test_obj_t *test_obj, 398 extern int mm_app_config_stream(mm_camera_test_obj_t *test_obj, 402 extern int mm_app_start_channel(mm_camera_test_obj_t *test_obj, 404 extern int mm_app_stop_channel(mm_camera_test_obj_t *test_obj, [all...] |
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-test/inc/ |
mm_qcamera_app.h | 335 mm_camera_test_obj_t test_obj; member in struct:__anon4508 383 mm_camera_test_obj_t *test_obj); 384 extern int mm_app_close(mm_camera_test_obj_t *test_obj); 386 mm_camera_test_obj_t *test_obj, 391 extern int mm_app_del_channel(mm_camera_test_obj_t *test_obj, 393 extern mm_camera_stream_t * mm_app_add_stream(mm_camera_test_obj_t *test_obj, 395 extern int mm_app_del_stream(mm_camera_test_obj_t *test_obj, 398 extern int mm_app_config_stream(mm_camera_test_obj_t *test_obj, 402 extern int mm_app_start_channel(mm_camera_test_obj_t *test_obj, 404 extern int mm_app_stop_channel(mm_camera_test_obj_t *test_obj, [all...] |
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/inc/ |
mm_qcamera_app.h | 335 mm_camera_test_obj_t test_obj; member in struct:__anon5649 384 mm_camera_test_obj_t *test_obj); 385 extern int mm_app_close(mm_camera_test_obj_t *test_obj); 387 mm_camera_test_obj_t *test_obj, 392 extern int mm_app_del_channel(mm_camera_test_obj_t *test_obj, 394 extern mm_camera_stream_t * mm_app_add_stream(mm_camera_test_obj_t *test_obj, 396 extern int mm_app_del_stream(mm_camera_test_obj_t *test_obj, 399 extern int mm_app_config_stream(mm_camera_test_obj_t *test_obj, 403 extern int mm_app_start_channel(mm_camera_test_obj_t *test_obj, 405 extern int mm_app_stop_channel(mm_camera_test_obj_t *test_obj, [all...] |