From patchwork Fri Jul 17 08:54: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: 8842 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 3590EC0109 for ; Fri, 17 Jul 2020 08:54:24 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id DF88460559; Fri, 17 Jul 2020 10:54:23 +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="aDcUXoMF"; dkim-atps=neutral Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3FE1E6053B for ; Fri, 17 Jul 2020 10:54:19 +0200 (CEST) Received: by mail-wr1-x444.google.com with SMTP id f7so10183288wrw.1 for ; Fri, 17 Jul 2020 01:54:19 -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=IFCGyub9tpAoeli8G8pn/dDsrLoClgTuujJSvmNbE4o=; b=aDcUXoMF/tqN3qCzsEgoZjk8t+8+USsq0ZlrKaUlWusuI/ZXe9nqWM2wBFmmsy8ym2 BtvfW/SGbxPyoKJwz6w54wr0rVP0qoNY1Q1MbHLd3uFn7FgkPYTGzM11TWo4MIY3vSCm ExAvEwolAhnWSxScJMaF35i0QPT+rQTtdsL5qLaXa80Rv7eA6E4esNOaIYH5NBzUa9bA xH48P4NeUxz2cKErr18pjQBVhsFi+1eifzfCCNO8j7vqhFMeD6a6W6+O02/wWBwyAXvG yV6aQjNB5GLUD3Lj4GQfgGVZOBXUJTOE20NfYmUH6wO7LCXfgwqW43sxjmwQGq0qRB68 CZwQ== 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=IFCGyub9tpAoeli8G8pn/dDsrLoClgTuujJSvmNbE4o=; b=O8dZCGmH42ADUO0X1dFRiKphloEkfqD3C73xGbD+58rVNZFp/zxD84JBEqOvZTYqMx kTLoweIdQtNfso8oObNTw2AK+cT4yxSmbZvZih/b/WhWnl5c5V4PUPHn6IuKhYpkWXi+ +kLT9vgQWq8j2VBtyR1A6zhFKHdiwNOmslAgv/W4mTfn+m9ESU6RxAm/0vICcftBiNed v/Z2v//sIxLlTEmnjYu2Ta7Bv1LODq1TrFgLEFEwznQZ3zqfkA+2JmTYVtSxFfrbMdOq kYW7vyig0YTuivvUeyWiVwGoiHc33rT+rIkfhakx8isnCMGz/NEVQGM/LBzM7Xi7CdnK C4zA== X-Gm-Message-State: AOAM530sWI2D1Ytko37jhV/AigIDe26m4IkvrMV177STw4BnO/5h6m0O IrQnx84iOawZEvbooFgzyINN6EgQK7s= X-Google-Smtp-Source: ABdhPJwjybkplxXGKS8mywb7nVbEDvx601aTfa7YAOnRsYrLr2Z49dpbGSTO46rYbcxJSGkPEOH8HA== X-Received: by 2002:adf:80c7:: with SMTP id 65mr9490291wrl.246.1594976058729; Fri, 17 Jul 2020 01:54:18 -0700 (PDT) Received: from naushir-VirtualBox.patuck.local ([88.97.76.4]) by smtp.gmail.com with ESMTPSA id 92sm14582375wrr.96.2020.07.17.01.54.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 01:54:18 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Fri, 17 Jul 2020 09:54:04 +0100 Message-Id: <20200717085410.732308-5-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200717085410.732308-1-naush@raspberrypi.com> References: <20200717085410.732308-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 04/10] 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 --- 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 56b7ee99..c324efc1 100644 --- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp +++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp @@ -391,7 +391,7 @@ CameraConfiguration *PipelineHandlerRPi::generateConfiguration(Camera *camera, sensorFormat = findBestMode(fmts, size); pixelFormat = sensorFormat.fourcc.toPixelFormat(); ASSERT(pixelFormat.isValid()); - bufferCount = 1; + bufferCount = 2; rawCount++; break;