From patchwork Thu Sep 9 08:08:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 13771 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 B613ABDC71 for ; Thu, 9 Sep 2021 08:09:15 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 32F716916A; Thu, 9 Sep 2021 10:09:15 +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="W+RxIuLz"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id CE5D86024E for ; Thu, 9 Sep 2021 10:09:13 +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 7869B24F; Thu, 9 Sep 2021 10:09:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1631174953; bh=2yxkvEZqFX7QiENfBI24N0CUq3dcVDX5dhjwZfHFlJs=; h=From:To:Cc:Subject:Date:From; b=W+RxIuLz48f5aoh2IKnHfnfchGiPwpSLHbOTaIrYxAM4a5qE6hek8F1XH/waww1m5 aVu+ebVSlIQPBzTde4F+1EVOpxW1Lp97/7klHedqu0x87nExmxzBsAU0NQnifiQBKE fSEP++W6+KSJavJqAzJSjQOK2mszPWucUBhnEYBc= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Thu, 9 Sep 2021 17:08:55 +0900 Message-Id: <20210909080902.239533-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/7] v4l2-compat fixes 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" Everything started when a new version of v4l2-compliance broke our unit test, because it changed the version string format, and added some more tests that we don't pass. The extra test is that it confirms the V4L2 format description string, so patches 2 to 5 address this. Patch 6 fixes another todo along the way, and patch 7 addresses the version parsing, which allows everything to run again. v3 is just minor wording changes. Mostly s/name/description/ Paul Elder (7): v4l2: v4l2_compat_manager: Don't print "camera not found" on openat() libcamera: v4l2_pixelformat: Add V4L2 description strings libcamera: v4l2_pixelformat: Add entries for NV24 and NV42 libcamera: v4l2_pixelformat: Add helper function to get the description v4l2: v4l2_camera_proxy: Report the proper format name in enum_fmt v4l2: v4l2_camera_proxy: Set the compressed flag in enum_fmt test: v4l2_compat_test: Fix v4l2-compliance version parsing include/libcamera/internal/v4l2_pixelformat.h | 6 + src/libcamera/v4l2_pixelformat.cpp | 207 +++++++++++++----- src/v4l2/v4l2_camera_proxy.cpp | 9 +- src/v4l2/v4l2_compat_manager.cpp | 2 +- test/v4l2_compat/v4l2_compat_test.py | 2 +- 5 files changed, 162 insertions(+), 64 deletions(-)