From patchwork Sun Jan 31 18:43:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 11076 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 B1BE3C33BB for ; Sun, 31 Jan 2021 18:44:17 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 15B46683DB; Sun, 31 Jan 2021 19:44:17 +0100 (CET) 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="JUxA9iVM"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 0574668383 for ; Sun, 31 Jan 2021 19:44:16 +0100 (CET) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8406D813 for ; Sun, 31 Jan 2021 19:44:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1612118655; bh=Uw66l9GM4lIZLnshSp8IEohxYHaLp59PK64CllbSqxc=; h=From:To:Subject:Date:From; b=JUxA9iVMnMhZV01S7xfPfuDlD9HOjYSirzf+MERuu16pPQyCEyXADlKRF4dYXUKzh 4HTBD3aeGZfKDrNcwHy8HWVtNIAsPpVN3AAew5KXJuIN20vos09l4/sMheKGbsLHvm LBqBcfuCcBihJ5BdxxH4jcMT7aqzUM+hXdTcCj8A= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Sun, 31 Jan 2021 20:43:50 +0200 Message-Id: <20210131184352.10635-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] libcamera: Add support for RGB565X format 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" Hello, The V4L2 RGB565X format maps to DRM to the big-endian version of DRM_FORMAT_RGB565. libcamera doesn't support big-endian DRM formats yet, so patch 1/2 addresses this issue in the gen-formats.py script. Patch 2/2 then adds support for the format. Laurent Pinchart (2): utils: gen-formats: Support big-endian DRM formats libcamera: formats: Add RGB565_BE format src/libcamera/formats.cpp | 10 ++++++++++ src/libcamera/formats.yaml | 3 +++ src/libcamera/v4l2_pixelformat.cpp | 1 + utils/gen-formats.py | 5 ++++- 4 files changed, 18 insertions(+), 1 deletion(-) Reviewed-by: Jacopo Mondi