Skip to content

Instantly share code, notes, and snippets.

@jvcleave
Created October 28, 2013 19:10
Show Gist options
  • Select an option

  • Save jvcleave/7202721 to your computer and use it in GitHub Desktop.

Select an option

Save jvcleave/7202721 to your computer and use it in GitHub Desktop.
OMX_PARAM_CAMERADISABLEALGORITHMTYPE
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