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

Commit 893516da authored by SGCMarkus's avatar SGCMarkus Committed by Jan Altensen
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 781a5b3d
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -213,10 +213,11 @@ 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;