From patchwork Tue Apr 19 12:42:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanlin Chen X-Patchwork-Id: 15685 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 54704C0F1B for ; Tue, 19 Apr 2022 12:42:31 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 196576563D; Tue, 19 Apr 2022 14:42:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1650372151; bh=GnUToFRsalgnIk2d8jhuDJHVeRd9SCZtB/4535fLoBo=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=4PdRq36lFsMbrUewSRaud/eESPHC13n5mqs1Qadhq7wEbHEU/y46EyyLEuN7db3Dv u9nADuLsyFPr+qaJhVCpeKwwd9vXC1IkEl4Sku5n5ilCUx4zIie2aqVxpVthZWOaAm F6rm1k713/LZnHU0keVNHoj7CzBQ8ZbccYItYXKib37Pkt83zdy7lCfPBqlVmRevjS UkmygvSa6c7ASokZJ4zQIPzhqiKIbc5L1h8bTnnkiUEU5Gxx+pqp1q02WA+bs31XY8 w4c3vH7pAMdofsxB8px4OW0Xaxxar7+rQZtFeLPljFJYm/XxZwRc2b++8kyEm7Ef69 fYsIdxtvNSK1Q== Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6B3776563D for ; Tue, 19 Apr 2022 14:42:29 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="GKwFwWaY"; dkim-atps=neutral Received: by mail-pl1-x636.google.com with SMTP id n18so15631641plg.5 for ; Tue, 19 Apr 2022 05:42:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=scw51YVqi4jrkxHTgyXesQdq6yqpX+vW3fLLFA/09WE=; b=GKwFwWaYi1qEr6Eled4ysieuUTvNUbKBRIl9KUS1AWuHLSDcooUtP4RIEMgXytvwuq DhD04EfiV63jncU4jAP5tAIYzi+zsl+sNNUyrcf2ng5Hzp9Qn6UZftYDfgjvTF6L4NKd SpyhjE4WdGwlFdG9Q1j68OdpW+LI3N0czx9l0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=scw51YVqi4jrkxHTgyXesQdq6yqpX+vW3fLLFA/09WE=; b=HZNJFIi5CZM0NwxmP9tzQj8n1n35FG7kKUJM9IP7JWUupnFzhOWV1TyP/U1dNRMjkZ 7qBSrLRC8tcCFM+YOd639XRqwxgpygfAuIG6UzD1ioMTxgw7Y9Oew2MJnJ8czJmUYSs4 DOfI8VDjv1Kqtbq1wrW73Rimb+iDyJ8I96dY3/4NYqYljZuVeNec2YP2610/CHuqG7ap So3/9z0CMVPt3hyZ3vlp7jidt/pnuy0I+hebr1SryR4O56frniH3a26ieFH3y9TKtUZd 1be7ICjhtaPnY4O4frS86h4xnxGzjlAqoSPbRu/xV6ZiR9ol+31H9yuw6/UIJg7AAITm F0cw== X-Gm-Message-State: AOAM5314N1kvFSiUiDvP7o940eFuR5vGKqTjR5X9igAVWmWH8/TXo/zx lyJh+INR7a7tCn1fRv5renOg/UZHrMBk6g== X-Google-Smtp-Source: ABdhPJxLY8UO057yudhsSexYDgfUN4Xmpv4L25qrvd0AUpIwwL2aDABHlRFp48UyIgmKpQbURkX63Q== X-Received: by 2002:a17:902:778a:b0:158:da0f:f299 with SMTP id o10-20020a170902778a00b00158da0ff299mr15253542pll.29.1650372147886; Tue, 19 Apr 2022 05:42:27 -0700 (PDT) Received: from localhost ([2401:fa00:1:17:4ede:fa5e:4144:1dec]) by smtp.gmail.com with UTF8SMTPSA id 96-20020a17090a09e900b001cb62ee05besm19682789pjo.55.2022.04.19.05.42.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 05:42:27 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Tue, 19 Apr 2022 20:42:20 +0800 Message-Id: <20220419124220.1877877-2-hanlinchen@chromium.org> X-Mailer: git-send-email 2.36.0.rc0.470.gd361397f0d-goog In-Reply-To: <20220419124220.1877877-1-hanlinchen@chromium.org> References: <20220419124220.1877877-1-hanlinchen@chromium.org> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 2/2] libcamera: correct the string representation of Rectangle 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: , X-Patchwork-Original-From: Han-Lin Chen via libcamera-devel From: Hanlin Chen Reply-To: Han-Lin Chen Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Change the string representation of class Rectangle from "(top x left)/width x height" to "(top, left)/width x height". Signed-off-by: Han-Lin Chen Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Paul Elder --- src/libcamera/geometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcamera/geometry.cpp b/src/libcamera/geometry.cpp index da08045e..e00333cf 100644 --- a/src/libcamera/geometry.cpp +++ b/src/libcamera/geometry.cpp @@ -841,7 +841,7 @@ bool operator==(const Rectangle &lhs, const Rectangle &rhs) */ std::ostream &operator<<(std::ostream &out, const Rectangle &r) { - out << "(" << r.x << "x" << r.y << ")/" << r.width << "x" << r.height; + out << "(" << r.x << ", " << r.y << ")/" << r.width << "x" << r.height; return out; }