From patchwork Wed Mar 26 07:51:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 23024 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 88462C3213 for ; Wed, 26 Mar 2025 07:51:58 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7C1F668952; Wed, 26 Mar 2025 08:51:57 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="G1V5NL1o"; 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 3491E617F1 for ; Wed, 26 Mar 2025 08:51:56 +0100 (CET) Received: from neptunite.flets-east.jp (unknown [IPv6:2404:7a81:160:2100:7402:917d:ea0c:6d4c]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 382213A4; Wed, 26 Mar 2025 08:50:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1742975408; bh=v6X24Tc4NGIAs/4G7gf+TI0AusCtR0oJdTTP/9/6Bew=; h=From:To:Cc:Subject:Date:From; b=G1V5NL1oT7e45v0k5//Pe5O6rrJYkRkTfDe2h/k8xGG1bMYEUj3fLB9olgq61l+SC 0Knh4fGZ3NcFN9Ru3TBa9C+ikeExh79SYHAp8p7lIvxSHmhshyWwgKXtwWdrJliJ0/ Ab0NumbdRtcfCeBS05ElJP9PxFvQLTNBlD3TJyEI= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: Paul Elder Subject: [PATCH 0/3] libcamera: framebuffer: Add offset Date: Wed, 26 Mar 2025 16:51:24 +0900 Message-ID: <20250326075129.1705736-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.47.2 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" To support cameras that store embedded data in the frame payload, add an offset field to the FrameMetadata so that applications can properly handle offset. While it is possible that the consumer of the data may not be able to handle the offset correctly (such as display devices), it ought to be better to at least expose this information so that consumers that can handle it can handle it properly (unless we want to mark such cameras as defective). What do people think? Paul Elder (3): libcamera: framebuffer: Add offset field to metadata libcamera: v4l2_videodevice: Report offset in dequeueBuffer apps: cam: Print offset info include/libcamera/framebuffer.h | 1 + src/apps/cam/camera_session.cpp | 8 +++++++- src/libcamera/v4l2_videodevice.cpp | 5 ++++- 3 files changed, 12 insertions(+), 2 deletions(-)