From patchwork Wed Oct 27 09:27:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 14355 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 E99CCBDB1C for ; Wed, 27 Oct 2021 09:28:11 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2D4B464887; Wed, 27 Oct 2021 11:28:11 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="Adp7GBlB"; dkim-atps=neutral Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6F78F60122 for ; Wed, 27 Oct 2021 11:28:08 +0200 (CEST) Received: by mail-wr1-x42a.google.com with SMTP id u18so2977490wrg.5 for ; Wed, 27 Oct 2021 02:28:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e5OiYmwgsxOGD9dADhevPePOuTJgQifCfGk0A0TqGig=; b=Adp7GBlBxl4PKTTyxBtEWQeQRu6SQTKLAvFH8xztQ4PzXnF6KJd2oLdecIsUm9Z4Lw hR+BjmkKMnURWqrMnV1pJ2OL6dwZ4XGq6DxBjdUEpoj2LOKi5yCcm9GrEuokyWzFTSP5 BcPcSMqs5drZPPuzFQJkpRRrmRubbWcPeNq25rVe2z20oN407BETc6j6JaHrD0BYqxb6 UArU5cXNopN+3tb6WkD6ZTiexPo5SzF3Lk3S2e7HccJXDMKGA819WyZALsPOE15H8QQt cVG8YuOC7ol0CZ5xSL0oo/jWshBPII7MEbvJiGsFw/U9VDXEfyo2TvW/yn/u7/+4xHT4 I/dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=e5OiYmwgsxOGD9dADhevPePOuTJgQifCfGk0A0TqGig=; b=ZTfjdhapnOU+YZ1vMUUMvJ0iBtXsdS3s3kwbRS/8p7H0BUkjCDcEw6Emmas03nW9Cf HeohsRay7/Wn8CV5L3oMpuU41s5ll9n8Db6MzwtvQvLJ3+TSsZB7rHZmqfZ5Yi0nm8Ra G734w0FWInlVjuuHvTNSy5qkf+hYW5HzS3zHFfzMUPsXq3YWfsvvF+DkDr5IT/xctzOD 3QkkK38pEHMrRUJ82IPHB7YBjqfgqMrOBerixiSMLOIzEc5vvhjvrodClJbuaX6X+x4q df1P4OjJ4cnnkxsX3oN5o3c9T+7X4S3Or5q7jL+H8UO1VPH42JhM1DQxw5/npUtEvBdB l2Aw== X-Gm-Message-State: AOAM5330XII3+6c1Elr4YmmTiz00iHTQM8PEgQHd4bIojGZVa/sVzP8v RX44XMUHECDuFHgaFpgfn+ZKdY+iad2FTUH3 X-Google-Smtp-Source: ABdhPJwyEhYO8pk2glhGGp9e25evHBvVUvnW1KhhFQC4GqmZqBk+VODK9Dt/AwDeom8wS5E/7ob6gg== X-Received: by 2002:a5d:4570:: with SMTP id a16mr38114325wrc.310.1635326887904; Wed, 27 Oct 2021 02:28:07 -0700 (PDT) Received: from naush-laptop.pitowers.org ([2a00:1098:3142:14:6561:eb24:3f00:ce98]) by smtp.gmail.com with ESMTPSA id x2sm2861360wmj.3.2021.10.27.02.28.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Oct 2021 02:28:07 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Wed, 27 Oct 2021 10:27:55 +0100 Message-Id: <20211027092803.3671096-2-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211027092803.3671096-1-naush@raspberrypi.com> References: <20211027092803.3671096-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 1/9] include: drm_fourcc: Add R10 and R12 FourCC 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" From: Laurent Pinchart Add FourCCs for 10- and 12-bit red format with padding to 16 bits. This is a temporary addition until the formats gets merged in the upstream kernel. Signed-off-by: Laurent Pinchart Signed-off-by: Naushir Patuck Acked-by: Kieran Bingham --- include/linux/drm_fourcc.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/drm_fourcc.h b/include/linux/drm_fourcc.h index 05d697ff30ce..28ea3a167ecb 100644 --- a/include/linux/drm_fourcc.h +++ b/include/linux/drm_fourcc.h @@ -104,6 +104,12 @@ extern "C" { /* 8 bpp Red */ #define DRM_FORMAT_R8 fourcc_code('R', '8', ' ', ' ') /* [7:0] R */ +/* 10 bpp Red */ +#define DRM_FORMAT_R10 fourcc_code('R', '1', '0', ' ') /* [15:0] x:R 6:10 little endian */ + +/* 12 bpp Red */ +#define DRM_FORMAT_R12 fourcc_code('R', '1', '2', ' ') /* [15:0] x:R 4:12 little endian */ + /* 16 bpp Red */ #define DRM_FORMAT_R16 fourcc_code('R', '1', '6', ' ') /* [15:0] R little endian */