|
|
@ -145,12 +145,11 @@ public class SrsCameraView extends GLSurfaceView implements GLSurfaceView.Render
|
|
|
|
|
|
|
|
|
|
|
|
public int[] setPreviewResolution(int width, int height) {
|
|
|
|
public int[] setPreviewResolution(int width, int height) {
|
|
|
|
|
|
|
|
|
|
|
|
if (mCamera == null) {
|
|
|
|
if (mCamera != null) {
|
|
|
|
mCamera = openCamera();
|
|
|
|
stopCamera();
|
|
|
|
if (mCamera == null) {
|
|
|
|
}
|
|
|
|
return new int[] { 0, 0};
|
|
|
|
|
|
|
|
}
|
|
|
|
mCamera = openCamera();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mPreviewWidth = width;
|
|
|
|
mPreviewWidth = width;
|
|
|
|
mPreviewHeight = height;
|
|
|
|
mPreviewHeight = height;
|
|
|
|