首页 > 代码库 > Android L Camera2 PreviewBuilder set CaptureRequest.CONTROL_EFFECT_MODE not work.

Android L Camera2 PreviewBuilder set CaptureRequest.CONTROL_EFFECT_MODE not work.

设备 : Nexus 7 wifi 2013

软件版本 : razor-lpx13d-preview-ae4f461f.tgz


    mCameraManager.openCamera(mCameraID, mStateCallback, null); 
    
    mPreviewBuilder = mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);
    
    mCameraDevice.createCaptureSession(Arrays.asList(surface), mStateCallback, null);
    
    mPreviewBuilder.set(CaptureRequest.CONTROL_MODE, CameraMetadata.CONTROL_MODE_AUTO);
    
    <strong><span style="color:#ff0000;">mPreviewBuilder.set(CaptureRequest.CONTROL_EFFECT_MODE, CameraMetadata.CONTROL_EFFECT_MODE_NEGATIVE);</span></strong>
    
    mPreviewSession.setRepeatingRequest(mPreviewBuilder.build(), mCaptureCallback, null);

想设置效果不好使,有谁知道怎么设置吗?

Android L Camera2 PreviewBuilder set CaptureRequest.CONTROL_EFFECT_MODE not work.