From patchwork Thu Jun 17 12:39:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 12629 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 E6F91C3218 for ; Thu, 17 Jun 2021 12:40:06 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3791368944; Thu, 17 Jun 2021 14:40:06 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="HQtquzfj"; dkim-atps=neutral Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 9BF546050C for ; Thu, 17 Jun 2021 14:40:04 +0200 (CEST) Received: by mail-lf1-x12e.google.com with SMTP id p7so10226222lfg.4 for ; Thu, 17 Jun 2021 05:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nmciEzkwkh5iDqh3nP3B4MoFtagZVmJCRbOp4N+pn4c=; b=HQtquzfj6vO9AnHeryQjVf1kmWI/3ZJjPd18vNYmBEGE8Om7lHGm/ZtdG3TwFsDcOZ DT/FCJQGcsc5zqIaPRzpdzo6tJFJWU1PldoBaNtWngl7svpgYMzZLmNMcQSjLsXHwqCr tx5sL1aNdsTUZh8nKs5/3D+xbvLDgo0/uyOFFwaNKHXnIorPCIBpB6ZxUvyD6MG+cvNK Eii7Lr63xdftdLNnsAHkfxaBn1mkuy0ys22xg+fQBuAazpqNIaXx+vrmxPjznYH3EIbR g6C87Rxoqu02MICjXEZEbS+qK7sX/7GG2fDJ2q9gY4O5PW9y//gC+hTod7tuYAObVgzG DMkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nmciEzkwkh5iDqh3nP3B4MoFtagZVmJCRbOp4N+pn4c=; b=QcFEVio3leKLbiyqNMvrSJ/zbFQxvu7gzUN2sFHGX+/Z/Ddeld5Ux+sXQ2xfWvjhfk AUyo6z0bBQGJJMcuzi2pafmpInZvQ28mzUfKfXueaYupWwXr3GmYuSXEbYrcm5IQRfO9 FlURPXj/iSSry8B0F0S1AHUxkn5fj5FcBCnlubTMu3PaKmLCAIMJhcp8MCZVU/QbISsI m2fFaGRM2dB+X3RmlOCoD4LBcwZ6sfY7djHc8DA+ROir5/lKmzHOgi972b2yo7gWyeKY s3D2i0Xf8avl2ueBK3eXB4vXOWCzLNl2dWCLGGfDExasM+xBztT6H4nA4fFwWg99GALg gz9w== X-Gm-Message-State: AOAM530E1tY7E6+zuoY7QSRPi/+5zpjf0Z1USTJ7z0pMODCzbfuRgxGc 24FObkp0UNB0oif3cAiqFlSjfzqVD/I/2A== X-Google-Smtp-Source: ABdhPJz+QMyPNXW2YzrEQpMM7w8ITCNPSYp0wZtotgRufU4O8AYZAqy2YZBhPDG3eXzVb/isd8xOGA== X-Received: by 2002:a19:a407:: with SMTP id q7mr3849975lfc.68.1623933603928; Thu, 17 Jun 2021 05:40:03 -0700 (PDT) Received: from localhost.localdomain ([85.249.44.185]) by smtp.googlemail.com with ESMTPSA id t17sm268800ljt.1.2021.06.17.05.40.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Jun 2021 05:40:03 -0700 (PDT) From: Andrey Konovalov To: libcamera-devel@lists.libcamera.org, laurent.pinchart@ideasonboard.com Date: Thu, 17 Jun 2021 15:39:38 +0300 Message-Id: <20210617123941.1095481-1-andrey.konovalov@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 0/3] qcam: viewfinder_gl: add RAW10P and RAW12P formats 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: , Cc: morgan@casual-effects.com Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" This patchset adds support for both 10-bit, and 12-bit raw Bayer packed formats. GL_RED texture is used to store the image data. Not only this allows to use the same shader code in 10-bit and 12-bit cases. But it also turned out that sampling from GL_RED texture is easier (less "patterns") than from GL_RGB - even though we loose the "auto-skipping the LS bytes of pixel values" feature in the 12-bit case. 8-bit raw Bayer format support is excluded from this patchset, and will be posted as a separate patchset. Changes in v4 vs v3 [1]: * patch 4/4 is excluded from the patchset and will be posted separately * the review comments for v2 which I missed when posting v3 are addressed this time. As well as the review comments for v3. [1] https://patchwork.libcamera.org/cover/12572/