Lines Matching refs:mHalCamCtrl
228 if(mHalCamCtrl->mJpegMemory.camera_memory[0] != NULL && ptr != NULL && size > 0) {
229 memcpy((uint8_t *)((uint32_t)mHalCamCtrl->mJpegMemory.camera_memory[0]->data + mJpegOffset), ptr, size);
234 memcpy((uint8_t *)((uint32_t)mHalCamCtrl->mJpegMemory.camera_memory[0]->data + mJpegOffset), ptr, size);
250 camera_memory_t *data = mHalCamCtrl->mGetMemory(-1, 1, 1, NULL);
263 if (NULL != mHalCamCtrl->mDataCb)
264 mHalCamCtrl->mDataCb (CAMERA_MSG_COMPRESSED_IMAGE,
265 data, 0, NULL,mHalCamCtrl->mCallbackCookie);
279 if (mHalCamCtrl->mHdrMode == HDR_MODE)
293 mHalCamCtrl->dumpFrameToFile(mHalCamCtrl->mJpegMemory.camera_memory[0]->data, mJpegOffset, (char *)"debug", (char *)"jpg", 0);
297 if (mHalCamCtrl->mDataCb && (mHalCamCtrl->mMsgEnabled & msg_type)) {
298 jpg_data_cb = mHalCamCtrl->mDataCb;
304 mHalCamCtrl->deinitExifData();
347 if(fail_cb_flag && mHalCamCtrl->mDataCb &&
348 (mHalCamCtrl->mMsgEnabled & CAMERA_MSG_COMPRESSED_IMAGE)) {
352 jpg_data_cb = mHalCamCtrl->mDataCb;
354 if(mHalCamCtrl->mHdrMode == HDR_MODE && (hdrJpegCount%2) != 0){
360 camera_memory_t *encodedMem = mHalCamCtrl->mGetMemory(
361 mHalCamCtrl->mJpegMemory.fd[0], mJpegOffset, 1, mHalCamCtrl);
365 memcpy(encodedMem->data, mHalCamCtrl->mJpegMemory.camera_memory[0]->data, mJpegOffset );
370 jpg_data_cb (msg_type,encodedMem, 0, NULL,mHalCamCtrl->mCallbackCookie);
379 mHalCamCtrl->mCallbackCookie);
385 if(isLiveSnapshot() && mHalCamCtrl->mStateLiveshot) {
388 mHalCamCtrl->mStateLiveshot = false;
407 mHalCamCtrl->getPictureSize(&mPictureWidth, &mPictureHeight);
411 mPostviewWidth = mHalCamCtrl->mParameters.getInt(QCameraParameters::KEY_JPEG_THUMBNAIL_WIDTH);
412 mPostviewHeight = mHalCamCtrl->mParameters.getInt(QCameraParameters::KEY_JPEG_THUMBNAIL_HEIGHT);
451 img_format = mHalCamCtrl->getPreviewFormat();
571 ch_attr.buffering_frame.look_back = mHalCamCtrl->getZSLBackLookCount();
572 ch_attr.buffering_frame.water_mark = mHalCamCtrl->getZSLQueueDepth();
573 ch_attr.buffering_frame.interval = mHalCamCtrl->getZSLBurstInterval( );
703 if (mHalCamCtrl->initHeapMem(&mHalCamCtrl->mRawMemory, num_of_buf,
719 mHalCamCtrl->releaseHeapMem(&mHalCamCtrl->mRawMemory);
754 mHalCamCtrl->releaseHeapMem(&mHalCamCtrl->mRawMemory);
810 mHalCamCtrl->setJpegRotation(isZSLMode());
812 rotation = mHalCamCtrl->getJpegRotation();
817 ret = cam_config_set_parm(mHalCamCtrl->mCameraId, MM_CAMERA_PARM_DIMENSION, dim);
821 ret = cam_config_set_parm(mHalCamCtrl->mCameraId, MM_CAMERA_PARM_DIMENSION, dim);
831 if (mHalCamCtrl->initHeapMem (&mHalCamCtrl->mJpegMemory, 1, frame_len, 0, cbcr_off,
838 if (mHalCamCtrl->initHeapMem(&mHalCamCtrl->mSnapshotMemory, num_of_buf,
842 mHalCamCtrl->releaseHeapMem(&mHalCamCtrl->mJpegMemory);
856 if (mHalCamCtrl->initHeapMem(&mHalCamCtrl->mThumbnailMemory, num_of_buf,
860 mHalCamCtrl->releaseHeapMem(&mHalCamCtrl->mSnapshotMemory);
861 mHalCamCtrl->releaseHeapMem(&mHalCamCtrl->mJpegMemory);
879 mHalCamCtrl->releaseHeapMem(&mHalCamCtrl->mThumbnailMemory);
881 mHalCamCtrl->releaseHeapMem(&mHalCamCtrl->mSnapshotMemory);
882 mHalCamCtrl->releaseHeapMem(&mHalCamCtrl->mJpegMemory);
924 mHalCamCtrl->releaseHeapMem(&mHalCamCtrl->mSnapshotMemory);
926 mHalCamCtrl->releaseHeapMem(&mHalCamCtrl->mThumbnailMemory);
928 mHalCamCtrl->releaseHeapMem(&mHalCamCtrl->mJpegMemory);
953 ((mHalCamCtrl->getHDRMode() == HDR_MODE) || (mHalCamCtrl->isWDenoiseEnabled()))) {
955 mHalCamCtrl->mSnapshotMemory.buffer_count; i++) {
956 if (NO_ERROR != mHalCamCtrl->sendUnMappingBuf(MSM_V4L2_EXT_CAPTURE_MODE_MAIN, i, mCameraId,
960 if (NO_ERROR != mHalCamCtrl->sendUnMappingBuf(MSM_V4L2_EXT_CAPTURE_MODE_THUMBNAIL, i, mCameraId,
968 for (int i = 0; i < mHalCamCtrl->mSnapshotMemory.buffer_count; i++) {
969 if (NO_ERROR != mHalCamCtrl->sendUnMappingBuf(MSM_V4L2_EXT_CAPTURE_MODE_MAIN, i, mCameraId,
1087 if (NO_ERROR != mHalCamCtrl->sendMappingBuf(MSM_V4L2_EXT_CAPTURE_MODE_MAIN, i,
1088 mSnapshotStreamBuf.frame[i].fd, mHalCamCtrl->mSnapshotMemory.size, mCameraId,
1092 if (NO_ERROR != mHalCamCtrl->sendMappingBuf(MSM_V4L2_EXT_CAPTURE_MODE_THUMBNAIL, i,
1093 mPostviewStreamBuf.frame[i].fd, mHalCamCtrl->mThumbnailMemory.size, mCameraId,
1181 mHalCamCtrl->getPictureSize(&mPictureWidth, &mPictureHeight);
1192 mPostviewWidth = mHalCamCtrl->mParameters.getInt(QCameraParameters::KEY_JPEG_THUMBNAIL_WIDTH);
1193 mPostviewHeight = mHalCamCtrl->mParameters.getInt(QCameraParameters::KEY_JPEG_THUMBNAIL_HEIGHT);
1265 ret = initSnapshotBuffers(&dim, mHalCamCtrl->getZSLQueueDepth() + 3);
1271 for (int i = 0; i < mHalCamCtrl->getZSLQueueDepth() + 3; i++) {
1272 if (NO_ERROR != mHalCamCtrl->sendMappingBuf(MSM_V4L2_EXT_CAPTURE_MODE_MAIN, i,
1273 mSnapshotStreamBuf.frame[i].fd, mHalCamCtrl->mSnapshotMemory.size, mCameraId,
1297 if (mHalCamCtrl->mHdrMode == HDR_MODE) {
1378 if (!mHalCamCtrl->mStateLiveshot) {
1384 ret = cam_config_get_parm(mHalCamCtrl->mCameraId,MM_CAMERA_PARM_VFE_OUTPUT_ENABLE,
1388 cam_evt_buf_done(mHalCamCtrl->mCameraId, recvd_frame);
1397 cam_evt_buf_done(mHalCamCtrl->mCameraId, recvd_frame);
1418 ret = cam_config_get_parm(mHalCamCtrl->mCameraId, MM_CAMERA_PARM_DIMENSION, &dim);
1421 cam_evt_buf_done(mHalCamCtrl->mCameraId, recvd_frame);
1445 if (mHalCamCtrl->mStateLiveshot) {
1446 if(!mHalCamCtrl->mShutterSoundPlayed) {
1450 mHalCamCtrl->mShutterSoundPlayed = false;
1455 if((mHalCamCtrl->mDataCb) && (mHalCamCtrl->mMsgEnabled & CAMERA_MSG_RAW_IMAGE)){
1456 dataCb = mHalCamCtrl->mDataCb;
1460 if((mHalCamCtrl->mNotifyCb) && (mHalCamCtrl->mMsgEnabled & CAMERA_MSG_RAW_IMAGE_NOTIFY)){
1461 notifyCb = mHalCamCtrl->mNotifyCb;
1486 if(mHalCamCtrl->thumbnailWidth == 0 && mHalCamCtrl->thumbnailHeight == 0) {
1490 crop_info.out1_w = mHalCamCtrl->thumbnailWidth;
1491 crop_info.out1_h = mHalCamCtrl->thumbnailHeight;
1501 if (dataCb && mHalCamCtrl->mStateLiveshot) {
1502 dataCb(CAMERA_MSG_RAW_IMAGE, mHalCamCtrl->mRecordingMemory.camera_memory[frame->video.video.idx],
1503 1, NULL, mHalCamCtrl->mCallbackCookie);
1505 if (notifyCb && mHalCamCtrl->mStateLiveshot) {
1506 notifyCb(CAMERA_MSG_RAW_IMAGE_NOTIFY, 0, 0, mHalCamCtrl->mCallbackCookie);
1527 mNumOfSnapshot = mHalCamCtrl->getNumOfSnapshots();
1605 if(mHalCamCtrl->thumbnailWidth == 0 || mHalCamCtrl->thumbnailHeight == 0) {
1627 cam_config_get_parm(mHalCamCtrl->mCameraId, MM_CAMERA_PARM_DIMENSION, &dimension);
1636 mHalCamCtrl->setExifTags();
1638 encode_params.exif_data = mHalCamCtrl->getExifData();
1639 encode_params.exif_numEntries = mHalCamCtrl->getExifTableNumEntries();
1660 cam_config_get_parm(mHalCamCtrl->mCameraId, MM_CAMERA_PARM_DIMENSION, &dimension);
1669 mHalCamCtrl->mPreviewWidth, mHalCamCtrl->mPreviewHeight);
1670 dimension.thumbnail_width = width = mHalCamCtrl->mPreviewWidth;
1671 dimension.thumbnail_height = height = mHalCamCtrl->mPreviewHeight;
1687 mHalCamCtrl->mJpegMemory.camera_memory[0]->data, &mJpegOffset);
1713 if (mHalCamCtrl->getJpegQuality())
1714 mm_jpeg_encoder_setMainImageQuality(mHalCamCtrl->getJpegQuality());
1750 crop.out1_w= mHalCamCtrl->thumbnailWidth;
1751 crop.out1_h= mHalCamCtrl->thumbnailHeight;
1765 mHalCamCtrl->initExifData();
1779 encode_params.exif_data = mHalCamCtrl->getExifData();
1780 encode_params.exif_numEntries = mHalCamCtrl->getExifTableNumEntries();
1823 if(mHalCamCtrl->mNotifyCb)
1824 mHalCamCtrl->mNotifyCb(CAMERA_MSG_SHUTTER, 0, mPlayShutterSoundOnly,
1825 mHalCamCtrl->mCallbackCookie);
1850 mHalCamCtrl->setJpegRotation(isZSLMode());
1861 if(mHalCamCtrl->cache_ops(ion_fd, &cache_inv_data, ION_IOC_CLEAN_INV_CACHES) < 0)
1871 if(mHalCamCtrl->cache_ops(ion_fd, &cache_inv_data, ION_IOC_CLEAN_INV_CACHES) < 0)
1920 mHalCamCtrl->dumpFrameToFile(recvd_frame->snapshot.main.frame, HAL_DUMP_FRM_MAIN);
1922 mHalCamCtrl->dumpFrameToFile(recvd_frame->snapshot.thumbnail.frame,
1929 if(!mHalCamCtrl->mShutterSoundPlayed) {
1933 mHalCamCtrl->mShutterSoundPlayed = false;
1939 if (mHalCamCtrl->mDataCb && mActive &&
1940 (mHalCamCtrl->mMsgEnabled & CAMERA_MSG_COMPRESSED_IMAGE)){
1941 dataCb = mHalCamCtrl->mDataCb;
1950 mHalCamCtrl->mRawMemory.camera_memory[buf_index], 0, NULL,
1951 mHalCamCtrl->mCallbackCookie);
1963 mHalCamCtrl->mPauseFramedispatch = true;
2000 if (mHalCamCtrl->LINK_morpho_DNR_ProcessFrame)
2001 ret = (int)mHalCamCtrl->LINK_morpho_DNR_ProcessFrame(dnr_buffer, mPictureWidth, mPictureHeight, 1, 1); //bright->normal->dark
2011 if (isZSLMode() && mHalCamCtrl->isWDenoiseEnabled()) {
2044 if((mHalCamCtrl->mDataCb) && (mHalCamCtrl->mMsgEnabled & CAMERA_MSG_RAW_IMAGE)){
2045 dataCb = mHalCamCtrl->mDataCb;
2049 if((mHalCamCtrl->mNotifyCb) && (mHalCamCtrl->mMsgEnabled & CAMERA_MSG_RAW_IMAGE_NOTIFY)){
2050 notifyCb = mHalCamCtrl->mNotifyCb;
2056 if(!mHalCamCtrl->mShutterSoundPlayed) {
2060 mHalCamCtrl->mShutterSoundPlayed = false;
2062 if(mHalCamCtrl->mHdrMode == HDR_MODE) {
2074 if(mHalCamCtrl->mDataCb &&
2075 (mHalCamCtrl->mMsgEnabled & CAMERA_MSG_COMPRESSED_IMAGE)) {
2079 jpgDataCb = mHalCamCtrl->mDataCb;
2086 dataCb(CAMERA_MSG_RAW_IMAGE, mHalCamCtrl->mSnapshotMemory.camera_memory[0],
2087 1, NULL, mHalCamCtrl->mCallbackCookie);
2090 notifyCb(CAMERA_MSG_RAW_IMAGE_NOTIFY, 0, 0, mHalCamCtrl->mCallbackCookie);
2095 mHalCamCtrl->mCallbackCookie);
2105 dataCb(CAMERA_MSG_RAW_IMAGE, mHalCamCtrl->mSnapshotMemory.camera_memory[0],
2106 1, NULL, mHalCamCtrl->mCallbackCookie);
2109 notifyCb(CAMERA_MSG_RAW_IMAGE_NOTIFY, 0, 0, mHalCamCtrl->mCallbackCookie);
2114 if(mHalCamCtrl->mDataCb &&
2115 (mHalCamCtrl->mMsgEnabled & CAMERA_MSG_POSTVIEW_FRAME)) {
2116 mHalCamCtrl->mDataCb(CAMERA_MSG_POSTVIEW_FRAME,mHalCamCtrl->mThumbnailMemory.camera_memory[0],
2117 0, NULL, mHalCamCtrl->mCallbackCookie);
2208 mNumOfSnapshot = mHalCamCtrl->getNumOfSnapshots();
2336 if(mHalCamCtrl->isRawSnapshot()) {
2384 mHalCamCtrl->setExifTags();
2396 if(mHalCamCtrl->isRawSnapshot()) {
2414 mHalCamCtrl->setExifTags();
2459 if(isLiveSnapshot() && mHalCamCtrl->mStateLiveshot) {
2466 mHalCamCtrl->mStateLiveshot = false;
2603 mHalCamCtrl->sendUnMappingBuf(MSM_V4L2_EXT_CAPTURE_MODE_MAIN, frame->snapshot.main.idx, mCameraId,
2605 mHalCamCtrl->sendUnMappingBuf(MSM_V4L2_EXT_CAPTURE_MODE_THUMBNAIL, frame->snapshot.thumbnail.idx, mCameraId,
2614 if((mHalCamCtrl->mDataCb) && (mHalCamCtrl->mMsgEnabled & CAMERA_MSG_RAW_IMAGE)){
2615 dataCb = mHalCamCtrl->mDataCb;
2619 if((mHalCamCtrl->mNotifyCb) && (mHalCamCtrl->mMsgEnabled & CAMERA_MSG_RAW_IMAGE_NOTIFY)){
2620 notifyCb = mHalCamCtrl->mNotifyCb;
2624 if(mHalCamCtrl->mDataCb &&
2625 (mHalCamCtrl->mMsgEnabled & CAMERA_MSG_COMPRESSED_IMAGE)) {
2629 jpgDataCb = mHalCamCtrl->mDataCb;
2647 dataCb(CAMERA_MSG_RAW_IMAGE, mHalCamCtrl->mSnapshotMemory.camera_memory[0],
2648 1, NULL, mHalCamCtrl->mCallbackCookie);
2651 notifyCb(CAMERA_MSG_RAW_IMAGE_NOTIFY, 0, 0, mHalCamCtrl->mCallbackCookie);
2656 mHalCamCtrl->mCallbackCookie);
2707 if (NO_ERROR != mHalCamCtrl->sendMappingBuf(MSM_V4L2_EXT_CAPTURE_MODE_MAIN,
2718 if (NO_ERROR != mHalCamCtrl->sendMappingBuf(MSM_V4L2_EXT_CAPTURE_MODE_THUMBNAIL,
2817 if((mHalCamCtrl->mDataCb) && (mHalCamCtrl->mMsgEnabled & CAMERA_MSG_RAW_IMAGE)){
2818 dataCb = mHalCamCtrl->mDataCb;
2822 if((mHalCamCtrl->mNotifyCb) && (mHalCamCtrl->mMsgEnabled & CAMERA_MSG_RAW_IMAGE_NOTIFY)){
2823 notifyCb = mHalCamCtrl->mNotifyCb;
2827 if(mHalCamCtrl->mDataCb &&
2828 (mHalCamCtrl->mMsgEnabled & CAMERA_MSG_COMPRESSED_IMAGE)) {
2832 jpgDataCb = mHalCamCtrl->mDataCb;
2850 dataCb(CAMERA_MSG_RAW_IMAGE, mHalCamCtrl->mSnapshotMemory.camera_memory[0],
2851 1, NULL, mHalCamCtrl->mCallbackCookie);
2854 notifyCb(CAMERA_MSG_RAW_IMAGE_NOTIFY, 0, 0, mHalCamCtrl->mCallbackCookie);
2859 mHalCamCtrl->mCallbackCookie);