Skip to content
Snippets Groups Projects
Commit 0f9e5f05 authored by Leo Ma's avatar Leo Ma
Browse files

Set surface view fixed size adapting to preview


Signed-off-by: default avatarLeo Ma <begeekmyfriend@gmail.com>
parent bd6f929b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -133,8 +133,9 @@ public class SrsCameraView extends GLSurfaceView implements GLSurfaceView.Render
}
 
public int[] setPreviewResolution(int width, int height) {
mCamera = openCamera();
getHolder().setFixedSize(width, height);
 
mCamera = openCamera();
mPreviewWidth = width;
mPreviewHeight = height;
Camera.Size rs = adaptPreviewResolution(mCamera.new Size(width, height));
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment