From patchwork Tue Sep 8 07:49:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 9520 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 776C5BDB1C for ; Tue, 8 Sep 2020 07:49:24 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4585562C15; Tue, 8 Sep 2020 09:49:24 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="spNUbmYh"; dkim-atps=neutral Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C4FC562C08 for ; Tue, 8 Sep 2020 09:49:22 +0200 (CEST) Received: by mail-wr1-x441.google.com with SMTP id c18so17982922wrm.9 for ; Tue, 08 Sep 2020 00:49:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nE/emN/9YQ8F/OJCPwpwoa+soM6JSc3SLzfzjKB3NuU=; b=spNUbmYhTqbIIgGx3pTJrmVoC0A/ArDmmJMDZmmVQHr24H2GjGjdhg0hf1bDT6Xhd8 29BE4gL8y4pIP4r4OV8V+7oD/+3HbtNidQrSxgFXId4/y90oG754zQnImRCnyuBEboQL YuKEM28KejS3BozmBQNX7NzRtthJBPvz4QjoM98gS0I+HBuL3VEbjCQn5NjK+3GFnFJa kLbOHY+EX2TLZNOAIR/UwcLoe8bGjVjZSEiLOzoeFOtie7HHVnMYlwDHYuc3cr4aRpYu 4sPCg8Gyisjby/sydVdu9R0zZe4ax3/ujWC899rUmXpjw+2Pum+savK+Ua14rT7KPYuN gWOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nE/emN/9YQ8F/OJCPwpwoa+soM6JSc3SLzfzjKB3NuU=; b=mEu2gdRgDpoAhzg3X1d+b7bsooWDvi+X2eXouU66v6muzwpjw72IOXhLCJVfOmShSP lw2SnSpTKiluL0H4Y5taucHIKV9p2EmF7eCA7y+701RT7q0HiPDxYYej6P8YwrsCqEef aqSu8yApr7YaMZpzru1aaTOezUgdDOekVQHR60Vn1RDkOIqh5ObtkibKpGzjspJZXADU 0ZuBFoSIThprPqtamCIkekvOZwB4BmbbeZCzRjWgNR+FXepnQj5+UP+PwX9CV3j4nPLp eNBmJuruuKDE2lptZO5OVhVm//Q3XPLkxwHlYHooNzi5lSQK+rTJMQCpUHik9nN5iEbM B2jg== X-Gm-Message-State: AOAM531dhBwQ7qgTupp40gJhEYMA0fxiM6zGh7vlHYCsbikvu0jXDWAx 3Uz4H4JdHjp+EPB0TjBDop8X3bphY+HtlA== X-Google-Smtp-Source: ABdhPJwL0HIGJUrg765TS8ROGeAU8GJYU/2TLHoxcG1NlQLU3P+K2vOJ6tl/Z4khXIlHEI3k8zcpWA== X-Received: by 2002:adf:b306:: with SMTP id j6mr24317671wrd.279.1599551362253; Tue, 08 Sep 2020 00:49:22 -0700 (PDT) Received: from naushir-VirtualBox.patuck.local ([88.97.76.4]) by smtp.gmail.com with ESMTPSA id q15sm32534502wrr.8.2020.09.08.00.49.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 00:49:21 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Tue, 8 Sep 2020 08:49:04 +0100 Message-Id: <20200908074913.109244-5-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200908074913.109244-1-naush@raspberrypi.com> References: <20200908074913.109244-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v7 04/12] libcamera: pipeline: raspberrypi: Increase the number of RAW buffers 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Increase the number of expected RAW buffers in the stream configuration to 2. This will avoid dropping Unicam frames when exporting RAW streams. Signed-off-by: Naushir Patuck Reviewed-by: Niklas Söderlund Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart Tested-by: David Plowman --- src/libcamera/pipeline/raspberrypi/raspberrypi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp index f15345ea..ed83a2c6 100644 --- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp +++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp @@ -378,7 +378,7 @@ CameraConfiguration *PipelineHandlerRPi::generateConfiguration(Camera *camera, sensorFormat = findBestMode(fmts, size); pixelFormat = sensorFormat.fourcc.toPixelFormat(); ASSERT(pixelFormat.isValid()); - bufferCount = 1; + bufferCount = 2; rawCount++; break;