{"id":20118,"url":"https://patchwork.libcamera.org/api/1.1/covers/20118/?format=json","web_url":"https://patchwork.libcamera.org/cover/20118/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20240529154341.10426-1-laurent.pinchart@ideasonboard.com>","date":"2024-05-29T15:43:35","name":"[v2,0/6] vimc scaling improvements","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/20118/mbox/","series":[{"id":4333,"url":"https://patchwork.libcamera.org/api/1.1/series/4333/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4333","date":"2024-05-29T15:43:35","name":"vimc scaling improvements","version":2,"mbox":"https://patchwork.libcamera.org/series/4333/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/20118/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 47342BDE6B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 29 May 2024 15:43:56 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 362D4634B7;\n\tWed, 29 May 2024 17:43:55 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 742706347E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 29 May 2024 17:43:53 +0200 (CEST)","from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi\n\t[81.175.209.231])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 95B7D149B\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 29 May 2024 17:43:49 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"BLq70rWu\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1716997429;\n\tbh=0IVDvQyTdEB156wv7hHrIpk3ld4/whTZEiQgbkGzoxI=;\n\th=From:To:Subject:Date:From;\n\tb=BLq70rWuFqvopYO0boVao2mNa2YxnHgl3TPubwKx93H8Z8Pf0ScQVrQpeTgfXZlB2\n\ttKg1ZsUhQ5tir/O/Qt8vxlB25VgjNP8m1qvLGLtqHdUpgLW1oQU7FL+NzjuI359Hke\n\t7vaYqYssB6cks3P5YWnZ2UCTyifDOon1BWIWY2kE=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Subject":"[PATCH v2 0/6] vimc scaling improvements","Date":"Wed, 29 May 2024 18:43:35 +0300","Message-ID":"<20240529154341.10426-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.44.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hello,\n\nThis series improves the vimc pipeline handler to avoid the weird\nalignment constraints related to the vimc scaler on recent kernels.\n\nStarting in v5.16, the vimc scaler doesn't hardcoded a x3 scaling ratio,\nbut makes the scaling configurable by userspace through the sink pad\ncrop rectangle. Take advantage of this feature to lift the strange\nalignment to a multiple of 6 for the stream output size. This allows\ncapturing all common display resolutions from the vimc pipeline handler,\nwhich is handy to test the DRM sink in the cam application.\n\nThe improvement, in patch 6/6, breaks 4 unit tests. The series starts\nwith improvements and fixes to the tests to avoid those breakages\n(patches 1/6 to 5/6), before changing the vimc pipeline handler\nbehaviour. Those test improvements would in my opinion make sense even\nwithout patch 6/6, as they fix a race condition (3/6) or accelerate the\ntest runs (1/6, 4/6 and 5/6) on fast machines.\n\nThe series has been tested with the unit tests, running on my\ndevelopment machine, in a local VM, and in the gitlab.freedesktop.org CI\nVM.\n\nLaurent Pinchart (6):\n  test: camera: Increase timeout for vimc capture tests\n  test: fence: Turn class member variable into local variable\n  test: fence: Fix race condition\n  test: fence: Increase timeout for fence test\n  test: v4l2_videodevice: Increase timeout for vimc capture tests\n  pipeline: vimc: Don't hardcode scaling factor with recent kernels\n\n src/libcamera/pipeline/vimc/vimc.cpp    | 47 +++++++++++-----\n test/camera/buffer_import.cpp           | 21 +++++--\n test/camera/capture.cpp                 | 22 +++++---\n test/fence.cpp                          | 75 ++++++++++++++++---------\n test/v4l2_videodevice/capture_async.cpp | 11 ++--\n 5 files changed, 116 insertions(+), 60 deletions(-)\n\n\nbase-commit: c79fa47aac9b38865dab5e9f29030903bf460c46"}