本文整理汇总了Java中com.android.camera.util.CameraUtil.isAutoExposureLockSupported方法的典型用法代码示例。如果您正苦于以下问题:Java CameraUtil.isAutoExposureLockSupported方法的具体用法?Java CameraUtil.isAutoExposureLockSupported怎么用?Java CameraUtil.isAutoExposureLockSupported使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.android.camera.util.CameraUtil
的用法示例。
在下文中一共展示了CameraUtil.isAutoExposureLockSupported方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: tryEnable3ALocks
import com.android.camera.util.CameraUtil; //导入方法依赖的package包/类
synchronized boolean tryEnable3ALocks(boolean toggle) {
if (mLogVerbose) Log.v(TAG, "tryEnable3ALocks");
if (mCameraDevice == null) {
Log.d(TAG, "Camera already null. Not tryenabling 3A locks.");
return false;
}
Camera.Parameters params = mCameraDevice.getParameters();
if (CameraUtil.isAutoExposureLockSupported(params) &&
CameraUtil.isAutoWhiteBalanceLockSupported(params)) {
params.setAutoExposureLock(toggle);
params.setAutoWhiteBalanceLock(toggle);
mCameraDevice.setParameters(params);
return true;
}
return false;
}
示例2: initVideoEffect
import com.android.camera.util.CameraUtil; //导入方法依赖的package包/类
private void initVideoEffect(PreferenceGroup group, ListPreference videoEffect) {
CharSequence[] values = videoEffect.getEntryValues();
boolean goofyFaceSupported = true;
EffectsRecorder.isEffectSupported(EffectsRecorder.EFFECT_GOOFY_FACE);
boolean backdropperSupported =
EffectsRecorder.isEffectSupported(EffectsRecorder.EFFECT_BACKDROPPER) &&
CameraUtil.isAutoExposureLockSupported(mParameters) &&
CameraUtil.isAutoWhiteBalanceLockSupported(mParameters);
ArrayList<String> supported = new ArrayList<String>();
for (CharSequence value : values) {
String effectSelection = value.toString();
if (!goofyFaceSupported && effectSelection.startsWith("goofy_face")) continue;
if (!backdropperSupported && effectSelection.startsWith("backdropper")) continue;
supported.add(effectSelection);
}
filterUnsupportedOptions(group, videoEffect, supported);
}
示例3: initializeCapabilities
import com.android.camera.util.CameraUtil; //导入方法依赖的package包/类
private void initializeCapabilities() {
mInitialParams = mCameraDevice.getParameters();
mFocusAreaSupported = CameraUtil.isFocusAreaSupported(mInitialParams);
mMeteringAreaSupported = CameraUtil.isMeteringAreaSupported(mInitialParams);
mAeLockSupported = CameraUtil.isAutoExposureLockSupported(mInitialParams);
mAwbLockSupported = CameraUtil.isAutoWhiteBalanceLockSupported(mInitialParams);
mContinuousFocusSupported = mInitialParams.getSupportedFocusModes().contains(
CameraUtil.FOCUS_MODE_CONTINUOUS_PICTURE);
}
示例4: setParameters
import com.android.camera.util.CameraUtil; //导入方法依赖的package包/类
public void setParameters(Parameters parameters) {
// parameters can only be null when onConfigurationChanged is called
// before camera is open. We will just return in this case, because
// parameters will be set again later with the right parameters after
// camera is open.
if (parameters == null) return;
mParameters = parameters;
mFocusAreaSupported = CameraUtil.isFocusAreaSupported(parameters);
mMeteringAreaSupported = CameraUtil.isMeteringAreaSupported(parameters);
mLockAeAwbNeeded = (CameraUtil.isAutoExposureLockSupported(mParameters) ||
CameraUtil.isAutoWhiteBalanceLockSupported(mParameters));
}