Home
last modified time | relevance | path

Searched refs:pme (Results 1 – 25 of 38) sorted by relevance

12

/device/google/marlin/camera/QCamera2/HAL/
DQCamera2HWICallbacks.cpp74 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in zsl_channel_cb() local
75 if (pme == NULL || in zsl_channel_cb()
76 pme->mCameraHandle == NULL || in zsl_channel_cb()
77 pme->mCameraHandle->camera_handle != recvd_frame->camera_handle){ in zsl_channel_cb()
82 QCameraChannel *pChannel = pme->m_channels[QCAMERA_CH_TYPE_ZSL]; in zsl_channel_cb()
89 if(pme->mParameters.isSceneSelectionEnabled() && in zsl_channel_cb()
90 !pme->m_stateMachine.isCaptureRunning()) { in zsl_channel_cb()
91 pme->selectScene(pChannel, recvd_frame); in zsl_channel_cb()
97 recvd_frame->bUnlockAEC, pme->m_bLedAfAecLock); in zsl_channel_cb()
98 if(recvd_frame->bUnlockAEC && pme->m_bLedAfAecLock) { in zsl_channel_cb()
[all …]
DQCameraPostProc.cpp1497 QCameraPostProcessor *pme = (QCameraPostProcessor *)user_data; in releasePPInputData() local
1498 if (NULL != pme) { in releasePPInputData()
1501 pme->releaseSuperBuf(pp_job->src_frame); in releasePPInputData()
1508 pme->releaseSuperBuf(pp_job->src_reproc_frame); in releasePPInputData()
1529 QCameraPostProcessor *pme = (QCameraPostProcessor *)user_data; in releaseJpegData() local
1530 if (NULL != pme) { in releaseJpegData()
1531 pme->releaseJpegJobData((qcamera_jpeg_data_t *)data); in releaseJpegData()
1550 QCameraPostProcessor *pme = (QCameraPostProcessor *)user_data; in releaseOngoingPPData() local
1551 if (NULL != pme) { in releaseOngoingPPData()
1555 pme->releaseSuperBuf(pp_job->src_frame); in releaseOngoingPPData()
[all …]
DQCameraStream.cpp1090 QCameraStream *pme = (QCameraStream *)data; in dataProcRoutine() local
1091 QCameraCmdThread *cmdThread = &pme->mProcTh; in dataProcRoutine()
1112 (mm_camera_super_buf_t *)pme->mDataQ.dequeue(); in dataProcRoutine()
1114 if (pme->mDataCB != NULL) { in dataProcRoutine()
1115 pme->mDataCB(frame, pme, pme->mUserData); in dataProcRoutine()
1118 pme->bufDone(frame->bufs[0]->buf_idx); in dataProcRoutine()
1127 pme->mDataQ.flush(); in dataProcRoutine()
1985 QCameraStream *pme = (QCameraStream *)data; in BufAllocRoutine() local
1989 pme->cond_wait(); in BufAllocRoutine()
1990 if (pme->mNumBufsNeedAlloc > 0) { in BufAllocRoutine()
[all …]
/device/lge/bullhead/camera/QCamera2/HAL/
DQCamera2HWICallbacks.cpp69 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in zsl_channel_cb() local
70 if (pme == NULL || in zsl_channel_cb()
71 pme->mCameraHandle == NULL || in zsl_channel_cb()
72 pme->mCameraHandle->camera_handle != recvd_frame->camera_handle){ in zsl_channel_cb()
77 QCameraChannel *pChannel = pme->m_channels[QCAMERA_CH_TYPE_ZSL]; in zsl_channel_cb()
84 if(pme->mParameters.isSceneSelectionEnabled() && in zsl_channel_cb()
85 !pme->m_stateMachine.isCaptureRunning()) { in zsl_channel_cb()
86 pme->selectScene(pChannel, recvd_frame); in zsl_channel_cb()
92 __func__, recvd_frame->bUnlockAEC, pme->m_bLedAfAecLock); in zsl_channel_cb()
93 if(recvd_frame->bUnlockAEC && pme->m_bLedAfAecLock) { in zsl_channel_cb()
[all …]
DQCameraPostProc.cpp1255 QCameraPostProcessor *pme = (QCameraPostProcessor *)user_data; in releasePPInputData() local
1256 if (NULL != pme) { in releasePPInputData()
1259 pme->releaseSuperBuf(pp_job->src_frame); in releasePPInputData()
1266 pme->releaseSuperBuf(pp_job->src_reproc_frame); in releasePPInputData()
1287 QCameraPostProcessor *pme = (QCameraPostProcessor *)user_data; in releaseJpegData() local
1288 if (NULL != pme) { in releaseJpegData()
1289 pme->releaseJpegJobData((qcamera_jpeg_data_t *)data); in releaseJpegData()
1308 QCameraPostProcessor *pme = (QCameraPostProcessor *)user_data; in releaseOngoingPPData() local
1309 if (NULL != pme) { in releaseOngoingPPData()
1313 pme->releaseSuperBuf(pp_job->src_frame); in releaseOngoingPPData()
[all …]
DQCameraStream.cpp940 QCameraStream *pme = (QCameraStream *)data; in dataProcRoutine() local
941 QCameraCmdThread *cmdThread = &pme->mProcTh; in dataProcRoutine()
962 (mm_camera_super_buf_t *)pme->mDataQ.dequeue(); in dataProcRoutine()
964 if (pme->mDataCB != NULL) { in dataProcRoutine()
965 pme->mDataCB(frame, pme, pme->mUserData); in dataProcRoutine()
968 pme->bufDone(frame->bufs[0]->buf_idx); in dataProcRoutine()
977 pme->mDataQ.flush(); in dataProcRoutine()
1626 QCameraStream *pme = (QCameraStream *)data; in BufAllocRoutine() local
1630 pme->cond_wait(); in BufAllocRoutine()
1631 if (pme->mNumBufsNeedAlloc > 0) { in BufAllocRoutine()
[all …]
/device/huawei/angler/camera/QCamera2/HAL/
DQCamera2HWICallbacks.cpp69 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in zsl_channel_cb() local
70 if (pme == NULL || in zsl_channel_cb()
71 pme->mCameraHandle == NULL || in zsl_channel_cb()
72 pme->mCameraHandle->camera_handle != recvd_frame->camera_handle){ in zsl_channel_cb()
77 QCameraChannel *pChannel = pme->m_channels[QCAMERA_CH_TYPE_ZSL]; in zsl_channel_cb()
84 if(pme->mParameters.isSceneSelectionEnabled() && in zsl_channel_cb()
85 !pme->m_stateMachine.isCaptureRunning()) { in zsl_channel_cb()
86 pme->selectScene(pChannel, recvd_frame); in zsl_channel_cb()
92 __func__, recvd_frame->bUnlockAEC, pme->m_bLedAfAecLock); in zsl_channel_cb()
93 if(recvd_frame->bUnlockAEC && pme->m_bLedAfAecLock) { in zsl_channel_cb()
[all …]
DQCameraPostProc.cpp1255 QCameraPostProcessor *pme = (QCameraPostProcessor *)user_data; in releasePPInputData() local
1256 if (NULL != pme) { in releasePPInputData()
1259 pme->releaseSuperBuf(pp_job->src_frame); in releasePPInputData()
1266 pme->releaseSuperBuf(pp_job->src_reproc_frame); in releasePPInputData()
1287 QCameraPostProcessor *pme = (QCameraPostProcessor *)user_data; in releaseJpegData() local
1288 if (NULL != pme) { in releaseJpegData()
1289 pme->releaseJpegJobData((qcamera_jpeg_data_t *)data); in releaseJpegData()
1308 QCameraPostProcessor *pme = (QCameraPostProcessor *)user_data; in releaseOngoingPPData() local
1309 if (NULL != pme) { in releaseOngoingPPData()
1313 pme->releaseSuperBuf(pp_job->src_frame); in releaseOngoingPPData()
[all …]
DQCameraStream.cpp940 QCameraStream *pme = (QCameraStream *)data; in dataProcRoutine() local
941 QCameraCmdThread *cmdThread = &pme->mProcTh; in dataProcRoutine()
962 (mm_camera_super_buf_t *)pme->mDataQ.dequeue(); in dataProcRoutine()
964 if (pme->mDataCB != NULL) { in dataProcRoutine()
965 pme->mDataCB(frame, pme, pme->mUserData); in dataProcRoutine()
968 pme->bufDone(frame->bufs[0]->buf_idx); in dataProcRoutine()
977 pme->mDataQ.flush(); in dataProcRoutine()
1626 QCameraStream *pme = (QCameraStream *)data; in BufAllocRoutine() local
1630 pme->cond_wait(); in BufAllocRoutine()
1631 if (pme->mNumBufsNeedAlloc > 0) { in BufAllocRoutine()
[all …]
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_snapshot.c41 mm_camera_test_obj_t *pme = NULL; in jpeg_encode_cb() local
44 pme = (mm_camera_test_obj_t *)userData; in jpeg_encode_cb()
45 if (pme->jpeg_hdl != client_hdl || in jpeg_encode_cb()
46 jobId != pme->current_job_id || in jpeg_encode_cb()
47 !pme->current_job_frames) { in jpeg_encode_cb()
49 __func__, jobId, pme->current_job_id); in jpeg_encode_cb()
60 pme->current_job_id = 0; in jpeg_encode_cb()
61 for (i = 0; i < pme->current_job_frames->num_bufs; i++) { in jpeg_encode_cb()
62 if (MM_CAMERA_OK != pme->cam->ops->qbuf(pme->current_job_frames->camera_handle, in jpeg_encode_cb()
63 pme->current_job_frames->ch_id, in jpeg_encode_cb()
[all …]
Dmm_qcamera_reprocess.c37 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data; in mm_app_reprocess_notify_cb() local
50 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_reprocess_notify_cb()
51 channel = &pme->channels[i]; in mm_app_reprocess_notify_cb()
65 if ( pme->encodeJpeg ) { in mm_app_reprocess_notify_cb()
66 pme->jpeg_buf.buf.buffer = (uint8_t *)malloc(m_frame->frame_len); in mm_app_reprocess_notify_cb()
67 if ( NULL == pme->jpeg_buf.buf.buffer ) { in mm_app_reprocess_notify_cb()
72 pme->jpeg_buf.buf.frame_len = m_frame->frame_len; in mm_app_reprocess_notify_cb()
74 rc = createEncodingSession(pme, m_stream, m_frame); in mm_app_reprocess_notify_cb()
77 free(pme->jpeg_buf.buf.buffer); in mm_app_reprocess_notify_cb()
83 rc = encodeData(pme, bufs, m_stream); in mm_app_reprocess_notify_cb()
[all …]
Dmm_qcamera_preview.c42 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data; in mm_app_metadata_notify_cb() local
54 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_metadata_notify_cb()
55 channel = &pme->channels[i]; in mm_app_metadata_notify_cb()
86 if (pme->metadata == NULL) { in mm_app_metadata_notify_cb()
88 pme->metadata = malloc(sizeof(metadata_buffer_t)); in mm_app_metadata_notify_cb()
89 if (NULL == pme->metadata) { in mm_app_metadata_notify_cb()
94 memcpy(pme->metadata, frame->buffer, sizeof(metadata_buffer_t)); in mm_app_metadata_notify_cb()
109 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_metadata_notify_cb()
125 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data; in mm_app_preview_notify_cb() local
136 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_preview_notify_cb()
[all …]
/device/huawei/angler/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_snapshot.c41 mm_camera_test_obj_t *pme = NULL; in jpeg_encode_cb() local
44 pme = (mm_camera_test_obj_t *)userData; in jpeg_encode_cb()
45 if (pme->jpeg_hdl != client_hdl || in jpeg_encode_cb()
46 jobId != pme->current_job_id || in jpeg_encode_cb()
47 !pme->current_job_frames) { in jpeg_encode_cb()
49 __func__, jobId, pme->current_job_id); in jpeg_encode_cb()
60 pme->current_job_id = 0; in jpeg_encode_cb()
61 for (i = 0; i < pme->current_job_frames->num_bufs; i++) { in jpeg_encode_cb()
62 if (MM_CAMERA_OK != pme->cam->ops->qbuf(pme->current_job_frames->camera_handle, in jpeg_encode_cb()
63 pme->current_job_frames->ch_id, in jpeg_encode_cb()
[all …]
Dmm_qcamera_reprocess.c37 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data; in mm_app_reprocess_notify_cb() local
50 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_reprocess_notify_cb()
51 channel = &pme->channels[i]; in mm_app_reprocess_notify_cb()
65 if ( pme->encodeJpeg ) { in mm_app_reprocess_notify_cb()
66 pme->jpeg_buf.buf.buffer = (uint8_t *)malloc(m_frame->frame_len); in mm_app_reprocess_notify_cb()
67 if ( NULL == pme->jpeg_buf.buf.buffer ) { in mm_app_reprocess_notify_cb()
72 pme->jpeg_buf.buf.frame_len = m_frame->frame_len; in mm_app_reprocess_notify_cb()
74 rc = createEncodingSession(pme, m_stream, m_frame); in mm_app_reprocess_notify_cb()
77 free(pme->jpeg_buf.buf.buffer); in mm_app_reprocess_notify_cb()
83 rc = encodeData(pme, bufs, m_stream); in mm_app_reprocess_notify_cb()
[all …]
Dmm_qcamera_preview.c42 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data; in mm_app_metadata_notify_cb() local
54 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_metadata_notify_cb()
55 channel = &pme->channels[i]; in mm_app_metadata_notify_cb()
86 if (pme->metadata == NULL) { in mm_app_metadata_notify_cb()
88 pme->metadata = malloc(sizeof(metadata_buffer_t)); in mm_app_metadata_notify_cb()
89 if (NULL == pme->metadata) { in mm_app_metadata_notify_cb()
94 memcpy(pme->metadata, frame->buffer, sizeof(metadata_buffer_t)); in mm_app_metadata_notify_cb()
109 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_metadata_notify_cb()
125 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data; in mm_app_preview_notify_cb() local
136 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_preview_notify_cb()
[all …]
/device/google/marlin/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_snapshot.c42 mm_camera_test_obj_t *pme = NULL; in jpeg_encode_cb() local
45 pme = (mm_camera_test_obj_t *)userData; in jpeg_encode_cb()
46 if (pme->jpeg_hdl != client_hdl || in jpeg_encode_cb()
47 jobId != pme->current_job_id || in jpeg_encode_cb()
48 !pme->current_job_frames) { in jpeg_encode_cb()
50 jobId, pme->current_job_id); in jpeg_encode_cb()
61 pme->current_job_id = 0; in jpeg_encode_cb()
62 for (i = 0; i < pme->current_job_frames->num_bufs; i++) { in jpeg_encode_cb()
63 if (MM_CAMERA_OK != pme->cam->ops->qbuf(pme->current_job_frames->camera_handle, in jpeg_encode_cb()
64 pme->current_job_frames->ch_id, in jpeg_encode_cb()
[all …]
Dmm_qcamera_reprocess.c38 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data; in mm_app_reprocess_notify_cb() local
51 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_reprocess_notify_cb()
52 channel = &pme->channels[i]; in mm_app_reprocess_notify_cb()
66 if ( pme->encodeJpeg ) { in mm_app_reprocess_notify_cb()
67 pme->jpeg_buf.buf.buffer = (uint8_t *)malloc(m_frame->frame_len); in mm_app_reprocess_notify_cb()
68 if ( NULL == pme->jpeg_buf.buf.buffer ) { in mm_app_reprocess_notify_cb()
73 pme->jpeg_buf.buf.frame_len = m_frame->frame_len; in mm_app_reprocess_notify_cb()
75 rc = createEncodingSession(pme, m_stream, m_frame); in mm_app_reprocess_notify_cb()
78 free(pme->jpeg_buf.buf.buffer); in mm_app_reprocess_notify_cb()
84 rc = encodeData(pme, bufs, m_stream); in mm_app_reprocess_notify_cb()
[all …]
Dmm_qcamera_preview.c53 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data; in mm_app_metadata_notify_cb() local
65 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_metadata_notify_cb()
66 channel = &pme->channels[i]; in mm_app_metadata_notify_cb()
97 if (pme->metadata == NULL) { in mm_app_metadata_notify_cb()
99 pme->metadata = malloc(sizeof(metadata_buffer_t)); in mm_app_metadata_notify_cb()
100 if (NULL == pme->metadata) { in mm_app_metadata_notify_cb()
105 memcpy(pme->metadata, frame->buffer, sizeof(metadata_buffer_t)); in mm_app_metadata_notify_cb()
119 if (pme->user_metadata_cb) { in mm_app_metadata_notify_cb()
121 pme->user_metadata_cb(frame); in mm_app_metadata_notify_cb()
124 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_metadata_notify_cb()
[all …]
Dmm_qcamera_video.c39 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data; in mm_app_video_notify_cb() local
43 snprintf(file_name, sizeof(file_name), "V_C%d", pme->cam->camera_handle); in mm_app_video_notify_cb()
46 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_video_notify_cb()
/device/lge/bullhead/camera/QCamera2/HAL3/
DQCamera3PostProc.cpp785 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releasePPInputData() local
786 if (NULL != pme) { in releasePPInputData()
790 pme->releaseSuperBuf(buf->input); in releasePPInputData()
811 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releaseMetadata() local
812 if (NULL != pme) { in releaseMetadata()
813 pme->m_parent->metadataBufDone((mm_camera_super_buf_t *)data); in releaseMetadata()
830 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releaseJpegData() local
831 if (NULL != pme) { in releaseJpegData()
832 pme->releaseJpegJobData((qcamera_hal3_jpeg_data_t *)data); in releaseJpegData()
849 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releaseOngoingPPData() local
[all …]
DQCamera3Stream.cpp553 QCamera3Stream *pme = (QCamera3Stream *)data; in dataProcRoutine() local
554 QCameraCmdThread *cmdThread = &pme->mProcTh; in dataProcRoutine()
575 (mm_camera_super_buf_t *)pme->mDataQ.dequeue(); in dataProcRoutine()
579 pme->handleBatchBuffer(frame); in dataProcRoutine()
580 } else if (pme->mDataCB != NULL) { in dataProcRoutine()
581 pme->mDataCB(frame, pme, pme->mUserData); in dataProcRoutine()
584 pme->bufDone(frame->bufs[0]->buf_idx); in dataProcRoutine()
592 pme->mDataQ.flush(); in dataProcRoutine()
593 pme->flushFreeBatchBufQ(); in dataProcRoutine()
1079 QCamera3Stream *pme = (QCamera3Stream *)user_data; in releaseFrameData() local
[all …]
/device/huawei/angler/camera/QCamera2/HAL3/
DQCamera3PostProc.cpp785 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releasePPInputData() local
786 if (NULL != pme) { in releasePPInputData()
790 pme->releaseSuperBuf(buf->input); in releasePPInputData()
811 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releaseMetadata() local
812 if (NULL != pme) { in releaseMetadata()
813 pme->m_parent->metadataBufDone((mm_camera_super_buf_t *)data); in releaseMetadata()
830 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releaseJpegData() local
831 if (NULL != pme) { in releaseJpegData()
832 pme->releaseJpegJobData((qcamera_hal3_jpeg_data_t *)data); in releaseJpegData()
849 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releaseOngoingPPData() local
[all …]
DQCamera3Stream.cpp553 QCamera3Stream *pme = (QCamera3Stream *)data; in dataProcRoutine() local
554 QCameraCmdThread *cmdThread = &pme->mProcTh; in dataProcRoutine()
575 (mm_camera_super_buf_t *)pme->mDataQ.dequeue(); in dataProcRoutine()
579 pme->handleBatchBuffer(frame); in dataProcRoutine()
580 } else if (pme->mDataCB != NULL) { in dataProcRoutine()
581 pme->mDataCB(frame, pme, pme->mUserData); in dataProcRoutine()
584 pme->bufDone(frame->bufs[0]->buf_idx); in dataProcRoutine()
592 pme->mDataQ.flush(); in dataProcRoutine()
593 pme->flushFreeBatchBufQ(); in dataProcRoutine()
1079 QCamera3Stream *pme = (QCamera3Stream *)user_data; in releaseFrameData() local
[all …]
/device/google/marlin/camera/QCamera2/HAL3/
DQCamera3PostProc.cpp817 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releasePPInputData() local
818 if (NULL != pme) { in releasePPInputData()
822 pme->releaseSuperBuf(buf->input); in releasePPInputData()
843 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releaseMetadata() local
844 if (NULL != pme) { in releaseMetadata()
845 pme->m_parent->metadataBufDone((mm_camera_super_buf_t *)data); in releaseMetadata()
862 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releaseJpegData() local
863 if (NULL != pme) { in releaseJpegData()
864 pme->releaseJpegJobData((qcamera_hal3_jpeg_data_t *)data); in releaseJpegData()
881 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releaseOngoingPPData() local
[all …]
DQCamera3Stream.cpp599 QCamera3Stream *pme = (QCamera3Stream *)data; in dataProcRoutine() local
600 QCameraCmdThread *cmdThread = &pme->mProcTh; in dataProcRoutine()
602 cmdThread->setName(mStreamNames[pme->mStreamInfo->stream_type]); in dataProcRoutine()
622 Mutex::Autolock lock(pme->mTimeoutFrameQLock); in dataProcRoutine()
623 if (pme->mTimeoutFrameQ.size()) { in dataProcRoutine()
624 auto itr = pme->mTimeoutFrameQ.begin(); in dataProcRoutine()
626 itr = pme->mTimeoutFrameQ.erase(itr); in dataProcRoutine()
632 pme->cancelBuffer(bufIdx); in dataProcRoutine()
639 (mm_camera_super_buf_t *)pme->mDataQ.dequeue(); in dataProcRoutine()
643 pme->handleBatchBuffer(frame); in dataProcRoutine()
[all …]

12