Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 611c9627 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Camera: Use area for legacy size filters" into sc-dev am: aee4e567

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/14724026

Change-Id: I2b2cc41502f484e5bafba530e7702e88cda9c4f9
parents ff7b8129 aee4e567
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2976,7 +2976,7 @@ status_t Parameters::getFilteredSizes(Size limit, Vector<Size> *sizes) {
        const StreamConfiguration &sc = scs[i];
        if (sc.isInput == ANDROID_SCALER_AVAILABLE_STREAM_CONFIGURATIONS_OUTPUT &&
                sc.format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED &&
                sc.width <= limit.width && sc.height <= limit.height) {
                ((sc.width * sc.height) <= (limit.width * limit.height))) {
            int64_t minFrameDuration = getMinFrameDurationNs(
                    {sc.width, sc.height}, HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED);
            if (minFrameDuration > MAX_PREVIEW_RECORD_DURATION_NS) {