Lines Matching defs:my_cam_app
82 int mm_app_load_hal(mm_camera_app_t *my_cam_app)
84 memset(&my_cam_app->hal_lib, 0, sizeof(hal_interface_lib_t));
85 my_cam_app->hal_lib.ptr = dlopen("libmmcamera_interface.so", RTLD_NOW);
86 my_cam_app->hal_lib.ptr_jpeg = dlopen("libmmjpeg_interface.so", RTLD_NOW);
87 if (!my_cam_app->hal_lib.ptr || !my_cam_app->hal_lib.ptr_jpeg) {
91 *(void **)&(my_cam_app->hal_lib.get_num_of_cameras) =
92 dlsym(my_cam_app->hal_lib.ptr, "get_num_of_cameras");
93 *(void **)&(my_cam_app->hal_lib.mm_camera_open) =
94 dlsym(my_cam_app->hal_lib.ptr, "camera_open");
95 *(void **)&(my_cam_app->hal_lib.jpeg_open) =
96 dlsym(my_cam_app->hal_lib.ptr_jpeg, "jpeg_open");
98 if (my_cam_app->hal_lib.get_num_of_cameras == NULL ||
99 my_cam_app->hal_lib.mm_camera_open == NULL ||
100 my_cam_app->hal_lib.jpeg_open == NULL) {
105 my_cam_app->num_cameras = my_cam_app->hal_lib.get_num_of_cameras();
106 CDBG("%s: num_cameras = %d\n", __func__, my_cam_app->num_cameras);
757 mm_camera_app_t my_cam_app;
778 memset(&my_cam_app, 0, sizeof(mm_camera_app_t));
779 if((mm_app_load_hal(&my_cam_app) != MM_CAMERA_OK)) {
786 rc = mm_app_unit_test_entry(&my_cam_app);
793 rc = mm_app_dual_test_entry(&my_cam_app);