Merge "Camera: Relax input format requirements for RAW reprocessing." into udc-d1-dev am: 9c45688067
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23435876 Change-Id: I79f9c8ba0f1a54c6452a7f160bce6d75584110fa Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -20,6 +20,7 @@ import static com.android.internal.util.function.pooled.PooledLambda.obtainRunna
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.content.Context;
|
||||
import android.graphics.ImageFormat;
|
||||
import android.hardware.ICameraService;
|
||||
import android.hardware.camera2.CameraAccessException;
|
||||
import android.hardware.camera2.CameraCaptureSession;
|
||||
@@ -1478,6 +1479,12 @@ public class CameraDeviceImpl extends CameraDevice
|
||||
}
|
||||
}
|
||||
|
||||
// Allow RAW formats, even when not advertised.
|
||||
if (inputFormat == ImageFormat.RAW_PRIVATE || inputFormat == ImageFormat.RAW10
|
||||
|| inputFormat == ImageFormat.RAW12 || inputFormat == ImageFormat.RAW_SENSOR) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (validFormat == false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user