From patchwork Mon Jul 20 09:13:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 8866 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 09CCABD792 for ; Mon, 20 Jul 2020 09:13:34 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C9F9060729; Mon, 20 Jul 2020 11:13:33 +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="JGpeFBBk"; dkim-atps=neutral Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2FEEB60717 for ; Mon, 20 Jul 2020 11:13:31 +0200 (CEST) Received: by mail-wm1-x333.google.com with SMTP id o2so24447669wmh.2 for ; Mon, 20 Jul 2020 02:13:31 -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=6HHVIiW2Zt33xaBdxR4KVZKDUQQdUezTVtI0Akxm8s4=; b=JGpeFBBkGR6oP9JT4e5rNe4x60EZzKiuIUtDA7kuNyn5oO2UZHuYglmmldpuAHm8es 5XBzzOM3/O8jvikCz701H5qQr96DaGyNsz7/+6Eh4ldqgN+0G7AxIuWL93fL7ylCrD6x AYZ6gGY7r8JIriIqQkDy+PFOLONsEVR1R6ucuAAE58tu2BRWCa3bzc63P5Uxs9otZKgJ 6POz6CAscvFscj0N84e7VcacjRXup5uCd6Vruy8vhpaA1Wx9W2V6uWUti6RwqvpOADSx TSOD7Khku+Q1NQ63S9CLXwFP5hIwnErys0MJICcx4dlUdm7IlamfojAPP9r7PGsAh8IE LuLw== 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=6HHVIiW2Zt33xaBdxR4KVZKDUQQdUezTVtI0Akxm8s4=; b=m8LTDCbr+4/OZ8FP8xFZsdJxDbwKA64qIv7lCRj1WuMvFAiks7TEMVyujIUAOm6zXb HcHLjgte+fI6VTb/Msy9Gl48OVZFTEyBlZU91GODntu2av7zOqwfePKgnCuFBpvqU/jS QzFYFncZLqXiaHZab5ZtejBEXqB6MiBb/XWcvs2A20VZTpFAS+yNPlzdSpbgZ/GThGbY 6jhMNi5TDTk0y1OQsf7Nu2kCFlyyDpE5GaDsKeZd4AJ+6x2zf0i/Vld3thcY4OaFHkL+ 3XcaLVj2u7YFAB/ucqQ11nsGaUZrXdfANeVl9Q+4mXsiNf3plSOQ8nPIZcqoTJVW+oP5 ndig== X-Gm-Message-State: AOAM532Q+jJSMf4pnJLQ19kNxJ+jjqLYILiddpoIE3sF7tDh75QO9DIW dMyJ9M5+x+eWkigDQCwMP3PCIJEqWrBvvA== X-Google-Smtp-Source: ABdhPJwzcHPCHWs8yDMFfxGcfQepyT3uvXNcWxyTkoNiKGpuT23CvkcNrjokJHYJDGPQ+fFoRFXIEw== X-Received: by 2002:a05:600c:4114:: with SMTP id j20mr20293949wmi.74.1595236410564; Mon, 20 Jul 2020 02:13:30 -0700 (PDT) Received: from naushir-VirtualBox.patuck.local ([88.97.76.4]) by smtp.gmail.com with ESMTPSA id u1sm38137185wrb.78.2020.07.20.02.13.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2020 02:13:29 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Mon, 20 Jul 2020 10:13:06 +0100 Message-Id: <20200720091311.805092-5-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200720091311.805092-1-naush@raspberrypi.com> References: <20200720091311.805092-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 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 Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- 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 35f14dda..486345fa 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;