{"id":8548,"url":"https://patchwork.libcamera.org/api/1.1/covers/8548/?format=json","web_url":"https://patchwork.libcamera.org/cover/8548/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/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":"<20200701211650.1002567-1-niklas.soderlund@ragnatech.se>","date":"2020-07-01T21:16:48","name":"[libcamera-devel,RFC,0/2] libcamera: formats: Remove ImageFormats","submitter":{"id":5,"url":"https://patchwork.libcamera.org/api/1.1/people/5/?format=json","name":"Niklas Söderlund","email":"niklas.soderlund@ragnatech.se"},"mbox":"https://patchwork.libcamera.org/cover/8548/mbox/","series":[{"id":1070,"url":"https://patchwork.libcamera.org/api/1.1/series/1070/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=1070","date":"2020-07-01T21:16:48","name":"libcamera: formats: Remove ImageFormats","version":1,"mbox":"https://patchwork.libcamera.org/series/1070/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/8548/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 0D31ABE905\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed,  1 Jul 2020 21:17:00 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id A2D5060C56;\n\tWed,  1 Jul 2020 23:16:59 +0200 (CEST)","from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net\n\t[195.74.38.228])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id AAD9E60C53\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed,  1 Jul 2020 23:16:58 +0200 (CEST)","from bismarck.berto.se (p4fca2eca.dip0.t-ipconnect.de\n\t[79.202.46.202]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA\n\tid 2ecbe545-bbe0-11ea-8fb8-005056917f90;\n\tWed, 01 Jul 2020 23:16:57 +0200 (CEST)"],"X-Halon-ID":"2ecbe545-bbe0-11ea-8fb8-005056917f90","Authorized-sender":"niklas@soderlund.pp.se","From":"=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>","To":"libcamera-devel@lists.libcamera.org","Date":"Wed,  1 Jul 2020 23:16:48 +0200","Message-Id":"<20200701211650.1002567-1-niklas.soderlund@ragnatech.se>","X-Mailer":"git-send-email 2.27.0","MIME-Version":"1.0","Subject":"[libcamera-devel] [RFC 0/2] libcamera: formats: Remove ImageFormats","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>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hello,\n\nThis is in no way an attempt to conflict with the pending patches to \nImageFormats on the ML from Jacopo. Following his patches there was a \ndiscussion if we could instead of making ImageFormats a template make \nuse of the new utils::map_keys() helper. I liked the idea and gave it a \ntry and the result was not so bad so I thought I send it out as an RFC.\n\nAs the new helper is not yet merged this series depends on [1].\n\n1. [PATCH v2 0/2] libcamera: utils: Add map_keys() function\n\nNiklas Söderlund (2):\n  libcamera: v4l2_subdevice: Replace ImageFormats with a map\n  libcamera: formats: Remove ImageFormats\n\n include/libcamera/internal/camera_sensor.h  |  6 +-\n include/libcamera/internal/formats.h        | 14 ----\n include/libcamera/internal/v4l2_subdevice.h |  4 +-\n src/libcamera/camera_sensor.cpp             | 12 +--\n src/libcamera/formats.cpp                   | 88 ---------------------\n src/libcamera/v4l2_subdevice.cpp            | 16 ++--\n test/v4l2_subdevice/list_formats.cpp        | 16 ++--\n 7 files changed, 27 insertions(+), 129 deletions(-)"}