{"id":15470,"url":"https://patchwork.libcamera.org/api/covers/15470/?format=json","web_url":"https://patchwork.libcamera.org/cover/15470/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20220317140827.1835029-1-naush@raspberrypi.com>","date":"2022-03-17T14:08:21","name":"[libcamera-devel,v2,0/6] Raspberry Pi: Efficient start/stop/start sequences","submitter":{"id":97,"url":"https://patchwork.libcamera.org/api/people/97/?format=json","name":"Nicolas Dufresne via libcamera-devel","email":"libcamera-devel@lists.libcamera.org"},"mbox":"https://patchwork.libcamera.org/cover/15470/mbox/","series":[{"id":2972,"url":"https://patchwork.libcamera.org/api/series/2972/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2972","date":"2022-03-17T14:08:21","name":"Raspberry Pi: Efficient start/stop/start sequences","version":2,"mbox":"https://patchwork.libcamera.org/series/2972/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/15470/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 98FE8BD80A\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 17 Mar 2022 14:08:34 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id E80FD6118A;\n\tThu, 17 Mar 2022 15:08:33 +0100 (CET)","from mail-wm1-x330.google.com (mail-wm1-x330.google.com\n\t[IPv6:2a00:1450:4864:20::330])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id EBBD8601F8\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 17 Mar 2022 15:08:32 +0100 (CET)","by mail-wm1-x330.google.com with SMTP id\n\tm42-20020a05600c3b2a00b00382ab337e14so5012007wms.3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 17 Mar 2022 07:08:32 -0700 (PDT)","from naush-laptop.pitowers.org\n\t([2a00:1098:3142:14:371b:8e01:111f:5322])\n\tby smtp.gmail.com with ESMTPSA id\n\tz5-20020a05600c0a0500b0037fa93193a8sm5287831wmp.44.2022.03.17.07.08.31\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 17 Mar 2022 07:08:31 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1647526113;\n\tbh=srFdUt40kgw6DrlNN/MwTYhAPSJ/wA4CwRJMRMy+Q0w=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=4QCxADAGOtFRu6NsrLl0thTfD/Wy9KwQQ/KKFb4ygv8vI9J/co+IDSxH/6caorjWw\n\tualB/p8/ruMPITYWVzzcqkABS3GUcHY6x+mWhqwAMM/NxNMgSedg1D7BeSraOvx2hf\n\tLyCzsn4KSIRhwBd01/eTTWl8U6gsD5Gxl2cuReeJ1tKqawKFrd2K4qh0OZc7NpG2zR\n\tnTXiffMWghTL3pmIq5XnUEZWGYjCEq8cAezWYu95JEQzKHMfACwfjW61rLjveyDYjX\n\t/0IoIJeBfImkW5uiXk3Qk+CnJUC6OTZS8ExZR/lXEkgqRA2RRqz18Lshd852+Fif36\n\tScWAgTbdZDWMA==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=BPBQf1u72sq02WNfM3PjQqEjUnYHWho2kYAIHJzpPKs=;\n\tb=a4t/nECy+kspc+RQ+ia7FqrEw6mx9wUd/ePK9c/GwZbWqrINHPCiFHY/wMfkBKTlu8\n\tQ/F6jrUoie1YTOyXZXZN5d0+pAK+H1vQSFXkTPnWyEext7Bbd+TcksYdgOcEX0cB2rLj\n\tbUAWhYL0EmpRf+ANz5GDqgFDI1POM65OtnHwHs+gYJiqwjnxYZ+e82OY2sLpcj0fO+Ub\n\tfDYDNqZLVUaB6pjgCYTX/KK3Frw/Os7vCGXEm8gVcuCVZprHA89Q1tUn8UkWysyp2sQX\n\tZJnweMFNM8FprXNo9FunBJi5RHGl/u6P39YvA3l7mFIrMHluKrd7B/1csJXAX+7xjPuA\n\tmBqA=="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"a4t/nECy\"; dkim-atps=neutral","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=BPBQf1u72sq02WNfM3PjQqEjUnYHWho2kYAIHJzpPKs=;\n\tb=f9ni3YNuNZwSLVGU5+ELoCnPXRr23aqB2/U8oiFN3ATpXJ9EkTE9hqs6GmLNJ/X0+s\n\tD1GaHJtF0YhYIXE6bB7Cv0KziMvVgBZjX6WD0Aqexd64zhekHrKl3Ailo6oJJQxcpu/Z\n\tLyUMvpCMhUdSuh7HS71JY08+YMa1R5Kt1tkApKbAlR9rmaKKDFvqlECe3Ds1ghHCCIex\n\t8X70cE7eF9XzIMLjEKB2KXclNedmeQsAaq9MDlq8DWc+/7ReyQqx/+byWG3QsG5khNav\n\tHPLLXONTmt0g3S9RuuEe/r3aaP0Gnaba3bTbpLgj1AhEL/KioKW1+z2XAjaul8+F+Ltl\n\tAZkQ==","X-Gm-Message-State":"AOAM532WoCzoLV05KYFmy5ZbNybQ6DPNKii98gkCYsqbBUx266a8+AQr\n\tmyMHIOirdPoaWHBUOjZVqSqqBCb8RGrlyw==","X-Google-Smtp-Source":"ABdhPJzShzC1I6X+rz1H91MJ+6/RVUBUbdSZ4nPPq+TmPW4sDrnnLqPnxmaSf3Yi0zO3YSjnhtlSaQ==","X-Received":"by 2002:a05:600c:3552:b0:389:95b2:5f4a with SMTP id\n\ti18-20020a05600c355200b0038995b25f4amr4203148wmq.24.1647526112297; \n\tThu, 17 Mar 2022 07:08:32 -0700 (PDT)","To":"libcamera-devel@lists.libcamera.org","Date":"Thu, 17 Mar 2022 14:08:21 +0000","Message-Id":"<20220317140827.1835029-1-naush@raspberrypi.com>","X-Mailer":"git-send-email 2.25.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v2 0/6] Raspberry Pi: Efficient\n\tstart/stop/start sequences","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Naushir Patuck via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Naushir Patuck <naush@raspberrypi.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hi,\n\nVersion 2 of this series has the follwing changes over v1:\n\n- Fixed typos in commit message in 1/6.\n- Squashed patches 3 and 4 from the v1.\n- Renamed the reconfigured_ flag to reallocate_.\n- Renamed RPi::Stream::reset() to RPi::Stream::resetBuffers() in 4/6.\n- Added a 5 second timeout after stopDevice() to free buffers in patch 5/6.\n\nThanks,\nNaush\n\nNaushir Patuck (6):\n  pipeline: raspberrypi: Avoid over-allocation for ISP Output 1\n  pipeline: raspberrypi: Move freeBuffers() to the RPiCameraData class\n  pipeline: raspberrypi: Free buffers in the RPiCamera destructor and\n    re-configure\n  pipeline: raspberrypi: Repurpose RPi::Stream::reset()\n  pipeline: raspberrypi: Add a timeout to free buffers on stopDevice()\n  libcamera: v4l2_videodevice: Empty the V4L2 buffer cache on\n    streamOff()\n\n include/libcamera/internal/v4l2_videodevice.h |  1 +\n .../pipeline/raspberrypi/raspberrypi.cpp      | 73 ++++++++++++++-----\n .../pipeline/raspberrypi/rpi_stream.cpp       | 13 ++--\n .../pipeline/raspberrypi/rpi_stream.h         |  2 +-\n src/libcamera/v4l2_videodevice.cpp            | 16 ++++\n 5 files changed, 77 insertions(+), 28 deletions(-)"}