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

Commit aee4e567 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents f6d86a11 d2894fea
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) {