From patchwork Thu Jun 13 15:59:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Scally X-Patchwork-Id: 20308 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id ED2F3C3293 for ; Thu, 13 Jun 2024 16:00:12 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id CE8BF654B0; Thu, 13 Jun 2024 18:00:09 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="H7etLhCL"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id BECBD65496 for ; Thu, 13 Jun 2024 17:59:59 +0200 (CEST) Received: from mail.ideasonboard.com (cpc141996-chfd3-2-0-cust928.12-3.cable.virginm.net [86.13.91.161]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id AD0094CF; Thu, 13 Jun 2024 17:59:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1718294385; bh=xjqaARh2NF7JoZT/ADe1USBs9ot6ZFIrq3zPPmu5+gE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H7etLhCLHftfyyTBeQrXQhxdu7kAqmlr67rhpcX0+pESUYORbLcILrInBh3GZgbR6 xBwyVZ9HOvDVXBGomGF/Yw/hue7QuSTIKHtkmPcy6eKEqsZCHUf1K2r60dLvxDRJyy xe7hEeduOcX1Wl6Z81XKbJI7rYyglrtH2zYjTC7w= From: Daniel Scally To: libcamera-devel@lists.libcamera.org Cc: Daniel Scally Subject: [PATCH 7/7] libcamera: mali-c55: Record stride in rawConfig Date: Thu, 13 Jun 2024 16:59:49 +0100 Message-Id: <20240613155949.1041061-8-dan.scally@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240613155949.1041061-1-dan.scally@ideasonboard.com> References: <20240613155949.1041061-1-dan.scally@ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The DNGWriter class needs to know the stride of a RAW image for some of its uses. Add stride to rawConfig in the mali-c55 pipeline handler so that it's available to DNGWriter. Signed-off-by: Daniel Scally Reviewed-by: Kieran Bingham --- src/libcamera/pipeline/mali-c55/mali-c55.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libcamera/pipeline/mali-c55/mali-c55.cpp b/src/libcamera/pipeline/mali-c55/mali-c55.cpp index 9cd243a3..a9ea2e04 100644 --- a/src/libcamera/pipeline/mali-c55/mali-c55.cpp +++ b/src/libcamera/pipeline/mali-c55/mali-c55.cpp @@ -382,6 +382,9 @@ CameraConfiguration::Status MaliC55CameraConfiguration::validate() maxSize = rawSize; + const PixelFormatInfo &info = PixelFormatInfo::info(rawConfig->pixelFormat); + rawConfig->stride = info.stride(rawConfig->size.width, 0, 64); + rawConfig->setStream(const_cast(&data_->frStream_)); frPipeAvailable = false; }