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

Unverified Commit 776a710c authored by SGCMarkus's avatar SGCMarkus Committed by Michael Bestas
Browse files

Camera: Avoid roundBufferDimensionsNearest also for HAL_PIXEL_FORMAT_BLOB

This fixes the Ultra-Res feature with Motorolas MotCamera3
It uses multiple camera streams, with only the blob format using the
full sensor size (e.g. on berlin: 12000 x 9000 for 108 MP)

Change-Id: I025e068b2d3ff1123599ae5655655876ee28f39b
parent 4aadfb1d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -234,9 +234,10 @@ bool roundBufferDimensionNearest(int32_t width, int32_t height,
    // Avoid roundBufferDimensionsNearest for privileged client YUV streams to meet the AIDE2
    // requirement. AIDE2 is vendor enhanced feature which requires special resolutions and
    // those are not populated in static capabilities.
    if (isPriviledgedClient == true && format == HAL_PIXEL_FORMAT_YCbCr_420_888) {
    if (isPriviledgedClient == true &&
            (format == HAL_PIXEL_FORMAT_YCbCr_420_888 || format == HAL_PIXEL_FORMAT_BLOB)) {
        ALOGI("Bypass roundBufferDimensionNearest for privilegedClient YUV streams "
                "width %d height %d", width, height);
                "width %d height %d for format %d", width, height, format);

        bestWidth  = width;
        bestHeight = height;