{"id":2712,"url":"https://patchwork.libcamera.org/api/covers/2712/?format=json","web_url":"https://patchwork.libcamera.org/cover/2712/","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":"<20200120173816.31829-1-laurent.pinchart@ideasonboard.com>","date":"2020-01-20T17:38:13","name":"[libcamera-devel,0/3] Use std::array where applicable","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/2712/mbox/","series":[{"id":644,"url":"https://patchwork.libcamera.org/api/series/644/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=644","date":"2020-01-20T17:38:13","name":"Use std::array where applicable","version":1,"mbox":"https://patchwork.libcamera.org/series/644/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/2712/comments/","headers":{"Return-Path":"<laurent.pinchart@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id DD2C960455\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 20 Jan 2020 18:38:20 +0100 (CET)","from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi\n\t[81.175.216.236])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 56CF9A62\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 20 Jan 2020 18:38:20 +0100 (CET)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1579541900;\n\tbh=79dxV6Y0Z4E+AqPe8otzXgXxw24tFo3sHWVFN+ypC50=;\n\th=From:To:Subject:Date:From;\n\tb=SgvnSB3t3vuXj0k5lbtWuz3Elqu66mkmvN7ESjhBZdrXJdsZTOEXyCpD0CRQXG9rk\n\tLTxogsLihK9hnoYhvPMDkRtdFHwZafEyPiuIbLVAg+8z59hgIDxP6QuGhIALqVKQmF\n\ts2UNv+yU6OhUVaK6Wihy42nn9eI0E2Bssfmc+Zdc=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Mon, 20 Jan 2020 19:38:13 +0200","Message-Id":"<20200120173816.31829-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.24.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 0/3] Use std::array where applicable","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>","X-List-Received-Date":"Mon, 20 Jan 2020 17:38:21 -0000"},"content":"Hello,\n\nThis patch series extends the previously posted \"[PATCH 05/19]\nlibcamera: Replace ARRAY_SIZE with std::array\" with a\nutils::make_array() helper function.\n\nAs pointed out during review, having to manually specify the std::array\nsize for const arrays is not only tedious, but is also error-prone as\nthe array can be declared as larger than the initializer list without\nany warning from the compiler. To fix this, patch 1/3 introduces\nutils::make_array(), borrowed from the experimental std::make_array()\nfunction. Patch 2/3 uses the new helper where applicable, and patch 3/3\nis a rebased version of the previously posted ARRAY_SIZE removal patch\nbased on utils::make_array().\n\nLaurent Pinchart (3):\n  libcamera: utils: Add a new make_array() function\n  libcamera: Use utils::make_array()\n  libcamera: Replace ARRAY_SIZE with std::array\n\n Documentation/Doxyfile.in                |  1 +\n src/libcamera/camera.cpp                 | 13 +++----\n src/libcamera/include/utils.h            | 44 ++++++++++++++++++++++--\n src/libcamera/ipa_module.cpp             | 11 +++---\n src/libcamera/log.cpp                    | 23 +++++++------\n src/libcamera/pipeline/rkisp1/rkisp1.cpp |  6 ++--\n src/libcamera/pipeline/vimc.cpp          |  6 ++--\n src/libcamera/stream.cpp                 |  6 ++--\n src/libcamera/utils.cpp                  | 19 +++++++---\n src/libcamera/v4l2_videodevice.cpp       |  7 ++--\n src/v4l2/v4l2_camera_proxy.cpp           | 30 ++++++++--------\n test/ipc/unixsocket.cpp                  |  8 ++---\n 12 files changed, 114 insertions(+), 60 deletions(-)"}