Created
October 28, 2013 19:10
-
-
Save jvcleave/7202721 to your computer and use it in GitHub Desktop.
OMX_PARAM_CAMERADISABLEALGORITHMTYPE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| OMX_PARAM_CAMERADISABLEALGORITHMTYPE controlType; | |
| OMX_INIT_STRUCTURE(controlType); | |
| controlType.eAlgorithm = OMX_CameraDisableAlgorithmImageEffects; | |
| OMX_ERRORTYPE error = OMX_GetConfig(camera, OMX_IndexParamCameraDisableAlgorithm, &controlType); | |
| if(error != OMX_ErrorNone) | |
| { | |
| ofLog(OF_LOG_ERROR, "camera OMX_GetConfig OMX_IndexParamCameraDisableAlgorithm FAIL error: 0x%08x", error); | |
| }else | |
| { | |
| ofLogVerbose(__func__) << "camera OMX_GetConfig OMX_IndexParamCameraDisableAlgorithm PASS!!!!!!!! " << " bDisabled: " << controlType.bDisabled; | |
| } | |
| controlType.bDisabled = OMX_TRUE; | |
| error = OMX_SetConfig(camera, OMX_IndexParamCameraDisableAlgorithm, &controlType); | |
| if(error != OMX_ErrorNone) | |
| { | |
| ofLog(OF_LOG_ERROR, "camera OMX_SetConfig OMX_IndexParamCameraDisableAlgorithm FAIL error: 0x%08x", error); | |
| }else | |
| { | |
| ofLogVerbose(__func__) << "camera OMX_SetConfig OMX_IndexParamCameraDisableAlgorithm PASS!!!!!!!! " << " bDisabled: " << controlType.bDisabled; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment