{"id":17492,"url":"https://patchwork.libcamera.org/api/patches/17492/?format=json","web_url":"https://patchwork.libcamera.org/patch/17492/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20221003083934.31629-6-naush@raspberrypi.com>","date":"2022-10-03T08:39:31","name":"[libcamera-devel,v1,5/9] ipa: raspberrypi: Add pixel clock rate to the CameraMode structure","commit_ref":null,"pull_url":null,"state":"changes-requested","archived":false,"hash":"dbfe8e133b3b2b04695a4c22c28b5b865e9015bc","submitter":{"id":34,"url":"https://patchwork.libcamera.org/api/people/34/?format=json","name":"Naushir Patuck","email":"naush@raspberrypi.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/17492/mbox/","series":[{"id":3523,"url":"https://patchwork.libcamera.org/api/series/3523/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3523","date":"2022-10-03T08:39:26","name":"Raspberry Pi: Horizontal blanking control","version":1,"mbox":"https://patchwork.libcamera.org/series/3523/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/17492/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/17492/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 1FE3FC327C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon,  3 Oct 2022 08:40:07 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id AA8C062CD5;\n\tMon,  3 Oct 2022 10:40:06 +0200 (CEST)","from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com\n\t[IPv6:2a00:1450:4864:20::32b])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 0C07D62CD9\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  3 Oct 2022 10:40:01 +0200 (CEST)","by mail-wm1-x32b.google.com with SMTP id t4so6521238wmj.5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 03 Oct 2022 01:40:01 -0700 (PDT)","from naush-laptop.localdomain ([93.93.133.154])\n\tby smtp.gmail.com with ESMTPSA id\n\ti13-20020a5d55cd000000b0022ae59d472esm8922787wrw.112.2022.10.03.01.40.00\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 03 Oct 2022 01:40:00 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1664786406;\n\tbh=ZlHQANlib8VtQD2q2+BXk+D7XiprQLm1D5jzuM3Wbjs=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=TX2YDoSNoIJRYBan/NKcpb67M5LXoLB22My9ErRH6/68uHfW4krxsR1RWg6QrBnSo\n\tYcto7J98LnzqsgbmzuvSBkAp9ChIdPMQpLfgbDZnjA/DvauqrTxT9AxH7Z0lgDsvjZ\n\tua3uB3mEDAEl2yFUyUt4Y3Baa3NZNfmOEAEnZARqZ2UG3aBA2Z2AO3fllfG761+IE+\n\txnbvxnsa7RVZkjXMgL9mrAxzrer7w6ahDO3Twnc+Yh1MR2HjBCEXfezJLmOs+eDluG\n\tlC70DMn0MhC06YrKz+5OsgZM0sXVUws1bO9rY7MW8O9gBa+xIdczMj3/LIRo8T0o/U\n\tqU1PgXhm5FZDA==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:from:to:cc:subject:date;\n\tbh=NpYU6IMqq+SK1SXSbBSyyB8EzXZknPjcSHcCyLN0vg4=;\n\tb=R049tP6pVqcNZ/yBTJjyd9mjJBFqIwnIavWbDJFyFqxsjuKsRiCFqeZ7R4X7rLs/C9\n\tdTq5xu2Zaq8e9k6O6Gf+Llnw7fpwa+N45KBIB7GRJ9OpT+NU0NUIt6dI4FRRSZJVI9yD\n\t5KQOo8mwCVGfN93fX0QM/Mna9jZgDbE2+YFF1b4cf8aXR3b4oPVCrEPoWSkVvVhWDHzd\n\tfhKoAia0S1utLw5mSweUSqaOm75a0S8DGmzUG8JxH0SReDgbAR1AWPl6lVB0Ibz1/UvK\n\tGRj6A0GFnMUTybpwfzaF68WKnGQfOmJtzBmpO9z3mgyIrtpBwv7K3rpy+MYOT71bzBzW\n\tinQQ=="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"R049tP6p\"; dkim-atps=neutral","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n\t:subject:date;\n\tbh=NpYU6IMqq+SK1SXSbBSyyB8EzXZknPjcSHcCyLN0vg4=;\n\tb=bBdAHvirD24/MG60ey99RCZ1L+52jUyPa9r+qlY0GgfzDmcuMDg3rnmRkjTHv3i+fm\n\tTVjxWk7jl/CiWYugZhIPbi6jltCOxKmGwqtWukuIoHE05g/AeEPd6i3cOPWAmCMJgMh4\n\t3WvDSGAmVcCMoCe/mjreixi3pasLHrG6TNYKd6BIoOyoDxkrzDIqDGfVck8y+bgW5BW6\n\tKrTWxEgqEQ1Jn7Pcby8T2GMPFTZd9pjbImTc/15NLgMm25AhbMqwGsWSu8dtkGp50/UP\n\t1C722G2FIHj8ydUDvUuml3WsGA9lGlgAt12vpaKAplqwt06StyzKpaTReCMOkunNDBDo\n\tW6sA==","X-Gm-Message-State":"ACrzQf2URHEAhahU1ExPO/jGK3hDF1tZZdo3QeYjk4IieeKZLcnXvceq\n\tBdmyzJ7+PCeIPrw6YWeSD/BdIHD72mr/7w==","X-Google-Smtp-Source":"AMsMyM6znJp/DuP7LOuH2uMmeE1LRXslogXJVAwr11GORxAqodkXiIiY+84uuAm+UVP/Md2nrqgtCw==","X-Received":"by 2002:a05:600c:3786:b0:3b4:ef37:afdb with SMTP id\n\to6-20020a05600c378600b003b4ef37afdbmr6241142wmr.164.1664786400644; \n\tMon, 03 Oct 2022 01:40:00 -0700 (PDT)","To":"libcamera-devel@lists.libcamera.org","Date":"Mon,  3 Oct 2022 09:39:31 +0100","Message-Id":"<20221003083934.31629-6-naush@raspberrypi.com>","X-Mailer":"git-send-email 2.25.1","In-Reply-To":"<20221003083934.31629-1-naush@raspberrypi.com>","References":"<20221003083934.31629-1-naush@raspberrypi.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v1 5/9] ipa: raspberrypi: Add pixel clock\n\trate to the CameraMode structure","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Naushir Patuck via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Naushir Patuck <naush@raspberrypi.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"The pixel clock rate will be used in subsequent commits to calculate line\nlength durations.\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\n---\n src/ipa/raspberrypi/controller/camera_mode.h | 2 ++\n src/ipa/raspberrypi/raspberrypi.cpp          | 1 +\n 2 files changed, 3 insertions(+)","diff":"diff --git a/src/ipa/raspberrypi/controller/camera_mode.h b/src/ipa/raspberrypi/controller/camera_mode.h\nindex cda6ac4e200a..b8dae386aee8 100644\n--- a/src/ipa/raspberrypi/controller/camera_mode.h\n+++ b/src/ipa/raspberrypi/controller/camera_mode.h\n@@ -39,4 +39,6 @@ struct CameraMode {\n \tuint32_t minFrameLength, maxFrameLength;\n \t/* sensitivity of this mode */\n \tdouble sensitivity;\n+\t/* pixel clock rate */\n+\tuint64_t pixelRate;\n };\ndiff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp\nindex 9b0ad4361c97..b6289f151677 100644\n--- a/src/ipa/raspberrypi/raspberrypi.cpp\n+++ b/src/ipa/raspberrypi/raspberrypi.cpp\n@@ -331,6 +331,7 @@ void IPARPi::setMode(const IPACameraSensorInfo &sensorInfo)\n \tmode_.sensorHeight = sensorInfo.activeAreaSize.height;\n \tmode_.cropX = sensorInfo.analogCrop.x;\n \tmode_.cropY = sensorInfo.analogCrop.y;\n+\tmode_.pixelRate = sensorInfo.pixelRate;\n \n \t/*\n \t * Calculate scaling parameters. The scale_[xy] factors are determined\n","prefixes":["libcamera-devel","v1","5/9"]}