{"id":1396,"url":"https://patchwork.libcamera.org/api/covers/1396/?format=json","web_url":"https://patchwork.libcamera.org/cover/1396/","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":"<20190612004359.15772-1-niklas.soderlund@ragnatech.se>","date":"2019-06-12T00:43:43","name":"[libcamera-devel,v2,00/16] libcamera: Add support for format information and validation","submitter":{"id":5,"url":"https://patchwork.libcamera.org/api/people/5/?format=json","name":"Niklas Söderlund","email":"niklas.soderlund@ragnatech.se"},"mbox":"https://patchwork.libcamera.org/cover/1396/mbox/","series":[{"id":351,"url":"https://patchwork.libcamera.org/api/series/351/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=351","date":"2019-06-12T00:43:43","name":"libcamera: Add support for format information and validation","version":2,"mbox":"https://patchwork.libcamera.org/series/351/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/1396/comments/","headers":{"Return-Path":"<niklas.soderlund@ragnatech.se>","Received":["from vsp-unauthed02.binero.net (vsp-unauthed02.binero.net\n\t[195.74.38.227])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 83CE361F6D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 12 Jun 2019 02:44:53 +0200 (CEST)","from bismarck.berto.se (unknown [89.233.230.99])\n\tby bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA\n\tid 3001aefc-8cab-11e9-8601-0050569116f7;\n\tWed, 12 Jun 2019 02:44:15 +0200 (CEST)"],"X-Halon-ID":"3001aefc-8cab-11e9-8601-0050569116f7","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, 12 Jun 2019 02:43:43 +0200","Message-Id":"<20190612004359.15772-1-niklas.soderlund@ragnatech.se>","X-Mailer":"git-send-email 2.21.0","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v2 00/16] libcamera: Add support for\n\tformat information and validation","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.23","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":"Wed, 12 Jun 2019 00:44:53 -0000"},"content":"Hi,\n\nThis series aim to add support for format information exposed to\napplications and to ease format validation by allowing formats to be\nenumerate on v4l2 devices. The series also enhance the format\nenumeration of v4l2 subdevices. Further more it extends the cam utility\nto demonstrate the usage of how formats can examined and validated.\n\nOne shortcoming of this series is that it only extends the uvcvideo\npipeline with code to gather format information and perform validation.\nThis however do not impact other existing pipeline handlers as they keep\nfunctioning as before this series. That is no format information can be\nretrieved and format validation is still supported all yet as simple as\nbefore this series.\n\nNiklas Söderlund (16):\n  libcamera: geometry: SizeRange: Add constructor for a single size\n  libcamera: geometry: SizeRange: Extend with step information\n  libcamera: geometry: SizeRange: Add toString()\n  libcamera: geometry: SizeRange: Add contains()\n  libcamera: formats: Add ImageFormats\n  libcamera: v4l2_subdevice: Breakout mbus code enumeration\n  libcamera: v4l2_subdevice: Rework enumPadSizes()\n  libcamera: v4l2_subdevice: Replace FormatEnum with ImageFormats\n  libcamera: v4l2_device: Add enumeration of pixelformats and frame\n    sizes\n  libcamera: stream: Add StreamFormats\n  libcamera: stream: StreamConfiguration: Add StreamFormats information\n  test: stream: Add test for StreamFormat\n  cam: Move camera configuration preparation to CamApp\n  cam: Validate camera configuration\n  cam: Add --info option to print information about stream(s)\n  libcamera: pipeline: uvcvideo: Add format information and validation\n\n include/libcamera/geometry.h           |  24 ++-\n include/libcamera/stream.h             |  24 ++-\n src/cam/capture.cpp                    |  84 +-------\n src/cam/capture.h                      |   7 +-\n src/cam/info.cpp                       |  37 ++++\n src/cam/info.h                         |  14 ++\n src/cam/main.cpp                       |  93 ++++++++-\n src/cam/main.h                         |   1 +\n src/cam/meson.build                    |   1 +\n src/libcamera/camera_sensor.cpp        |  14 +-\n src/libcamera/formats.cpp              |  85 ++++++++-\n src/libcamera/geometry.cpp             |  82 +++++++-\n src/libcamera/include/formats.h        |  17 +-\n src/libcamera/include/v4l2_device.h    |   5 +\n src/libcamera/include/v4l2_subdevice.h |   7 +-\n src/libcamera/pipeline/uvcvideo.cpp    |  41 +++-\n src/libcamera/stream.cpp               | 253 +++++++++++++++++++++++++\n src/libcamera/v4l2_device.cpp          | 110 +++++++++++\n src/libcamera/v4l2_subdevice.cpp       | 110 ++++++-----\n test/meson.build                       |   1 +\n test/stream/meson.build                |  11 ++\n test/stream/stream_formats.cpp         | 101 ++++++++++\n test/v4l2_subdevice/list_formats.cpp   |  16 +-\n 23 files changed, 960 insertions(+), 178 deletions(-)\n create mode 100644 src/cam/info.cpp\n create mode 100644 src/cam/info.h\n create mode 100644 test/stream/meson.build\n create mode 100644 test/stream/stream_formats.cpp"}