From patchwork Mon Jul 13 08:47:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 8754 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 2546CBD790 for ; Mon, 13 Jul 2020 08:48:04 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 64655605C5; Mon, 13 Jul 2020 10:48:03 +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="nqzM1Od1"; dkim-atps=neutral Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id F1DB9605B4 for ; Mon, 13 Jul 2020 10:48:01 +0200 (CEST) Received: by mail-wr1-x42f.google.com with SMTP id f2so14986136wrp.7 for ; Mon, 13 Jul 2020 01:48:01 -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=SzxleyS2L5G8oRnbBxFxOqT8fwhmy6L0kBRX2aN6Q4c=; b=nqzM1Od11c4ASESNB68kxs4Vg0B0odL/9jCD5tkJmLygMaKIErAYGELJIrQ89JuK+O GfB4rMzp1TS6ZKiiVI05Bj3B7Zd7WMIAHCpVYgqAk9OZbApSNINm6ahnbk9rignwaUUH fbxLZIbnPf0XYkuZDNTH0LX8UAowGUfr+srM7D9tnEmqmSnempMxZmGxkkugaT2xJ5jl xgqk1bLt1h3B7bxOnc3xWG+nK5HQhVqCk+fhkSDDPFDhyFyHwoh9hIh5bVNIVDxX9Np3 4eqayAtjOE5t1/ZMdmraCwvtwjWP5ZizO82DZJ2hue3sE2wJFFoxF7qJLf3EEbF6GgIG 811g== 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=SzxleyS2L5G8oRnbBxFxOqT8fwhmy6L0kBRX2aN6Q4c=; b=g5Vu2Cz6PpfS0PYKaocFO3n3Pp8VTe5uvxOWk3mqlOgS2uTzHFCaqZaF2Q/+jB6S5p ZQsQXirPS4xcb3tn4SE9POD1ttJYYvWvmiUxBFqFZRPP2urNGg7Wt4v+TfViOEXv/wKp hw0ztkoUVxOWAa0vcPuhCZ6FRJqhIOAgyWi3F6ScHZb6fyvZyZ5UNqplTc+ix2iADQ9x kgZlT7wkNdlreaQEPdZVBy1PXlQvixg25MHHtI6nxp5JMdz7e98WNNQcqjFaW4I5jHyR Yu3vpsBLdQwmz33V31SPx08/zDLjqpUpXboQa0Nnb2AJvsH0bX2wdoNplK5zKgiklePk GxZw== X-Gm-Message-State: AOAM530Pjs3Ur/ImyYHm82VvlnxzBMZYIe3oyn2MMNHfAixt0NmnxG+H +yEzIgz56GyySFo+XCz3hPoXfmdgvxE= X-Google-Smtp-Source: ABdhPJyJ3zGKAZ42huAv7j8IpDVtPEUKQMoozpasqZQs/v1cjwNQC5BQZooC6XQfRbcHM4GBbS7Epw== X-Received: by 2002:a5d:4a45:: with SMTP id v5mr79446110wrs.228.1594630081459; Mon, 13 Jul 2020 01:48:01 -0700 (PDT) Received: from naushir-VirtualBox.patuck.local ([88.97.76.4]) by smtp.gmail.com with ESMTPSA id g14sm23203357wrm.93.2020.07.13.01.48.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 01:48:00 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Mon, 13 Jul 2020 09:47:23 +0100 Message-Id: <20200713084727.232422-5-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200713084727.232422-1-naush@raspberrypi.com> References: <20200713084727.232422-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 4/9] 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;