Lines Matching defs:my_cam_app
83 int mm_app_load_hal(mm_camera_app_t *my_cam_app)
85 memset(&my_cam_app->hal_lib, 0, sizeof(hal_interface_lib_t));
86 my_cam_app->hal_lib.ptr = dlopen("libmmcamera_interface.so", RTLD_NOW);
87 my_cam_app->hal_lib.ptr_jpeg = dlopen("libmmjpeg_interface.so", RTLD_NOW);
88 if (!my_cam_app->hal_lib.ptr || !my_cam_app->hal_lib.ptr_jpeg) {
92 *(void **)&(my_cam_app->hal_lib.get_num_of_cameras) =
93 dlsym(my_cam_app->hal_lib.ptr, "get_num_of_cameras");
94 *(void **)&(my_cam_app->hal_lib.mm_camera_open) =
95 dlsym(my_cam_app->hal_lib.ptr, "camera_open");
96 *(void **)&(my_cam_app->hal_lib.jpeg_open) =
97 dlsym(my_cam_app->hal_lib.ptr_jpeg, "jpeg_open");
99 if (my_cam_app->hal_lib.get_num_of_cameras == NULL ||
100 my_cam_app->hal_lib.mm_camera_open == NULL ||
101 my_cam_app->hal_lib.jpeg_open == NULL) {
106 my_cam_app->num_cameras = my_cam_app->hal_lib.get_num_of_cameras();
107 CDBG("%s: num_cameras = %d\n", __func__, my_cam_app->num_cameras);
1886 mm_camera_app_t my_cam_app;
1889 memset(&my_cam_app, 0, sizeof(mm_camera_app_t));
1891 rc = mm_app_load_hal(&my_cam_app);
1898 rc = mm_app_unit_test_entry(&my_cam_app);
1904 rc = mm_app_dual_test_entry(&my_cam_app);