{"id":13301,"url":"https://patchwork.libcamera.org/api/covers/13301/?format=json","web_url":"https://patchwork.libcamera.org/cover/13301/","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":"<20210811124015.2116188-1-hiroh@chromium.org>","date":"2021-08-11T12:40:10","name":"[libcamera-devel,RFC,0/5] MappedFrameBuffer::maps() returns the plane address","submitter":{"id":63,"url":"https://patchwork.libcamera.org/api/people/63/?format=json","name":"Hirokazu Honda","email":"hiroh@chromium.org"},"mbox":"https://patchwork.libcamera.org/cover/13301/mbox/","series":[{"id":2339,"url":"https://patchwork.libcamera.org/api/series/2339/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2339","date":"2021-08-11T12:40:10","name":"MappedFrameBuffer::maps() returns the plane address","version":1,"mbox":"https://patchwork.libcamera.org/series/2339/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/13301/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 7C293BD87D\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 11 Aug 2021 12:40:26 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id EA4836884F;\n\tWed, 11 Aug 2021 14:40:25 +0200 (CEST)","from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com\n\t[IPv6:2607:f8b0:4864:20::1030])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id C007A68826\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 11 Aug 2021 14:40:24 +0200 (CEST)","by mail-pj1-x1030.google.com with SMTP id\n\tlw7-20020a17090b1807b029017881cc80b7so9296760pjb.3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 11 Aug 2021 05:40:24 -0700 (PDT)","from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:203:ba11:c25e:242c:485d])\n\tby smtp.gmail.com with ESMTPSA id\n\tp30sm15722876pfh.116.2021.08.11.05.40.21\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 11 Aug 2021 05:40:22 -0700 (PDT)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=chromium.org header.i=@chromium.org\n\theader.b=\"fyiIh3IZ\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org;\n\ts=google; h=from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=TjMV2hbre32oGAcqU+C5WWfxIEQsxgiwwK4+OY7kvjk=;\n\tb=fyiIh3IZXqHU2P7+1Gd/iaC8KDMEqzOvrIs5f5Cw18dYqfiPOd84CGclxmCAWTyCnF\n\tW7Gwc6eI4FdZ5ylUudtT/yEruDJjTU+D9DONpkRB8XEpA+WcyvF5sewDcIvxiv0fpgub\n\tToDnguNMvps15R4oirVYCQ3qTvQdCLS6Xu3N0=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=TjMV2hbre32oGAcqU+C5WWfxIEQsxgiwwK4+OY7kvjk=;\n\tb=dbcZx0430qyBFMLxqxzyYjAAcxX92jzZNZvHiEecrTrccUEYA+blbcolPbXHdHAQLk\n\tv/gmXiSFT0VMuBkFvTHjmf/kkKJPGEGISuPC2RBprpJncNxdW5OeI/6Un0JSQi3pCHVw\n\t0YQ+br6cFPYBcSH+9N00v9bLtcaHbKjViP8UpQ2gUpz520g/v1I39NnwwfCIKIjoSivw\n\t/9PQ6CCBZYdycnzXZOkgp95S68A4NlkvXs/gpUPYvJoVhmvDDxGVsT6lBiPhVrbCpWRi\n\tTUifoXeX1TTJvzcZTZg2hyndLllkndFHqFTGmcZLyEPukH6YqVPgzTk4zXStJNbO5FEq\n\t9UQw==","X-Gm-Message-State":"AOAM530lvfeGotGYvIcheQmwaBAa/dkoDVxxBrxxBoaU0hNrgYxyFn61\n\tpSxgqlLxgLuJujPmze6Qz85YL+hLYUP7/A==","X-Google-Smtp-Source":"ABdhPJwS0qZ2Fkx9o/w2K4MCxosYzNylxR2E8PDlSkzKYhhs5FTkgOW+SiFEWB3H0347k6n87/GaIA==","X-Received":"by 2002:a17:90a:c705:: with SMTP id\n\to5mr21135494pjt.55.1628685622784; \n\tWed, 11 Aug 2021 05:40:22 -0700 (PDT)","From":"Hirokazu Honda <hiroh@chromium.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Wed, 11 Aug 2021 21:40:10 +0900","Message-Id":"<20210811124015.2116188-1-hiroh@chromium.org>","X-Mailer":"git-send-email 2.32.0.605.g8dce9f2422-goog","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [RFC PATCH 0/5] MappedFrameBuffer::maps() returns\n\tthe plane address","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>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"The goal is to acquire the plane address by MappedFrameBuffer::maps().\nCurrently it returns the address of the begging of a buffer where a\nplane exists.\n\nTo achieve this, it is necessary to not only change MappedFrameBuffer\nimplementation, but also fix codes of filling length in\nFrameBuffer::Plane. It is set to the buffer length, not plane length,\nin some places.\n\nHirokazu Honda (5):\n  libcamera: mapped_framebuffer: Return plane begin address by\n    MappedBuffer::maps()\n  cam: file_sink: Fix wrong mapping planes\n  android: camera_device: Fills the size of plane to\n    FrameBuffer::Plane::length\n  WIP: libcamera: V4L2VideoDevice: Fix a bug in CreateBuffer()\n  WIP: android: jpeg: Use maps() and clean up\n\n .../libcamera/internal/mapped_framebuffer.h   |  4 +-\n src/android/camera_device.cpp                 | 37 +++++------\n src/android/jpeg/encoder.h                    |  7 ++-\n src/android/jpeg/encoder_libjpeg.cpp          | 32 +++-------\n src/android/jpeg/encoder_libjpeg.h            | 10 +--\n src/android/jpeg/post_processor_jpeg.cpp      | 21 +++++--\n src/android/jpeg/thumbnailer.cpp              | 36 +++++++++--\n src/android/jpeg/thumbnailer.h                |  4 +-\n src/cam/file_sink.cpp                         | 30 +++++++--\n src/cam/file_sink.h                           |  1 +\n src/libcamera/mapped_framebuffer.cpp          | 61 ++++++++++++++++---\n src/libcamera/v4l2_videodevice.cpp            | 15 ++++-\n 12 files changed, 178 insertions(+), 80 deletions(-)\n\n--\n2.32.0.605.g8dce9f2422-goog"}