{"id":1417,"url":"https://patchwork.libcamera.org/api/covers/1417/?format=json","web_url":"https://patchwork.libcamera.org/cover/1417/","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":"<20190612163604.10037-1-jacopo@jmondi.org>","date":"2019-06-12T16:36:02","name":"[libcamera-devel,v3,0/2] libcamera: Introduce V4L2Device base class","submitter":{"id":3,"url":"https://patchwork.libcamera.org/api/people/3/?format=json","name":"Jacopo Mondi","email":"jacopo@jmondi.org"},"mbox":"https://patchwork.libcamera.org/cover/1417/mbox/","series":[{"id":354,"url":"https://patchwork.libcamera.org/api/series/354/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=354","date":"2019-06-12T16:36:02","name":"libcamera: Introduce V4L2Device base class","version":3,"mbox":"https://patchwork.libcamera.org/series/354/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/1417/comments/","headers":{"Return-Path":"<jacopo@jmondi.org>","Received":["from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net\n\t[217.70.183.197])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 91EF861DE8\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 12 Jun 2019 18:34:59 +0200 (CEST)","from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 252BB1C000B;\n\tWed, 12 Jun 2019 16:34:58 +0000 (UTC)"],"X-Originating-IP":"2.224.242.101","From":"Jacopo Mondi <jacopo@jmondi.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Wed, 12 Jun 2019 18:36:02 +0200","Message-Id":"<20190612163604.10037-1-jacopo@jmondi.org>","X-Mailer":"git-send-email 2.21.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v3 0/2] libcamera: Introduce V4L2Device\n\tbase class","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 16:34:59 -0000"},"content":"Just a few fixes spotted by Kieran during review:\n- a trivial type (s/poiunter/pointer)\n- remove the \"ret = -errno\" assignement in the ioctl error path in\n  V4L2VideoDev and V4L2Subdevice classes, as V4L2Device::ioctl() already\n  return -errno in case of failure.\n\nThanks\n   j\n\nJacopo Mondi (2):\n  libcamera: Rename V4L2Device to V4L2VideoDevice\n  libcamera: Introduce V4L2Device base class\n\n include/libcamera/buffer.h                    |   2 +-\n src/libcamera/include/v4l2_device.h           | 166 +--\n src/libcamera/include/v4l2_subdevice.h        |   6 +-\n src/libcamera/include/v4l2_videodevice.h      | 183 ++++\n src/libcamera/meson.build                     |   2 +\n src/libcamera/pipeline/ipu3/ipu3.cpp          |  24 +-\n src/libcamera/pipeline/rkisp1/rkisp1.cpp      |   6 +-\n src/libcamera/pipeline/uvcvideo.cpp           |   6 +-\n src/libcamera/pipeline/vimc.cpp               |   6 +-\n src/libcamera/v4l2_device.cpp                 | 980 ++----------------\n src/libcamera/v4l2_subdevice.cpp              |  71 +-\n src/libcamera/v4l2_videodevice.cpp            | 977 +++++++++++++++++\n test/meson.build                              |   2 +-\n .../buffer_sharing.cpp                        |  18 +-\n .../capture_async.cpp                         |   6 +-\n .../double_open.cpp                           |   8 +-\n .../formats.cpp                               |   8 +-\n .../meson.build                               |   8 +-\n .../request_buffers.cpp                       |   6 +-\n .../stream_on_off.cpp                         |   6 +-\n .../v4l2_videodevice_test.cpp}                |   8 +-\n .../v4l2_videodevice_test.h}                  |   8 +-\n 22 files changed, 1307 insertions(+), 1200 deletions(-)\n create mode 100644 src/libcamera/include/v4l2_videodevice.h\n create mode 100644 src/libcamera/v4l2_videodevice.cpp\n rename test/{v4l2_device => v4l2_videodevice}/buffer_sharing.cpp (90%)\n rename test/{v4l2_device => v4l2_videodevice}/capture_async.cpp (91%)\n rename test/{v4l2_device => v4l2_videodevice}/double_open.cpp (75%)\n rename test/{v4l2_device => v4l2_videodevice}/formats.cpp (85%)\n rename test/{v4l2_device => v4l2_videodevice}/meson.build (74%)\n rename test/{v4l2_device => v4l2_videodevice}/request_buffers.cpp (77%)\n rename test/{v4l2_device => v4l2_videodevice}/stream_on_off.cpp (78%)\n rename test/{v4l2_device/v4l2_device_test.cpp => v4l2_videodevice/v4l2_videodevice_test.cpp} (90%)\n rename test/{v4l2_device/v4l2_device_test.h => v4l2_videodevice/v4l2_videodevice_test.h} (81%)\n\n--\n2.21.0"}