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

Commit 05bbae99 authored by Igor Murashkin's avatar Igor Murashkin
Browse files

camera2: Add height to the crop region metadata property

Bug: 8756080
Change-Id: I90b9166440e92f7675255a01ddc4a980c2e52201
parent 831a0055
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1810,13 +1810,14 @@ status_t Parameters::updateRequest(CameraMetadata *request) const {
            CropRegion::OUTPUT_PREVIEW     |
            CropRegion::OUTPUT_VIDEO       |
            CropRegion::OUTPUT_PICTURE    ));
    int32_t reqCropRegion[3] = {
    int32_t reqCropRegion[4] = {
        static_cast<int32_t>(crop.left),
        static_cast<int32_t>(crop.top),
        static_cast<int32_t>(crop.width)
        static_cast<int32_t>(crop.width),
        static_cast<int32_t>(crop.height)
    };
    res = request->update(ANDROID_SCALER_CROP_REGION,
            reqCropRegion, 3);
            reqCropRegion, 4);
    if (res != OK) return res;

    uint8_t reqVstabMode = videoStabilization ?