| Message ID | 20251006165452.1675349-2-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759769715; bh=2t09C6QhZHYwymS1/x6UDBIgYu+ReGgFPHa1yaAsPRo=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=aEkn9JGOMJxH4sFasXx6rGoVoRSoQP8T2HIuyfjuxpfxc4pQEf9RjlndoFOvcvzrr 5Pm3z4hea8qvSttq5DqFAhjPbY3S0rCLcTR2oWGHjSnFz7qONAFzLEAaUQz2fzy9BG 7sCZGuNeNHeypEUVODfJfxMNvE03T39ufuho83+Xrj2G/t4VthoPYTMELi1q80Inan tZelqu9L1JJLs+PtiN0dVWwHlHuaE1PqQ3S9//o9n/XfduLbkPTh22uTLzoM8XfB6N WEqfZyH1Gy25gHQV6jZ73QKIUywcW8mFdHRwkIkzP9yxqfDe2ZgytjMZ3REGHTdsDx h3A/YoCEK8OyQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E0EB167FB1 for <u-boot-concept@u-boot.org>; Mon, 6 Oct 2025 10:55:15 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id f1fYN1PSc7qM for <u-boot-concept@u-boot.org>; Mon, 6 Oct 2025 10:55:15 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759769713; bh=2t09C6QhZHYwymS1/x6UDBIgYu+ReGgFPHa1yaAsPRo=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=nEGaRksy/SjR9P71r1u2FP5nQpKVqgZQDUET+LN2oq8HX9bzziZOG5pYzyCehb1KU fDrZJUckejcUAqcd4Issb303hTGTnIEnay70xb1m+sERVOHIvKCPKj9guF/muChh5y elS+VBCSm3o29Nu/hAvZCHYTg3tTLaPghRQL5oloZ+12UD0SVlDLkmWqw+aorKvfW3 +PRMHKRsBNyLAh7seiYN8kFb7aGWPt05GOffkeeeUYoIrDOBUP2OtNsBfttc32ATDE x8NujPvxGJX9oDjDDwFlAd/lE0X9s7h/+eB/QHkbPtyLejJkWSzEcY8KrhRcA3IO7C M4aXURtszWdbw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E304767FB3 for <u-boot-concept@u-boot.org>; Mon, 6 Oct 2025 10:55:13 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759769710; bh=aRVQ5y7Aj919SLqSJAqAKAmXHFIgNwTPhtZ1h9/DXWI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wIuGxGy1cnLsnimRoeXJ984rD4T6hLz6i6u0qNaBLFRkQwFYabBJh/3NMztTDB2Af 4s+vvk0oJqW0aVi14ylI87XQxS9qGoKlvDIoIbPnGcT+tgv7zBLperwndKK4VI4+Ou BTyfMvb6lt55uX4mZThjQWziupf5rTmJTYH4QMSfe850jteyp4pb9eTkI417IMTR7b nCDoTAyCLXMxoOO2RdSHH/HCsmuoujoWvxaIiVm07DaVj/UE2faLFiNhcRd0wawTKP CTtsOehpAxPXKe4OCTsqzhUMnO4oPqekDIbLElL0OxnjryD1gKigUdyG48l+QOOKve BL9wKAutKskOw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 015BA67F03; Mon, 6 Oct 2025 10:55:10 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id fQaJtkNOtwI3; Mon, 6 Oct 2025 10:55:09 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759769709; bh=jOpP2MZwVnLN97/Xb3JoGps7dy6pib7dOv2nHVY01XE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eYkUlog87j93P7qeqAjQd0SKNon0Q0/OEl4PprVYS1XQ/EKnr1HXpauNE1RSu45o3 xZ10+mD89GoXPI6FwN0vX7r879LXhA0+iDH8/Ed9Z5fGYisI1qENX5cXdkYIFG/pMr MXa8n2bjpcyPDOzbj3EByTFjm5RrJDSmIQ1K5t7gh9GGqEImMqP0GQef9pNN3xDqmX 6kPT8GjrJGAphfZNgX9itbAX+nfvq2yY+9a1foOAKJ0R+UXMGUMmE8VQM0UqTkoH4l WBxz+8hXm6tm9SgivE77r2xd1KSPnaqPFtT/RfW0Cjrk0KcMXQStWxlgsAPt/IV2Ye VUkyDKaJlaQHg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 35F0F67ECE; Mon, 6 Oct 2025 10:55:09 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Mon, 6 Oct 2025 10:54:33 -0600 Message-ID: <20251006165452.1675349-2-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251006165452.1675349-1-sjg@u-boot.org> References: <20251006165452.1675349-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: ULJKCEG73OEH6LH55TAO64SVH5MSWFAX X-Message-ID-Hash: ULJKCEG73OEH6LH55TAO64SVH5MSWFAX X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org>, Claude <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 01/14] video: Add struct vid_pos for coordinates List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/ULJKCEG73OEH6LH55TAO64SVH5MSWFAX/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
expo: Continue development of expo with mouse
|
|
Commit Message
Simon Glass
Oct. 6, 2025, 4:54 p.m. UTC
From: Simon Glass <sjg@chromium.org> Add a simple struct to represent x,y coordinates. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Simon Glass <sjg@chromium.org> --- include/video_defs.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/include/video_defs.h b/include/video_defs.h index 3ff9e786abc..397764a5d3c 100644 --- a/include/video_defs.h +++ b/include/video_defs.h @@ -47,6 +47,18 @@ static inline bool vid_bbox_valid(const struct vid_bbox *bbox) { return bbox->x1 > bbox->x0 && bbox->y1 > bbox->y0; } + +/** + * struct vid_pos - Represents a position for video operations + * + * @x: X coordinate in pixels from the left + * @y: Y coordinate in pixels from the top + */ +struct vid_pos { + int x; + int y; +}; + #endif /* __ASSEMBLY__ */ #endif /* __VIDEO_DEFS_H */