From patchwork Wed Jul 15 14:06:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 8827 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 DD74FBD790 for ; Wed, 15 Jul 2020 14:07:18 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A1D37609A5; Wed, 15 Jul 2020 16:07:18 +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="NzKZfcTU"; dkim-atps=neutral Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4210F60487 for ; Wed, 15 Jul 2020 16:07:16 +0200 (CEST) Received: by mail-wr1-x42c.google.com with SMTP id k6so2879206wrn.3 for ; Wed, 15 Jul 2020 07:07:16 -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=LZGD0uLcsL+C84A+8e4/kmbzXQMygMHVTfZe4dBWDLo=; b=NzKZfcTUrTIx1FaIXSndiZz3NNorocrT0olZBLdWMeq2QYbZ4zva9FLEJ6FG4qMbcZ 41riHzcpvEd1hTFeYCHAYWI7MbTohwanUnFh/HMRe1nyFlJcwWjDE2qRRNc4fShcl96C CIAU0pn/DbrIbl2M0yhK5D4kQ3/k53iSXwbGyWEunfs2wiEiHKLUQ38+Gc5U7ufoDU6I zYLRg3OaWZz6JiQGXPpYyVdfymDuSRFlSKQgcrU9ozm6dKGTE5jy0feqfV9yjUtrYI9W PtwLFO/JkziureOmINTRmgPZZz9rrjuzEJKWGzBhKbDFVrqCAQEdopzEs9SE1UAs89IO Z9iw== 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=LZGD0uLcsL+C84A+8e4/kmbzXQMygMHVTfZe4dBWDLo=; b=IwbiFy3Pyxt8yV2HtB16YVFYX9+koUhnfT9NBVa2JygqkfgB/GyMlhLGr+1tGfY9YY WWaTRCesMy8mIectnU+oaH01AkkrR6loIqu8g8tVZd3y1DpLFp9rv9f0C7zU9IG3HQF4 1mYjMgTwUz5buaWfkfHrjbAhKjyoXztriNLsKp3OYz14IxvKprocScUpr4nXLymiBWcW 2ZxzCcRvf1oVmLzUJ6nBrpP0q6Eh0MMEClXRncSLz78//HjbRPQJwQg/f6mmKhbmfeCu qht9PKtZYop12zvsUFUXeSvZ4WENYYrEQbSygvA1ia1n2Ug3g2KDr8ZKr9XUlPwDw2ZQ AAfQ== X-Gm-Message-State: AOAM5309o4Y/bHdmqqJ7Ihk6AM6cG40hnUZ+V5POIKXhM8/tfGmXvhy+ 4Aw7GuLIYoeBFE7k3u+XKd+LRY+r5h8= X-Google-Smtp-Source: ABdhPJygsGzfiM94Sx5UFG7AGtCduevdkAVgj0L4OYxlEs1hlGODO6kML1ewgWTiT/4h2+oIUvwu4w== X-Received: by 2002:a5d:4e50:: with SMTP id r16mr11460765wrt.274.1594822035511; Wed, 15 Jul 2020 07:07:15 -0700 (PDT) Received: from naushir-VirtualBox.patuck.local ([88.97.76.4]) by smtp.gmail.com with ESMTPSA id l67sm4195339wml.13.2020.07.15.07.07.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 07:07:13 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Wed, 15 Jul 2020 15:06:57 +0100 Message-Id: <20200715140703.566298-5-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715140703.566298-1-naush@raspberrypi.com> References: <20200715140703.566298-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 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 65c8557d..a613ce65 100644 --- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp +++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp @@ -394,7 +394,7 @@ CameraConfiguration *PipelineHandlerRPi::generateConfiguration(Camera *camera, sensorFormat = findBestMode(fmts, size); pixelFormat = sensorFormat.fourcc.toPixelFormat(); ASSERT(pixelFormat.isValid()); - bufferCount = 1; + bufferCount = 2; rawCount++; break;