From patchwork Thu Oct 28 08:46:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 14377 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 0D71FBF415 for ; Thu, 28 Oct 2021 08:46:58 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4B6F7600C3; Thu, 28 Oct 2021 10:46:56 +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="G9yC9F+F"; dkim-atps=neutral Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 13C16600B5 for ; Thu, 28 Oct 2021 10:46:54 +0200 (CEST) Received: by mail-wm1-x32c.google.com with SMTP id b2-20020a1c8002000000b0032fb900951eso504586wmd.4 for ; Thu, 28 Oct 2021 01:46:54 -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=DFVfDgiJ51NAaHuOgz8wXkOeYUYNO2/wkqOjzQm0aj8=; b=G9yC9F+F9fTddmBmr8fwRW3rEgIvkQ6MDjVAbBkENHeP+MR5+MbxTI27H4zqVE6tjy Fukber4giyxI4Rx6u5DsurtNpj5QtGDE2iQPJG11G/pQ+1dXfeVOOkArieMZsb7LE7yB ZLAJIxdpfUhwXa5gsXmC9OrkKPRu2o8W+A10HSIhzyCKnUTLZbRfd1Nmcc2hiRtYq6dy vftVrFnIkqLUvmTucifl3l5u2gzYDGaNvjMeWz+AxlPue6QC554sRaOlJHf3Lj0QDRKK /z6zOd6iWANVtuc7AuCbo/ZPJyHGB2O1GKen5TIjb18pOvfNFRcldqjbgDsNL3bH/Qr8 SF0g== 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=DFVfDgiJ51NAaHuOgz8wXkOeYUYNO2/wkqOjzQm0aj8=; b=IBnmE6OCt7YU6gPETpUm2Wme2vyQe7xnPDavgOWEh2B+OyJa5FZmWGrPWdCTDwHVIV n3+GI0L63Z5NXXznlugEO1zwKO8USdXvTqhfej6zb8JT4ytlE2pRcS+PF7Lw6rFkyB6e V4JhCe3RTc4vOoI+l38QhmcuwaO7QAW3asD2eaNiKsBTB9M9kgnvjFET/PqqshnxeE8g VrEu8IkBuzADynDDqGpcMCAR8blo8JmVYNelQ2QwRZqG6tvFK2w9SAzxLhaJZbdg94er ZfeM4NiF5DaJqBb0RjZCRgbe9m9Yji7YFBFlATm4+K20rbBwLasrg2okWinrxXCPmzUM N8Zw== X-Gm-Message-State: AOAM530Ginqb1YnjOUkAghF/+6IgQechbwSew9AF1DNssiHdSdA5vtyp LK9Knn/Y+EZaj4/ViaGtyKL92zVPlCBqaH4l X-Google-Smtp-Source: ABdhPJxmnLLJj4nvEYJiQ/fNfgK12FX7xHvocvZoa+fFfnR+dxHuqxgqep5n7VpEFoXA2InGpabOxw== X-Received: by 2002:a05:600c:35d0:: with SMTP id r16mr11038366wmq.97.1635410813577; Thu, 28 Oct 2021 01:46:53 -0700 (PDT) Received: from naush-laptop.pitowers.org ([2a00:1098:3142:14:b894:feb0:b828:13b]) by smtp.gmail.com with ESMTPSA id z2sm1955281wmk.19.2021.10.28.01.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 01:46:53 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Thu, 28 Oct 2021 09:46:37 +0100 Message-Id: <20211028084646.453775-2-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211028084646.453775-1-naush@raspberrypi.com> References: <20211028084646.453775-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 01/10] 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 Reviewed-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 */