{"id":3859,"url":"https://patchwork.libcamera.org/api/1.1/covers/3859/?format=json","web_url":"https://patchwork.libcamera.org/cover/3859/","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":"<20200526142237.407557-1-jacopo@jmondi.org>","date":"2020-05-26T14:22:29","name":"[libcamera-devel,0/8] android: Implament format translation","submitter":{"id":3,"url":"https://patchwork.libcamera.org/api/1.1/people/3/?format=json","name":"Jacopo Mondi","email":"jacopo@jmondi.org"},"mbox":"https://patchwork.libcamera.org/cover/3859/mbox/","series":[{"id":930,"url":"https://patchwork.libcamera.org/api/1.1/series/930/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=930","date":"2020-05-26T14:22:29","name":"android: Implament format translation","version":1,"mbox":"https://patchwork.libcamera.org/series/930/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/3859/comments/","headers":{"Return-Path":"<jacopo@jmondi.org>","Received":["from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net\n\t[217.70.183.194])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 5D8E560E08\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 26 May 2020 16:19:24 +0200 (CEST)","from localhost.localdomain (2-224-242-101.ip172.fastwebnet.it\n\t[2.224.242.101]) (Authenticated sender: jacopo@jmondi.org)\n\tby relay2-d.mail.gandi.net (Postfix) with ESMTPSA id CADC940002;\n\tTue, 26 May 2020 14:19:23 +0000 (UTC)"],"X-Originating-IP":"2.224.242.101","From":"Jacopo Mondi <jacopo@jmondi.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Tue, 26 May 2020 16:22:29 +0200","Message-Id":"<20200526142237.407557-1-jacopo@jmondi.org>","X-Mailer":"git-send-email 2.26.2","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 0/8] android: Implament format translation","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":"Tue, 26 May 2020 14:19:24 -0000"},"content":"Hello,\n   this series implements a few things, the most relevant of which is the\ncollection and translation of Android supported image formats to libcamera\nformats.\n\nThe series begins by providing a camera-identifying log prefix to the\nCameraDevice class.\n\nIt then fixes the reported API version, which was curiously hard-coded to 0.\n\nPatch 3 replaces the orientation and facing camera side hard-coded information\nwith the actual values reported by the libcamera::Camera instance the\nCameraDevice wraps. In order to do so, a new CameraDevice::initialize() method\nis provided, where the collection and inspection of all Camera static properties\nhappens before the CameraDevice::open() method gets called.\n\nBuilding on this foundations, patch 4 builds the image format translation\nmap and the available stream configuration map by testing a set of required\nand optional image resolutions against the wrapped libcamera::Camera instace.\nThe patch produces an android-format to libcamera-format map and a list of\navailable stream configuration items, to be reported to the Android framework\nthrough static metadata.\n\nPatch 5 makes the metadata buffer size calculation 'dynamic', by inspecting\nthe number of elements which have been collected in the stream configuration\nmap.\n\nPatch 6 and 7 make use of the information collected in patch 5 to, respectively,\nreport to the framework the available stream configuration map, and to translate\nfrom Android format to libcamera format at processCaptureRequest time.\n\nWhile I was reading the camera documentation, I spotted a rougue full stop\nin a \\return statement in documentation, and while at there I removed it.\n\n\nJacopo Mondi (8):\n  android: camera_device: Provide log prefix\n  android: hal_manager: Report supported API version\n  android: hal_manager: Do not hardcode properties\n  android: camera_device: Build stream configuration\n  android: camera_device: Calculate metadata size\n  android: camera_manager: Replace hardcoded stream configuration\n  android: camera_device: Translate Android format\n  libcamera: camera: Drop full stop from \\return\n\n src/android/camera_device.cpp      | 375 ++++++++++++++++++++++++-----\n src/android/camera_device.h        |  29 ++-\n src/android/camera_hal_manager.cpp |  12 +-\n src/libcamera/camera.cpp           |   2 +-\n 4 files changed, 352 insertions(+), 66 deletions(-)\n\n--\n2.26.2"}