1.camframe.c
(1)vendor/com/proprietary/mm-camera/app/appslib
pthread_create(&frame_thread, NULL, cam_frame, (void *)parms); //create a thread
(2) pthread_create(&frame_v4l2_thread, NULL, cam_frame_v4l2, (void *)parms); //another thread
2.cam_display.c
vendor/qcom/proprietary/mm-camera/apps/appslib
(1) pthread_create(&cam_frame_fb_thread_id, NULL, camframe_fb_thread, NULL);
3.config.c
vendor/qcom/proprietary/mm-camera/targets/tgtcommon/config
(1) rc = pthread_create(&cam_conf_thread_id, NULL, cam_conf_v4l2, arg);
4.face_detection.c
vendor/qcom/proprietary/mm-camera/targets/tgtcommon/postproc/facial
(1) rc = pthread_create(&p_ctrl->thread, NULL, fd_thread, (void*)p_ctrl); //face detection thread
5.frameproc.c
vendor/qcom/proprietary/mm-camera/server/frameproc
(1) return pthread_create(&frame_proc_thread, NULL, frame_processing, (void *)&handle1);
6.liveshot.c
vendor/qcom/proprietary/mm-camera/apps/appslib
int rc = pthread_create(&liveshot_thread_id, NULL, liveshot_thread, NULL); //live shot thread
7.mctl.c
vendor/qcom/proprietary/mm-camera/server/core/mctl
rc = pthread_create(&pme->cam_mctl_thread_id, NULL, cam_mctl_thread, pme);
8.mctl_app.c
vendor/qcom/proprietary/mm-camera/server/core/mctl
rc = pthread_create(&poll_cb->data.pid, NULL, mctl_pp_poll_thread, (void *)poll_cb);
9.mm_camera_poll_thread.c
hardware/qcom/camera/mm-camera-interface
pthread_create(&poll_cb->data.pid, NULL, mm_camera_poll_thread, (void *)poll_cb);
10.mm_qcamera_display.c
vendor/qcom/proprietary/mm-camera/apps/mm-qcamera-app
pthread_create(&cam_frame_fb_thread_id, NULL, camframe_fb_thread, NULL);
11.QCameraHWI_Still.cpp
hardware/qcom/camera
pthread_create(&mSnapshotThread,&attr, snapshot_thread, (void *)this);
12.QualcommCameraHardware.cpp
hardware/qcom/camera
(1) if( (pthread_create(&mDeviceOpenThread, NULL, openCamera, NULL)) != 0)
(2)mPreviewThreadRunning = !pthread_create(&mPreviewThread,
&pattr,
preview_thread,
(void*)NULL);
(3) mFrameThreadRunning = !pthread_create(&mFrameThread,
&attr,
frame_thread,
&camframeParams);
(4) !pthread_create(&thr, &attr,
auto_focus_thread, NULL);
(5) mSnapshotThreadRunning = !pthread_create(&mSnapshotThread,
&attr,
snapshot_thread,
NULL);
(6) mVideoThreadRunning = pthread_create(&mVideoThread,
&attr,
video_thread,
NULL);
13.snapshot.c
vendor/qcom/proprietary/mm-camera/apps/applib
if ((pthread_create(&g_snapshot_context->zsl_info.zsl_thread_id, NULL,
zsl_snapshot_thread_func, (void *)g_snapshot_context)) != 0)
14.wavelet_denoise.c
vendor/qcom/proprietary/mm-camera/targets/tgtcommon/postproc/wavelet_denoise
rc = pthread_create(&pp_thread, NULL, wavelet_denoising_segment,
(void *)(&dwtYSegmentStruct));