Feature: remove front camera flip

pull/221/head
xufuji456 2 years ago
parent 9278f58044
commit 3f9d652e23
  1. 4
      Live/src/main/java/com/frank/live/camera/Camera2Helper.java

@ -593,10 +593,6 @@ public class Camera2Helper {
} else { } else {
YUVUtil.YUV420pRotate180(dstData, yuvData, width, height); YUVUtil.YUV420pRotate180(dstData, yuvData, width, height);
} }
// front camera need to flip
if (CAMERA_ID_FRONT.equals(mCameraId)) {
YUVUtil.flipYUV(dstData, yuvData, width, height);
}
if (camera2Listener != null) { if (camera2Listener != null) {
camera2Listener.onPreviewFrame(dstData); camera2Listener.onPreviewFrame(dstData);
} }

Loading…
Cancel
Save