Android: enable camera video stabilization when available.
R=henrike@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2347005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4929 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
7fca2ce097
commit
4598380860
@ -89,6 +89,11 @@ public class VideoCaptureAndroid implements PreviewCallback, Callback {
|
||||
}
|
||||
|
||||
Camera.Parameters parameters = camera.getParameters();
|
||||
Log.d(TAG, "isVideoStabilizationSupported: " +
|
||||
parameters.isVideoStabilizationSupported());
|
||||
if (parameters.isVideoStabilizationSupported()) {
|
||||
parameters.setVideoStabilization(true);
|
||||
}
|
||||
parameters.setPreviewSize(width, height);
|
||||
parameters.setPreviewFpsRange(min_mfps, max_mfps);
|
||||
int format = ImageFormat.NV21;
|
||||
|
Loading…
Reference in New Issue
Block a user