我正在使用camera2 api自定义相机,我的图像以字节保存,保存后,我的图像在三星os 9版手机上的图库中旋转。
CameraCharacteristics cameraCharacteristics = manager.getCameraCharacteristics("" +manager.getCameraIdList()[0]);
int rotation = cameraCharacteristics.get(CameraCharacteristics.SENSOR_ORIENTATION);
captureBuilder.set(CaptureRequest.JPEG_ORIENTATION, rotation);```