Home | History | Annotate | Download | only in src

Lines Matching defs:test_obj

440     mm_camera_test_obj_t *test_obj =
442 if (test_obj == NULL || test_obj->cam->camera_handle != camera_handle) {
464 mm_camera_test_obj_t *test_obj)
471 test_obj->cam = cam_app->hal_lib.mm_camera_open(cam_id);
472 if(test_obj->cam == NULL) {
477 CDBG("Open Camera id = %d handle = %d", cam_id, test_obj->cam->camera_handle);
482 rc = mm_app_alloc_bufs(&test_obj->cap_buf,
492 rc = test_obj->cam->ops->map_buf(test_obj->cam->camera_handle,
494 test_obj->cap_buf.mem_info.fd,
495 test_obj->cap_buf.mem_info.size);
504 rc = mm_app_alloc_bufs(&test_obj->parm_buf,
514 rc = test_obj->cam->ops->map_buf(test_obj->cam->camera_handle,
516 test_obj->parm_buf.mem_info.fd,
517 test_obj->parm_buf.mem_info.size);
523 rc = test_obj->cam->ops->register_event_notify(test_obj->cam->camera_handle,
525 test_obj);
532 rc = test_obj->cam->ops->query_capability(test_obj->cam->camera_handle);
539 memset(&test_obj->jpeg_ops, 0, sizeof(mm_jpeg_ops_t));
540 test_obj->jpeg_hdl = cam_app->hal_lib.jpeg_open(&test_obj->jpeg_ops);
541 if (test_obj->jpeg_hdl == 0) {
550 test_obj->cam->ops->unmap_buf(test_obj->cam->camera_handle,
553 mm_app_release_bufs(1, &test_obj->parm_buf);
555 test_obj->cam->ops->unmap_buf(test_obj->cam->camera_handle,
558 mm_app_release_bufs(1, &test_obj->cap_buf);
560 test_obj->cam->ops->close_camera(test_obj->cam->camera_handle);
561 test_obj->cam = NULL;
565 int mm_app_close(mm_camera_test_obj_t *test_obj)
569 if (test_obj == NULL || test_obj->cam ==NULL) {
575 rc = test_obj->cam->ops->unmap_buf(test_obj->cam->camera_handle,
582 rc = test_obj->cam->ops->unmap_buf(test_obj->cam->camera_handle,
588 rc = test_obj->cam->ops->close_camera(test_obj->cam->camera_handle);
592 test_obj->cam = NULL;
595 if (test_obj->jpeg_hdl && test_obj->jpeg_ops.close) {
596 rc = test_obj->jpeg_ops.close(test_obj->jpeg_hdl);
597 test_obj->jpeg_hdl = 0;
604 rc = mm_app_release_bufs(1, &test_obj->cap_buf);
610 rc = mm_app_release_bufs(1, &test_obj->parm_buf);
618 mm_camera_channel_t * mm_app_add_channel(mm_camera_test_obj_t *test_obj,
627 ch_id = test_obj->cam->ops->add_channel(test_obj->cam->camera_handle,
635 channel = &test_obj->channels[ch_type];
640 int mm_app_del_channel(mm_camera_test_obj_t *test_obj,
643 test_obj->cam->ops->delete_channel(test_obj->cam->camera_handle,
649 mm_camera_stream_t * mm_app_add_stream(mm_camera_test_obj_t *test_obj,
657 stream->s_id = test_obj->cam->ops->add_stream(test_obj->cam->camera_handle,
673 test_obj->cam->ops->delete_stream(test_obj->cam->camera_handle,
681 rc = test_obj->cam->ops->map_stream_buf(test_obj->cam->camera_handle,
692 test_obj->cam->ops->delete_stream(test_obj->cam->camera_handle,
702 int mm_app_del_stream(mm_camera_test_obj_t *test_obj,
706 test_obj->cam->ops->unmap_stream_buf(test_obj->cam->camera_handle,
713 test_obj->cam->ops->delete_stream(test_obj->cam->camera_handle,
720 mm_camera_channel_t *mm_app_get_channel_by_type(mm_camera_test_obj_t *test_obj,
723 return &test_obj->channels[ch_type];
726 int mm_app_config_stream(mm_camera_test_obj_t *test_obj,
731 return test_obj->cam->ops->config_stream(test_obj->cam->camera_handle,
737 int mm_app_start_channel(mm_camera_test_obj_t *test_obj,
740 return test_obj->cam->ops->start_channel(test_obj->cam->camera_handle,
744 int mm_app_stop_channel(mm_camera_test_obj_t *test_obj,
747 return test_obj->cam->ops->stop_channel(test_obj->cam->camera_handle,