From patchwork Mon Jun 29 15:14:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 8499 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id E68BFBFFE2 for ; Mon, 29 Jun 2020 15:14:23 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 5EF89609C9; Mon, 29 Jun 2020 17:14:23 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="keyB1sEk"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7B89A603B4 for ; Mon, 29 Jun 2020 17:14:22 +0200 (CEST) Received: from pyrite.rasen.tech (unknown [IPv6:2400:4051:61:600:2c71:1b79:d06d:5032]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 05E6A299; Mon, 29 Jun 2020 17:14:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1593443662; bh=S7oFhK5ZA4JITNB1NLdgJ2JDAHqkrT7uf4jFz5A8Wa0=; h=From:To:Cc:Subject:Date:From; b=keyB1sEkNZZSBCO8ofMgjh3GsgOLq7e5zACBOiHfKiQ+guG7ylEAjnBv0B+YhWJjF X7PriqCHfBAKl5kDxieK35wOFKbu2dYxgKfTa0FB7XIMQPGTlcw2UJBWk3ZNPdIWL5 kwv8LqR0dmjY55lGed4ZIyaB/3oMyZHLwTWbMJHI= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Tue, 30 Jun 2020 00:14:05 +0900 Message-Id: <20200629151411.216477-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/6] Move formats from v4l2-compat into libcamera X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" This patchset moves format information out of V4L2CameraProxy in the compatibility layer and into libcamera core. The first three patches add the info in the libcamera core formats, including an expansion to the format info to account for how many bytes are needed per how many pixels The last patch then removes the formats from V4L2CameraProxy and uses the libcamera core formats, cleaning code up at the same time. Paul Elder (6): libcamera: formats: Add NV24 and NV42, and reorder NV formats libcamera: formats: Add fields to info ease calculating bpl libcamera: formats: PixelFormatInfo: Add v4l2 constructor libcamera: PixelFormatInfo: Add methods bytesPerLine and imageSize libcamera: pipeline: raspberrypi: Simplify format fetching v4l2: v4l2_camera_proxy: Use libcamera formats include/libcamera/internal/formats.h | 8 +- src/libcamera/formats.cpp | 168 ++++++++++++++++-- .../pipeline/raspberrypi/raspberrypi.cpp | 3 +- src/v4l2/v4l2_camera_proxy.cpp | 167 ++++------------- src/v4l2/v4l2_camera_proxy.h | 7 - 5 files changed, 199 insertions(+), 154 deletions(-)