| Message ID | 20260119204130.3972647-21-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=1768855405; bh=6ipS9+gQ1mXzABf9wSdGalH9xKG2jJYnwvDA4GdACaM=; 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=n5dRCTIlk+ku0upN3OmnfUMHEUZuJLVduOp2zVMEDR7jNvnaeSTnxMD9bdsR+1kMm MJGWfhv+OVLQmwrQtczGCGy5r5V/Og1K/DV6MFAvmoBTZiwLo5oDWLWHzSFcarR6id BNc4BArtc/4PbcU8Pq4rlQZdYXLuD7H8Xi+y+gy2WDZ2lpC1ZKHuF9Mf6Egm7XR0Yj KMdPi4edxLp/Eoel/8jasXyY9zZVc7+hzG7guWNNNgsGlnb/FOFK0qUWESqob+NZCx pgYbNu1oOOIJQbImXXGEm8gXSc4Hnd3wLP4g9mg2UeuTtR+F7rg1qkkO33cZuTNWDV SGvpBqmV7bpCw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 99BBF6951C for <u-boot-concept@u-boot.org>; Mon, 19 Jan 2026 13:43:25 -0700 (MST) 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 HaDw7mo4hprb for <u-boot-concept@u-boot.org>; Mon, 19 Jan 2026 13:43:25 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855405; bh=6ipS9+gQ1mXzABf9wSdGalH9xKG2jJYnwvDA4GdACaM=; 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=n5dRCTIlk+ku0upN3OmnfUMHEUZuJLVduOp2zVMEDR7jNvnaeSTnxMD9bdsR+1kMm MJGWfhv+OVLQmwrQtczGCGy5r5V/Og1K/DV6MFAvmoBTZiwLo5oDWLWHzSFcarR6id BNc4BArtc/4PbcU8Pq4rlQZdYXLuD7H8Xi+y+gy2WDZ2lpC1ZKHuF9Mf6Egm7XR0Yj KMdPi4edxLp/Eoel/8jasXyY9zZVc7+hzG7guWNNNgsGlnb/FOFK0qUWESqob+NZCx pgYbNu1oOOIJQbImXXGEm8gXSc4Hnd3wLP4g9mg2UeuTtR+F7rg1qkkO33cZuTNWDV SGvpBqmV7bpCw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 87D9369504 for <u-boot-concept@u-boot.org>; Mon, 19 Jan 2026 13:43:25 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855403; bh=Jyl9ZM7GoeOvzNHqyZaSCfrOBFnh5+iRgABlT6UTbgU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dtWZNqyJclott0XgyPO3zA3t4TBZ/WVvC1k9NPJ/lfimaKtgBhTiZ3LbMZWt21QYA GySki/Y9zXLXStPXipF570HJyqEoMbrws8tktMyhm2uLM4EbHO5I9VDucWLMSS6jCC jdhY+ivVINtkMg40SpoI6/r7yU/WhgJRr5qijMgcccjEZOFGYhUO/l3vxjgkJGZBkb fmpF2hq3hq6nOYc1DhyAQyRb/PuqY3wG9blmIYu+WDslVlwjFXfl3oybyeGI9byrYn R03tAJOWWLVw2vkMXwtn5GOierqIDhZpaktHBu+1XnKP+wQPbQPMtCDCd7VPNhxdsZ fofEL24j+r7Eg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 29CDC693BA; Mon, 19 Jan 2026 13:43:23 -0700 (MST) 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 3gMAamZerkmw; Mon, 19 Jan 2026 13:43:23 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855399; bh=/5PU0nVg6oVI1WH646pubEI/CkXxhc3xVoVOrZFEBro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wRWPp8db/vAJmxRRBkcygZGXgUdpu5bWA7fxDn/xipb3elAdKpoNwBkF8xjlFbZ1h +MDQ20HNG2bpQUt+btrW9J3S3dBOM+2DNRfyrxGFl6G6N6bk1KyVpRBfvOMLnvNlIh u5Rvpn9QbSrSsEPf+4BMKzSuNx8fmWYNdS+vu8xPqP5adB65w7vaG8gLWTjSFYBK9B 0bBxTwf+D9nlxM1ek/308e4TURKLi/KjaNl5LjvSa3Sfv7GvaJnJvpS86DcjMHNRIK D/ykskffIdfOEZu2fIhQlY1rbhivK7yRZQFO3jQpEF4amdCQVDQIP7DEfIZzngOZdB G2puR4yAvPm/w== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id D5FB5693E3; Mon, 19 Jan 2026 13:43:18 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Mon, 19 Jan 2026 13:41:13 -0700 Message-ID: <20260119204130.3972647-21-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260119204130.3972647-1-sjg@u-boot.org> References: <20260119204130.3972647-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: RIPXIMHP725HSCEVQ5XJCPAJGAWMVU7N X-Message-ID-Hash: RIPXIMHP725HSCEVQ5XJCPAJGAWMVU7N 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: Simon Glass <simon.glass@canonical.com>, "Claude Opus 4 . 5" <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 20/27] expo: Add per-line measurement logging 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/RIPXIMHP725HSCEVQ5XJCPAJGAWMVU7N/> 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 debugging and textedit improvements (part E)
|
|
Commit Message
Simon Glass
Jan. 19, 2026, 8:41 p.m. UTC
From: Simon Glass <simon.glass@canonical.com> Add detailed per-line measurement logging using log_content(), showing each line's bounding box and text content after measurement. Use scene_chklog() to filter which objects produce log output. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- boot/scene.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/boot/scene.c b/boot/scene.c index 9cade9aad41..b64ddf51630 100644 --- a/boot/scene.c +++ b/boot/scene.c @@ -535,13 +535,27 @@ int scene_obj_get_hw(struct scene *scn, uint id, int *widthp) limit = obj->flags & SCENEOF_SIZE_VALID ? obj->req_bbox.x1 - obj->req_bbox.x0 : -1; - log_debug("obj %s limit %d\n", obj->name, limit); ret = vidconsole_measure(scn->expo->cons, gen->font_name, gen->font_size, str, limit, &bbox, &gen->lines); if (ret) return log_msg_ret("mea", ret); + if (scene_chklog(obj->name)) { + log_debug("obj %s limit %d: %d lines, width %d height %d\n", + obj->name, limit, gen->lines.count, + bbox.x1, bbox.y1); + for (int i = 0; i < gen->lines.count; i++) { + const struct vidconsole_mline *mline; + + mline = alist_get(&gen->lines, i, + struct vidconsole_mline); + log_content("line %d: %d,%d %d,%d '%.*s'\n", i, + mline->bbox.x0, mline->bbox.y0, + mline->bbox.x1, mline->bbox.y1, + mline->len, str + mline->start); + } + } if (widthp) *widthp = bbox.x1;