码迷,mamicode.com
首页 > 移动开发 > 详细

Android L Camera2 PreviewBuilder set CaptureRequest.CONTROL_EFFECT_MODE not work.

时间:2014-11-12 17:53:26      阅读:529      评论:0      收藏:0      [点我收藏+]

标签:android   style   blog   io   color   ar   java   sp   strong   

设备 : 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.

标签:android   style   blog   io   color   ar   java   sp   strong   

原文地址:http://blog.csdn.net/torvalbill/article/details/41046187

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!