From patchwork Mon Oct 6 16:54:37 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 508 Return-Path: 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=1759769723; bh=vvt5MZdT5EV7ypgBEKYFtgG3HElnqF/yRBN13vcArC8=; 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=JLPC+IxNNhNqQaKGznMC90iNNliDbU99621bBBDSojMX9Xx+BvM4FoW9YMCkgZ7Hr LpHsdZxZ2G7e8XkDQy9lqtD0mjpewKnCfRsE+FjKzuG1DYburULVqALMQuLCafGh+o JXPYtL21DEsVUe1V2V+oLOdq+XlnwkvO26tMkl/gxj1c87Ggc3jPIHs7VB0S++7Nc8 Oy28mRFK5M1C2E4WD+5R7NfMXcoPsWNaWwBgQi/uI1tD4wbYROLlTGjiTb6syMTDHt LW/uO8QD7+OmXB1L1XtkfwicyssZZLF9oTC58ConR3+JmJKTOIHQ+6BG0RsLhSUDGA h6S4lx0lFG0Uw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 8E4C967FB1 for ; Mon, 6 Oct 2025 10:55:23 -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 8bPLg4BWSCRB for ; Mon, 6 Oct 2025 10:55:23 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759769722; bh=vvt5MZdT5EV7ypgBEKYFtgG3HElnqF/yRBN13vcArC8=; 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=OUrbcZdvch6IyJW6MhcFwSRp1ZkrdJmOe0j2ut775H34DJIu0QXt5g62g4jziZ92l zyVagRH9SoixLaon/4Xs8PfSo+Lwm3v6545k+hVkBXv6Tc6SNsMMZYKWUevxHmYAyh 4BpwRrMFWub+C0BGTCJp18IpGCN+370Xd5mGlJ9Du2C5F7epI5qveCpIJJqOJvBOlg 8x792s+S6cBlhGUcOBfqxDTAeFVZrn8jx60V1A9DK/DmJCnSPdKiDhZraKGc3QEtGU F+6jZICs3lEDefJ21c9XpE9E5UjU7YimQvvOaZfASXvojX0XykNUOX0a41NExU4xII TSm4kKhVsmPDQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 68E6867FBA for ; Mon, 6 Oct 2025 10:55:22 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759769718; bh=5N9KAUQgddU8HBoEqBG2H+ASYr0qCP0a6Y2b6tmgvYk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PF+fX2ECrKffBfdok2N4Dp/iZnb6f3yg884q7/xAhAvhEOwZX0imELRq8mpxIOWQE Ro3CsmUFek0mT4YA2OJUwu4C3li0IvUtLC+T4XEgm5Sv3gzORuGtWvFVnHqi8dps14 CZRcWl6ThPFpSIh0atLRQeQmJBxKhCQpD7/7rkv1xgh61ynIMyG68NzfGYWg5KIXxc lPRVehskSqZnCQiPpfcJ6sDslkmgzqsafTC9BiLrAC1FY2gusNY5sy0Cvpq8WPva3m xcZ+prv9HpkEFYTZoVmOgcXjUpKFaYL6A8up2qu2ZDFGJc8pXIbdz8gEFi1R3xv0As 6f4ygMayND/uw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id DD9C967ECE; Mon, 6 Oct 2025 10:55:18 -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 LVGgbM6ZF6oc; Mon, 6 Oct 2025 10:55:18 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759769718; bh=YwHDdWjCYyYzqaB0JsxMzQJktV/9VyyC81FT1nBRshU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D3mr02bZF8gZr4z9NqFrCB9D2UlNyC0dgJ316T4i2VPxZ0fhNL37ivqAImQ5bHcmI 84GCb/a7lqNxtkY7cOvAXWBcCmmg51y6myoaZZXqr7XTFjHUIS63seTEdGXoqLDFFP RQlHw7x8++wU+xj2pCM3Ve7ThqCh5qm8N8l2M2nnEeZP6dF9SB4M610Ig/3vhbw38r BuPYijyKzgUdPzdq9a0FXUi/D63ahQF3vitTikzOuc1CE0WeqizASRU3XAbIEPkWr0 2EpqxMvkcPEbA/9ArEZeyEfNGhV9TMUQOhXxxLNmqzAv+DTxMoM9MnzM90aWcrx1wp kuDZaeeBBIpLA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id DD3C467F09; Mon, 6 Oct 2025 10:55:17 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Mon, 6 Oct 2025 10:54:37 -0600 Message-ID: <20251006165452.1675349-6-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: VNZRGRHXPRNSU2QSQ5SDCRIPGTO6MTWZ X-Message-ID-Hash: VNZRGRHXPRNSU2QSQ5SDCRIPGTO6MTWZ 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 , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 05/14] video: Add struct vid_size for width/height List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Add struct vid_size with w and h members to represent dimensions in video operations, complementing struct vid_pos for positions and struct vid_bbox for bounding boxes. Signed-off-by: Simon Glass --- include/video_defs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/video_defs.h b/include/video_defs.h index 397764a5d3c..ba60765bb4a 100644 --- a/include/video_defs.h +++ b/include/video_defs.h @@ -59,6 +59,17 @@ struct vid_pos { int y; }; +/** + * struct vid_size - Represents a size for video operations + * + * @w: Width in pixels + * @h: Height in pixels + */ +struct vid_size { + int w; + int h; +}; + #endif /* __ASSEMBLY__ */ #endif /* __VIDEO_DEFS_H */