当前位置: 首页>>代码示例>>Java>>正文


Java CameraUtil.isAutoWhiteBalanceLockSupported方法代码示例

本文整理汇总了Java中com.android.camera.util.CameraUtil.isAutoWhiteBalanceLockSupported方法的典型用法代码示例。如果您正苦于以下问题:Java CameraUtil.isAutoWhiteBalanceLockSupported方法的具体用法?Java CameraUtil.isAutoWhiteBalanceLockSupported怎么用?Java CameraUtil.isAutoWhiteBalanceLockSupported使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.android.camera.util.CameraUtil的用法示例。


在下文中一共展示了CameraUtil.isAutoWhiteBalanceLockSupported方法的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;
}
 
开发者ID:asm-products,项目名称:nexus-camera,代码行数:17,代码来源:EffectsRecorder.java

示例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);
}
 
开发者ID:asm-products,项目名称:nexus-camera,代码行数:21,代码来源:CameraSettings.java

示例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);
}
 
开发者ID:asm-products,项目名称:nexus-camera,代码行数:10,代码来源:PhotoModule.java

示例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));
}
 
开发者ID:asm-products,项目名称:nexus-camera,代码行数:13,代码来源:FocusOverlayManager.java


注:本文中的com.android.camera.util.CameraUtil.isAutoWhiteBalanceLockSupported方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。