From patchwork Fri Jul 17 08:54:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 8838 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 79F30C0109 for ; Fri, 17 Jul 2020 08:54:18 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id BBC066053D; Fri, 17 Jul 2020 10:54:17 +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="F8NFv1nU"; 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 CC43360538 for ; Fri, 17 Jul 2020 10:54:15 +0200 (CEST) Received: by mail-wr1-x42f.google.com with SMTP id k6so10188358wrn.3 for ; Fri, 17 Jul 2020 01:54:15 -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:mime-version :content-transfer-encoding; bh=4zXWFXCmDh9Ij4YxWBIGmqg5gHLhtJvVzPDMCTXqIjo=; b=F8NFv1nU95ugk5dWsv4R8b8Sm6DcKQCVwDoZI9I0DGLTHdOXdSK8HtlOlJnaW3cvJq IDgPHtRi1vOe2HrbyrB+44gYbXv6+V2yJHYzHppewVErKzy0bxEfBz+jaGjtvFObqu7v cacovZaQT0G23UEnlJt9OtjnMmYyfuoRe0uZ8xFnsNm7UtWPk8Y5RVbR+Sh3NifTF6zV 0QOqrekllM9Z7simNv86mj0jz9/QmC3UmnV5oU3+8+ubCWj1tL2k+eru5zEvfN2qHipX xRoaZSHjIcfKUy9bjN02EtKdf8zQW8jDqNFACC6WOaPxfWRLC42hgG2YCb51/Dn0DSUm lNDA== 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:mime-version :content-transfer-encoding; bh=4zXWFXCmDh9Ij4YxWBIGmqg5gHLhtJvVzPDMCTXqIjo=; b=oW793WUC2mz49Mf3G1VfAWwTjkA4+bSi3r7HBlUG6jpKO8TZ5HZauMGhgJaY6Vv4Y0 E6n3Gfs+IGCwySjbtnLKRq25ebBMapZKGk9Z2uQef9a0RU8FHZv5fsagxIR0dM9T63m/ fYnyw5VtSXGGXU6V0Cft8Om4puqADXg5q69JzsDOkCN41dlBYZT8sgLDwLeQZyO9Y6mU qcgyaHJo+3VZ12dNX+gJpf2+FpwQvny7OVZX/j1xF3z2DT8z5gH1Hd+GycZKpzHR1siM G2g75jERayRX6n4zsCPHH4o9d2zZcopswdT/q39ms/yCG2bQ3xYcVuf9k2CQH/ayGgKZ Y4yw== X-Gm-Message-State: AOAM531iszMwkRFbV5b+WLutw4aRrfL2TLpgHt5erjwZ0VE+gYe5rEb6 +CY7Qdrc1WiC+jvnvpiGQ5GTbrwqsd8= X-Google-Smtp-Source: ABdhPJyJFnJtZ0LPJ/xw3VNoh8OjjESIjeVa6Hy3eJcS7lgLaufjp3wEeWf8/TCjJharp/TrosVw6g== X-Received: by 2002:adf:ce85:: with SMTP id r5mr10143280wrn.157.1594976055094; Fri, 17 Jul 2020 01:54:15 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 01:54:14 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Fri, 17 Jul 2020 09:54:00 +0100 Message-Id: <20200717085410.732308-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 00/10] Zero-copy RAW stream work 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" Hi, This is the next version of the zero-copy RAW stream work for the Raspberry Pi pipeline handler. All rework is now done to use the new IPA configuration passing mechanism. Regards, Naush Naushir Patuck (10): libcamera: pipeline: raspberrypi: Move RPiStream into a separate file libcamera: pipeline: ipa: raspberrypi: Rework drop frame signalling libcamera: pipeline: raspberrypi: Add some debug logging libcamera: pipeline: raspberrypi: Increase the number of RAW buffers libcamera: pipeline: raspberrypi: Remove const qualifier from RPiStream libcamera: pipeline: raspberrypi: Rework stream buffer logic for zero-copy libcamera: pipeline: raspberrypi: Fix bug in passing configuration to IPA libcamera: pipeline: raspberrypi: Add more robust stream buffer logic libcamera: pipeline: ipa: raspberrypi: Remove use of FrameBuffer cookie libcamera: pipeline: raspberrypi: Handle any externally allocated FrameBuffer include/libcamera/ipa/raspberrypi.h | 2 +- src/ipa/raspberrypi/raspberrypi.cpp | 20 +- .../pipeline/raspberrypi/meson.build | 1 + .../pipeline/raspberrypi/raspberrypi.cpp | 566 +++++++----------- .../pipeline/raspberrypi/rpi_stream.cpp | 222 +++++++ .../pipeline/raspberrypi/rpi_stream.h | 118 ++++ 6 files changed, 583 insertions(+), 346 deletions(-) create mode 100644 src/libcamera/pipeline/raspberrypi/rpi_stream.cpp create mode 100644 src/libcamera/pipeline/raspberrypi/rpi_stream.h