From patchwork Mon Jan 19 20:41:08 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1645 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=1768855385; bh=55dumjVmPb+ci5gb2Ikxs6bMtXHVZh3fyabDLGk/FUg=; 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=ZoabWxv89HEGzIFrosK7Hp9lcr0nsrLWP1GX5jIIdkJNQhA1/6SQeVxHYX4LjTdZ1 5xxrueJLxDs5wBaOiLIHE+D5fQdKiuiA24XgnyrTvaFjXPBYtgOJduo65itvFuUgdN GgZfMvQiaKTvDUI2/FGbVStABX8pyCPW9k4HFiaRf9fH6hPpaddZLTMrElTN374JBl rhf9tdsHg/w1Ixwufy/tUo3czQtKZUs74NytORyAOfg0DFlg9QW+Pjsq/YsTbWJfEs /LojyCyS+vpc3W1BIqXiIm4D9QWeghSnsWzO9Iv0K1clgFZ2ZXNZ7BgwNk8He9x2i2 J4Dl8PjZaQtDA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9A6D869519 for ; Mon, 19 Jan 2026 13:43:05 -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 Wov7jJief5FU for ; Mon, 19 Jan 2026 13:43:05 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855385; bh=55dumjVmPb+ci5gb2Ikxs6bMtXHVZh3fyabDLGk/FUg=; 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=ZoabWxv89HEGzIFrosK7Hp9lcr0nsrLWP1GX5jIIdkJNQhA1/6SQeVxHYX4LjTdZ1 5xxrueJLxDs5wBaOiLIHE+D5fQdKiuiA24XgnyrTvaFjXPBYtgOJduo65itvFuUgdN GgZfMvQiaKTvDUI2/FGbVStABX8pyCPW9k4HFiaRf9fH6hPpaddZLTMrElTN374JBl rhf9tdsHg/w1Ixwufy/tUo3czQtKZUs74NytORyAOfg0DFlg9QW+Pjsq/YsTbWJfEs /LojyCyS+vpc3W1BIqXiIm4D9QWeghSnsWzO9Iv0K1clgFZ2ZXNZ7BgwNk8He9x2i2 J4Dl8PjZaQtDA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 8A66169504 for ; Mon, 19 Jan 2026 13:43:05 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855383; bh=PBSzhtKUn6al0tzat6Er2Du8cyAhfmbCGF7c9ORwTpk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RUhTMXonCEh6w9toHasuVI8nF6vn9lPjHZCYnv+7+QL3mZFIdfVouxZ3b6btrd4Q+ hiS3gjy8EBHfTq8gBHNBj2qnhECS18aVX/nxkO2Bs3pQ6MeQdk/ozsJAyWotjbyoJZ 37Qbxg8WJYwmH7M83lBIsjOvU/Hp61vD1vnFoM1d+50haZTGEA1H6Y4QbOHlhep8Gf a/eYr8znFTjPFiMKjB55h+XcsHb9Y88K/Knd/wDCNsu7m9BWCfeHVczEOWjkPjoFc9 HqG6tSd2zI6QoOy8eAWaizb4NgiXdfL8Dnmm8ItbgSkaN7Fsn9rTIgI5mu9jGLHgR1 pnxkwJJUI+DpQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C0118693E3; Mon, 19 Jan 2026 13:43:03 -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 UAzphIxtXw9o; Mon, 19 Jan 2026 13:43:03 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855379; bh=mKYN5ejlzkrkujmvz014Sjy2aM0KmV3V52b+ghI+pxY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AghPuEJ8oJ9gEz1oGuPul0yVC3sKmts2LsLZWFrMSvkzvzQfwGOajwDFqO5NSdrCn 4upy+fhZytPNLSaZIO/SMo6ArMYrQxs/LzXIYlCx6uDB+HXPeW9ENGGG95/ySug25a guynOkbjg8vCA+WrH2BxYOnNSm7Qilxtu1lbY4ek4Pwpif/xnz6pYLPygS5b4JOQ5I W1dCr/KawAVKpoE2B25UMlYRTqum4x2X4tKQazgElOmlHrwo040raSUBXspIMocpQR QwXmKunh8jta5w1X7EwjAyfDYr5pX/DO8XdUvMnmKWqo0XcQoLxp8LdGyFT/UY0pq3 Soojh6xiwWkUw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 7774B693BA; Mon, 19 Jan 2026 13:42:59 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Mon, 19 Jan 2026 13:41:08 -0700 Message-ID: <20260119204130.3972647-16-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: NSH6ZIQP6SDGHHA5RUM4UXAK6FDAJD6Z X-Message-ID-Hash: NSH6ZIQP6SDGHHA5RUM4UXAK6FDAJD6Z 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 , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 15/27] expo: Dump the line-measurement info 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 mline (measurement line) information to the text object dump, showing the start offset, length, and bounding box for each line. This helps debug text layout and word-wrapping issues. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- boot/expo_dump.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/boot/expo_dump.c b/boot/expo_dump.c index d357aa6a5be..cb0a1e443e3 100644 --- a/boot/expo_dump.c +++ b/boot/expo_dump.c @@ -13,6 +13,7 @@ #include #include #include +#include #include "scene_internal.h" /** @@ -111,6 +112,7 @@ static void dump_menu(struct dump_ctx *ctx, struct scene_obj_menu *menu) static void dump_text(struct dump_ctx *ctx, struct scene_obj_txt *txt) { const char *str = expo_get_str(ctx->scn->expo, txt->gen.str_id); + const struct vidconsole_mline *mline; outf(ctx, "Text: str_id %x font_name '%s' font_size %x\n", txt->gen.str_id, @@ -118,6 +120,12 @@ static void dump_text(struct dump_ctx *ctx, struct scene_obj_txt *txt) txt->gen.font_size); ctx->indent += 2; outf(ctx, "str '%s'\n", str ? str : "(null)"); + alist_for_each(mline, &txt->gen.lines) { + outf(ctx, "mline: start %x len %x bbox (%x,%x)-(%x,%x)\n", + mline->start, mline->len, + mline->bbox.x0, mline->bbox.y0, + mline->bbox.x1, mline->bbox.y1); + } ctx->indent -= 2; }