mmf_return_val_if_fail((void *)camcorder, MM_ERROR_CAMCORDER_INVALID_ARGUMENT);
mmf_return_val_if_fail((void *)info, MM_ERROR_CAMCORDER_INVALID_ARGUMENT);
- _mmcam_dbg_err("");
+ MMCAM_LOG_ERROR("");
traceBegin(TTRACE_TAG_CAMERA, "MMCAMCORDER:CREATE");
traceEnd(TTRACE_TAG_CAMERA);
- _mmcam_dbg_err("END");
+ MMCAM_LOG_ERROR("END");
return error;
}
mmf_return_val_if_fail((void *)camcorder, MM_ERROR_CAMCORDER_INVALID_ARGUMENT);
- _mmcam_dbg_err("");
+ MMCAM_LOG_ERROR("");
traceBegin(TTRACE_TAG_CAMERA, "MMCAMCORDER:DESTROY");
traceEnd(TTRACE_TAG_CAMERA);
- _mmcam_dbg_err("END!!!");
+ MMCAM_LOG_ERROR("END!!!");
return error;
}
mmf_return_val_if_fail((void *)camcorder, MM_ERROR_CAMCORDER_INVALID_ARGUMENT);
- _mmcam_dbg_err("");
+ MMCAM_LOG_ERROR("");
_MMCAMCORDER_LOCK_INTERRUPT(camcorder);
_MMCAMCORDER_UNLOCK_INTERRUPT(camcorder);
- _mmcam_dbg_err("END");
+ MMCAM_LOG_ERROR("END");
return error;
}
mmf_return_val_if_fail((void *)camcorder, MM_ERROR_CAMCORDER_INVALID_ARGUMENT);
- _mmcam_dbg_err("");
+ MMCAM_LOG_ERROR("");
_MMCAMCORDER_LOCK_INTERRUPT(camcorder);
_MMCAMCORDER_UNLOCK_INTERRUPT(camcorder);
- _mmcam_dbg_err("END");
+ MMCAM_LOG_ERROR("END");
return error;
}
mmf_return_val_if_fail((void *)camcorder, MM_ERROR_CAMCORDER_INVALID_ARGUMENT);
- _mmcam_dbg_err("");
+ MMCAM_LOG_ERROR("");
_MMCAMCORDER_LOCK_INTERRUPT(camcorder);
_MMCAMCORDER_UNLOCK_INTERRUPT(camcorder);
- _mmcam_dbg_err("END");
+ MMCAM_LOG_ERROR("END");
return error;
}
mmf_return_val_if_fail((void *)camcorder, MM_ERROR_CAMCORDER_INVALID_ARGUMENT);
- _mmcam_dbg_err("");
+ MMCAM_LOG_ERROR("");
_MMCAMCORDER_LOCK_INTERRUPT(camcorder);
_MMCAMCORDER_UNLOCK_INTERRUPT(camcorder);
- _mmcam_dbg_err("END");
+ MMCAM_LOG_ERROR("END");
return error;
}
mmf_return_val_if_fail((void *)camcorder, MM_ERROR_CAMCORDER_INVALID_ARGUMENT);
- _mmcam_dbg_err("");
+ MMCAM_LOG_ERROR("");
_MMCAMCORDER_LOCK_INTERRUPT(camcorder);
_MMCAMCORDER_UNLOCK_INTERRUPT(camcorder);
- _mmcam_dbg_err("END");
+ MMCAM_LOG_ERROR("END");
return error;
}
mmf_return_val_if_fail((void *)camcorder, MM_ERROR_CAMCORDER_INVALID_ARGUMENT);
- _mmcam_dbg_err("");
+ MMCAM_LOG_ERROR("");
_MMCAMCORDER_LOCK_INTERRUPT(camcorder);
_MMCAMCORDER_UNLOCK_INTERRUPT(camcorder);
- _mmcam_dbg_err("END");
+ MMCAM_LOG_ERROR("END");
return error;
}
mmf_return_val_if_fail((void*)camcorder, MM_ERROR_CAMCORDER_INVALID_ARGUMENT);
- _mmcam_dbg_err("");
+ MMCAM_LOG_ERROR("");
_MMCAMCORDER_LOCK_INTERRUPT(camcorder);
_MMCAMCORDER_UNLOCK_INTERRUPT(camcorder);
- _mmcam_dbg_err("END");
+ MMCAM_LOG_ERROR("END");
return error;
}
mmf_return_val_if_fail((void *)camcorder, MM_ERROR_CAMCORDER_INVALID_ARGUMENT);
- _mmcam_dbg_err("");
+ MMCAM_LOG_ERROR("");
_MMCAMCORDER_LOCK_INTERRUPT(camcorder);
_MMCAMCORDER_UNLOCK_INTERRUPT(camcorder);
- _mmcam_dbg_err("END");
+ MMCAM_LOG_ERROR("END");
return error;
}
mmf_return_val_if_fail((void *)camcorder, MM_ERROR_CAMCORDER_INVALID_ARGUMENT);
- _mmcam_dbg_err("");
+ MMCAM_LOG_ERROR("");
_MMCAMCORDER_LOCK_INTERRUPT(camcorder);
_MMCAMCORDER_UNLOCK_INTERRUPT(camcorder);
- _mmcam_dbg_err("END");
+ MMCAM_LOG_ERROR("END");
return error;
}
mmf_return_val_if_fail((void *)camcorder, MM_ERROR_CAMCORDER_INVALID_ARGUMENT);
- _mmcam_dbg_err("");
+ MMCAM_LOG_ERROR("");
_MMCAMCORDER_LOCK_INTERRUPT(camcorder);
_MMCAMCORDER_UNLOCK_INTERRUPT(camcorder);
- _mmcam_dbg_err("END");
+ MMCAM_LOG_ERROR("END");
return error;
}
int ret = MM_ERROR_NONE;
if (!camcorder) {
- _mmcam_dbg_warn("Empty handle.");
+ MMCAM_LOG_WARNING("Empty handle.");
return MM_ERROR_CAMCORDER_INVALID_ARGUMENT;
}
int mm_camcorder_get_state2(MMHandleType camcorder, MMCamcorderStateType *state, MMCamcorderStateType *old_state)
{
if (!camcorder) {
- _mmcam_dbg_warn("Empty handle.");
+ MMCAM_LOG_WARNING("Empty handle.");
return MM_ERROR_CAMCORDER_INVALID_ARGUMENT;
}
return _mmcamcorder_manage_external_storage_state(camcorder, storage_state);
}
+
+int mm_camcorder_get_focus_level(MMHandleType camcorder, int *level)
+{
+ mmf_return_val_if_fail((void *)camcorder, MM_ERROR_CAMCORDER_INVALID_ARGUMENT);
+
+ return _mmcamcorder_get_focus_level(camcorder, level);
+}
+
+int mm_camcorder_get_log_level(void)
+{
+ return _mmcamcorder_get_log_level();
+}