/***************************************************************************** * FUNCTION * mdi_webcam_resume * DESCRIPTION * Resume webcam * PARAMETERS * rotate [IN] Preview rotate * RETURNS * MDI_RES_WEBCAM_SUCCEED Success * MDI_RES_WEBCAM_ERR_FAILED Failure *****************************************************************************/ MDI_RESULT mdi_webcam_resume(U16 rotate) { #ifdef MDI_WEBCAM_DRIVER_AVAIALBE /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ media_webcam_resume_req_struct resume_data; S32 ret; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ #if 0//JiaShuo Delete for webcam MMI_TRACE(MMI_MEDIA_TRC_G4_MDI, MDI_TRC_WEBCAM_RESUME); resume_data.rotate = rotate + CAM_IMAGE_NORMAL; #endif ret = media_webcam_resume(MOD_MMI, &resume_data); if (ret != MED_RES_OK) { return MDI_RES_WEBCAM_ERR_FAILED; } else { return MDI_RES_WEBCAM_SUCCEED; } #endif /* MDI_WEBCAM_DRIVER_AVAIALBE */ return MDI_RES_WEBCAM_SUCCEED; }
/***************************************************************************** * FUNCTION * mdi_webcam_resume * DESCRIPTION * resume webcam * PARAMETERS * rotate [IN] Preview rotate * RETURNS * MDI_RESULT *****************************************************************************/ MDI_RESULT mdi_webcam_resume(U16 rotate) { #ifdef MDI_WEBCAM_DRIVER_AVAIALBE /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ media_webcam_resume_req_struct resume_data; S32 ret; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ PRINT_INFORMATION("[MDI_WEBCAM] mdi_webcam_resume()"); resume_data.rotate = rotate + CAM_IMAGE_NORMAL; ret = media_webcam_resume(MOD_MMI, &resume_data); if (ret != MED_RES_OK) { return MDI_RES_WEBCAM_ERR_FAILED; } else { return MDI_RES_WEBCAM_SUCCEED; } #endif /* MDI_WEBCAM_DRIVER_AVAIALBE */ return MDI_RES_WEBCAM_SUCCEED; }