From patchwork Fri Jun 11 16:27:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 12572 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 95A57C320B for ; Fri, 11 Jun 2021 16:27:37 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 19BC76892E; Fri, 11 Jun 2021 18:27:37 +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="O34rX4QP"; dkim-atps=neutral Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E09586029E for ; Fri, 11 Jun 2021 18:27:35 +0200 (CEST) Received: by mail-lj1-x232.google.com with SMTP id s22so10465394ljg.5 for ; Fri, 11 Jun 2021 09:27:35 -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=6f9Wmok+JfuXVezEXYEhv/qV8oDz4Y/v4U30GqyUiWg=; b=O34rX4QPOrlU5ZYvNmvY64zfEvuWL1Xixfgh+z3DYRQvgZk35GL1xCrgnWkxMUMVPu jBRMr5N9tAUwWBelYN08mnbsEWRfr9H/E9jS2lvb7BSTVZnIvnLKF5QO4F07sJ1kFGqx WPPOxao2HDHjX7UmYRZChoh82FgJ5XDlXMLZ0oLNuhkCKe7AOytl0Q9RqPW6DOz6DQgt H0iXi0aBVrk191u3Nrs4n7W72YmxCXlpfXu0lgMcYVqYY90oEv9MVjuX6dWip8iyNPjb yE/NRh6z8sbEwbDhN3n9ua908pCNvI3Bj8r1zTzbB5CJYloLMeL7nh1L4xsww5F2YJm2 gssg== 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=6f9Wmok+JfuXVezEXYEhv/qV8oDz4Y/v4U30GqyUiWg=; b=P9t3W0AnKNTyliTqsxQj5S4naNQTv40m9LYQ3op3z99eY3mn/HVEzw9BBpKwKSCnFu y81grzeI3ockQ6N0PhZrDGM2j0L5xAddqkffcLALeXcXuQwn+DQeTv9alL8qEi+4p5kt 8oRAuCzVt1FUIDqDFAqgQKaXFKvECUyL68EkX6QS89i7kcKpWkNZTSgszsv1IJ+/KMkX 2HjR8VjR7D/DsFez6pAaQrpZEdyRKrVCPMTVkWadNJsFSpPtek47gArNKTOfX2olMuQL O781AFrhQ8RqkHsi1VxNMrSBDvbxcOihu4lZrHdr3B47Q4M4+yvRMC4BPTMXwjmSfasN E/1g== X-Gm-Message-State: AOAM533vEOMNhxn+IOpdmI0Qx12KoNGmg2Fdi2RKJrpBvt+nmr04o4sc wvO3VZ3W6KUrW3RC4p+2Biz5zMIR71kIvg== X-Google-Smtp-Source: ABdhPJxXJPbzLCkndR18b8RJEDian7jjcpnOwkZyXYqZwCE4Q6APWivA6NDkD8mYYeQ3LCXRZM5uqQ== X-Received: by 2002:a2e:9214:: with SMTP id k20mr3840029ljg.353.1623428855288; Fri, 11 Jun 2021 09:27:35 -0700 (PDT) Received: from localhost.localdomain ([85.249.44.185]) by smtp.googlemail.com with ESMTPSA id l2sm777773lji.70.2021.06.11.09.27.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 09:27:34 -0700 (PDT) From: Andrey Konovalov To: libcamera-devel@lists.libcamera.org, laurent.pinchart@ideasonboard.com Date: Fri, 11 Jun 2021 19:27:22 +0300 Message-Id: <20210611162726.824789-1-andrey.konovalov@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/4] qcam: viewfinder_gl: add RAW8, 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 and 8-bit raw Bayer 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. Changes in v3 vs v2 [1]: * Squashed 2/5 and 3/5 into single commit. Moved couple comments added in "Add support for RAW12 packed" to this commit as they are generic, and belong to the initial change. * Made stride_ unsigned * Dropped unused bayer_8.vert file from "Add support for RAW8 Bayer" patch [1] https://patchwork.libcamera.org/cover/12447/