Message ID | 20250824-b4-v0-5-2-gpuisp-v2-a-v2-34-96f4576c814e@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <libcamera-devel-bounces@lists.libcamera.org> 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 EB846C332A for <parsemail@patchwork.libcamera.org>; Sun, 24 Aug 2025 00:49:45 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 459FE69340; Sun, 24 Aug 2025 02:49:45 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="OBQKZwbW"; dkim-atps=neutral Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id F0D1569326 for <libcamera-devel@lists.libcamera.org>; Sun, 24 Aug 2025 02:49:07 +0200 (CEST) Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-3c7ba6c2b2cso301099f8f.1 for <libcamera-devel@lists.libcamera.org>; Sat, 23 Aug 2025 17:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1755996547; x=1756601347; darn=lists.libcamera.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=y98V/Wfhw54+CkoioSLFFdRNZUBWzOwveM7ePFBUm2o=; b=OBQKZwbWiSQHoWUlPAHe6aC9xOdO/kUKgYmvX+5zok8rbEUJU1X8eAbEcErKXRKyBC 7xy4jgDL5hIRmxJy5noJZdKsD+4Lzg37Ukcs+UvDpPMHONGvHOYLA56WSwTW4YByayft VuODAzvhtFsN3XULQouapnYNZLhOmgXIQSJOPEca6rrRwJ3AFNzfuY+cMPXSsaVjpq6I 3F77W20jjTdEaAS4lBm2S6IQfAoD/RueIq/NhDOLCpg5Z5eQWU9ucUVLaiRBYy3AnmUz MuobKFSdknDqScMMlayPZjEc1Sc2I/C2GYLwrqSxwwaqpBxktacRbmy8TXSCDaCr4ppK Y4Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755996547; x=1756601347; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y98V/Wfhw54+CkoioSLFFdRNZUBWzOwveM7ePFBUm2o=; b=fhQHYMESppeV8z3ZREOOY3T0jAFjp4/1aIhtoS1d+q9p6USdLp/AmNhkinL7z+q23Q tGRxc9ZlL2Z+AD0CERS3kCZO2DSodytHdKo1bM/Can4dlxpruwCvpSEJixd5DureF9sm iVe7ikT5aC2OgSrgGxfHAModFcgK5ZEjdlwg1Xd4jvpBdFuD1KvgB+ugTB3vPyLs3MoE citUYMO1WzruOo+IGmYAltPMgFCmXPdAMDwSGcH1XlfenpC7TgwzlSgVsPcs+SGIP3CT VMXLnuRyCO/RVLLAv79Ogb1eLeE7XhjUW2quFd3OozxFFhqOMosnd57mm30GdIQdUsAv ZQhw== X-Gm-Message-State: AOJu0YwgQhW570xjJeQ83YAs2/qUyXlSii5bSbuVHWDYp2KY6KkhY7NX OhmvNDuXatGAnyafhRXgLDfGZo6s8rya7nHvGiWNQdcUVOvcAbCj2cSJsUPjNZX/L0g= X-Gm-Gg: ASbGnctSy9rcSBnma/X6pzncd6kzSjQ6fiCjspW1+XAXtj07viba2lmq2HQfXh/aINY +cQjq9eB377rK5Fe1pvg//gAZuhtmcC64BjPLflPUGW2pYWI9OBVB1JyoXspPH0utzLL5WFzhtJ UW0uj5jvfFnRqNLkxvCCkzDvdLkrpsJrMbRaxi5Z8810z7aQMJ2pKbQbTBuwGRqVUk0Fe638nH3 2PA9u9EMQv2X8elKl+o2SebpcbPn7psfq8s2nG8ODgZJNtucoMDR0ArIZ6OqQHMp0YH9dxdDaNr P4IAsZki1zOstKgZoypIHt2x2QZ/dImcv18UTFIuppHrMTUzsM1d6Q0BqrwZiNOSQ55cZNxueqA +J0NHOVwkfM1hXAVtlRLG96tMIgoZvQjEG+immx9VuAJ42XG0/fI/LKFF1DoPmycJxtzCidyjCK 3LYWE+TvTswd6wDBwGx0sl X-Google-Smtp-Source: AGHT+IGArlkhupXYgsQjNG4MdbioOyMc+4EZMkfpe65Hae/rUtLg6FKVbuAsi4/GpPfdowXluA+V1A== X-Received: by 2002:a05:6000:4181:b0:3c6:cb4:e07a with SMTP id ffacd0b85a97d-3c60cb4e5f4mr3965469f8f.30.1755996547458; Sat, 23 Aug 2025 17:49:07 -0700 (PDT) Received: from [192.168.0.13] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45b4e1d530esm69347225e9.0.2025.08.23.17.49.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Aug 2025 17:49:07 -0700 (PDT) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Date: Sun, 24 Aug 2025 01:48:46 +0100 Subject: [PATCH v2 34/37] libcamera: software_isp: GPU support for unpacked 10/12-bit formats MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250824-b4-v0-5-2-gpuisp-v2-a-v2-34-96f4576c814e@linaro.org> References: <20250824-b4-v0-5-2-gpuisp-v2-a-v2-0-96f4576c814e@linaro.org> In-Reply-To: <20250824-b4-v0-5-2-gpuisp-v2-a-v2-0-96f4576c814e@linaro.org> To: libcamera-devel@lists.libcamera.org Cc: Bryan O'Donoghue <bryan.odonoghue@linaro.org>, Milan Zamazal <mzamazal@redhat.com> X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1983; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=nA+2gEBXhbesAcyA55e+vkj/TQlUo/6L5jrjUpeJ3/g=; b=owEBbQKS/ZANAwAKASJxO7Ohjcg6AcsmYgBoqmFiJ71gXX+WwDBmSTWhQeaF5CcLJSDs/fOXq /DQ13ML0UKJAjMEAAEKAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaKphYgAKCRAicTuzoY3I Og5vD/9PfpFJeUYLqjGDlZlUO5uXDmMqIbgY+HSUZHTiX6wrl6kdVdRLCJBl0+g1f3IB2QRKA2A x+MEznuY72XjUujgK+ZO1OXGPdaSW90N1zHRgtcEY+KA16EZWeRAKPRxkjfx1sS8N5MiVKgScrq 4avQE9tqr/rsfoQ2Xg213tYNnFb0R882DmfKCCXZlbcaNGN7hdL4ZKbZK4hJXs2yOJZY4dDxLgB cm+dq3P/J9NtQgpOmo84l/eAKKy3MVQHk/8pQBJ8Z5XC5iYM/JbFrI6Q3kzqMqJKJuJrMrDwweM vKG3c/OLzj0nPO0Ei0gElCBrZ1ejAQu7m1JZt0GIOqepgWCkpTc3rhmB2coX0BqjnIJaBNI47Y4 z+6HUbBrSXNWrPIfw+z7CU2nXKmmOXfuzt07m0S/CHJo/1B3WhxarqKdMCcqS5+XwMToxSw/v7O cSiBTmS4vw75Qd84xw3cL/A2UnBFMp2EmBUb0pqDNc+lf43Icd7LdrCIyvLszQwCY6FjEu1inds aYMN/pt/Ve2oQ7mhDGT0RAyBf9T4DCJ6pHsBt1HUPko/7UdvLSkwQvIPWkW0MKDImu3XhKhoiLe bm0Q8sQ8KX9nu7Ekz1BgPo/jhzPACxiexX6p4DQP8yZ4qxGW2/TEZuiM1ANniKbKIN+lP/YyGT9 M9/f37e72Nl7Uig== X-Developer-Key: i=bryan.odonoghue@linaro.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <libcamera-devel.lists.libcamera.org> List-Unsubscribe: <https://lists.libcamera.org/options/libcamera-devel>, <mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe> List-Archive: <https://lists.libcamera.org/pipermail/libcamera-devel/> List-Post: <mailto:libcamera-devel@lists.libcamera.org> List-Help: <mailto:libcamera-devel-request@lists.libcamera.org?subject=help> List-Subscribe: <https://lists.libcamera.org/listinfo/libcamera-devel>, <mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe> Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" <libcamera-devel-bounces@lists.libcamera.org> |
Series |
|
Related |
show
|
diff --git a/include/libcamera/internal/shaders/bayer_8.frag b/include/libcamera/internal/shaders/bayer_8.frag index 74ce15096ac0b8a221175d111d982d1222b7db38..78c2609c26d115e9d7522cf18a3ebbb7d82a7267 100644 --- a/include/libcamera/internal/shaders/bayer_8.frag +++ b/include/libcamera/internal/shaders/bayer_8.frag @@ -32,9 +32,17 @@ uniform mat3 ccm; void main(void) { vec3 rgb; + #if defined(RAW10P) + #define pixel(p) p.r / 4.0 + p.g * 64.0 + #define fetch(x, y) pixel(texture2D(tex_y, vec2(x, y))) + #elif defined(RAW12P) + #define pixel(p) p.r / 16.0 + p.g * 16.0 + #define fetch(x, y) pixel(texture2D(tex_y, vec2(x, y))) + #else #define fetch(x, y) texture2D(tex_y, vec2(x, y)).r + #endif - float C = texture2D(tex_y, center.xy).r; // ( 0, 0) + float C = fetch(center.x, center.y); // ( 0, 0) const vec4 kC = vec4( 4.0, 6.0, 5.0, 5.0) / 8.0; // Determine which of four types of pixels we are on.