From patchwork Fri Jul 24 07:22:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 8949 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 0B12DBD86F for ; Fri, 24 Jul 2020 07:22:58 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B0ED0611B1; Fri, 24 Jul 2020 09:22:57 +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="l39fHDOK"; dkim-atps=neutral Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2594B6118A for ; Fri, 24 Jul 2020 09:22:54 +0200 (CEST) Received: by mail-wm1-x342.google.com with SMTP id f18so7327187wml.3 for ; Fri, 24 Jul 2020 00:22:54 -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=yqI13htY+92+Vw37ymwhyOkF1ISQUQRAuw0AJm1KssI=; b=l39fHDOKnu362+jI3tjWffOJgOjzBBRNqX96q3gcWxSUlL+zCdKiolFuKvON1I8htv OTAxWbIgA1G0YUnWIGpXaWarPOe4fqbb3WoRXfnTOQe4WHDiC0ZMc9hNcihohpZJYrQ5 DlsyOBucASgWCwmrFXh1s3yj5sWIrGFx/PIXSNWa0gMV5R1wg1LeKBUeEzQR8pqNj33c 6DF9HzxPExSx5Tw66bsOGbGVGR87CRHdrZNgVFjQiksg6og1qRLXx4w/aa18w486Nprv we9GYhCRoiqVH80yg59Iprj4mq64A4R3soSmg7EUKQhlddFt6lStCCFn7gndyJfls7xZ kyUg== 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=yqI13htY+92+Vw37ymwhyOkF1ISQUQRAuw0AJm1KssI=; b=EY2NKG8n55ONwhInx55skx3OCY6ECoHp6IIxKXTlYZRU572an3WDp+gktiA7hyihyM pvidoBzmPyNHbUludzQOQ6ogR2u75r+2rpBotpb5iDnxuw10ddVHSOFKsItQdgFIVs11 TiSH3QDtRCXHrwTyVp8WcvENqoPbAfSDUvYR92n4ZElIUtU12a9tgTCbW+iUDtNwgD/1 jkLDNKrSrX39E4bhQYu+A3Cgqdz2WAs9p3FUjTWqpDtGJvdj/JwM0hgIzxN7CuS5ADV+ LZdmCUbGM+XPdXVXCFH96G8IS/r2LIK5RbEhMNrxUIbvVYWaa878gsGJWeG7z+P18UWQ oaJw== X-Gm-Message-State: AOAM530iNykQa6/18dAJ4s78bRFF/FcINLTlc7Z3kP+6PaQ2mXZFNT5b S4kNAe3lYGZZA9fzqYR0fI0fUlnJfABs+g== X-Google-Smtp-Source: ABdhPJzt1FJnAw2upRMu97UQbGJLM0fyMJbffhESdQLAlenHQF29tE/vA4aamRLBCHOe6DNVftawoA== X-Received: by 2002:a1c:2e10:: with SMTP id u16mr7954311wmu.121.1595575372954; Fri, 24 Jul 2020 00:22:52 -0700 (PDT) Received: from naushir-VirtualBox.patuck.local ([88.97.76.4]) by smtp.gmail.com with ESMTPSA id 32sm246595wrn.86.2020.07.24.00.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 00:22:52 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Fri, 24 Jul 2020 08:22:13 +0100 Message-Id: <20200724072218.943245-6-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200724072218.943245-1-naush@raspberrypi.com> References: <20200724072218.943245-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5 05/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 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 8c7b6341..31e15a45 100644 --- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp +++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp @@ -379,7 +379,7 @@ CameraConfiguration *PipelineHandlerRPi::generateConfiguration(Camera *camera, sensorFormat = findBestMode(fmts, size); pixelFormat = sensorFormat.fourcc.toPixelFormat(); ASSERT(pixelFormat.isValid()); - bufferCount = 1; + bufferCount = 2; rawCount++; break;