From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 4AC8D4D168 for ; Mon, 17 Feb 2025 18:33:51 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4DFF868C20F; Mon, 17 Feb 2025 20:31:52 +0200 (EET) Received: from vidala.pars.ee (vidala.pars.ee [116.203.72.101]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8391168C0F5 for ; Mon, 17 Feb 2025 20:31:41 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; s=202405r; d=lynne.ee; c=relaxed/relaxed; h=Message-ID:Date:Subject:To:From; t=1739817101; bh=E/NF/ioxZ0hlun6cMACdmB7 NdZjv3ornjnsn+GSuigk=; b=iHyrXGwpVB/bo816Ls9PULX7OGSNrz5BBx03jlU4iOtBpA/Zov SJfueriDXARUm+izKoZE3AERHfeeMf2xmz7PZKZSIpXdFGVE8EmCRN9/iGO1kiae9NhhIBicXFc mo70Yme5hY75epqB+tleZuspcZqg68B7w/JcwlL/HZyGYJq+v/Oq5vcx7FDUCNTp5FYvTkZbOAZ 9IIWNG2LNecE6Q7P5/IC/MkUDvJd9oUC3ouwQnocT7CkMVcH7VPaghYlESV0tX5NmJKCY5nHv9p xjAQpa5G8UkeFPwehGjFuixhinJFM+NqTBjUZuHlsVn4MZvH3GIlRTS4XylDNDaToug==; DKIM-Signature: v=1; a=ed25519-sha256; s=202405e; d=lynne.ee; c=relaxed/relaxed; h=Message-ID:Date:Subject:To:From; t=1739817101; bh=E/NF/ioxZ0hlun6cMACdmB7 NdZjv3ornjnsn+GSuigk=; b=tPCESEdMk9UZjzbw7ilTbof42azgaj+dSY/9zOn8AvKruav7LC nm4RTgKGaYZhCycqEi7AFXILipa+uFSbolAg==; From: Lynne To: ffmpeg-devel@ffmpeg.org Date: Mon, 17 Feb 2025 19:31:15 +0100 Message-ID: <20250217183125.57656-5-dev@lynne.ee> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250217183125.57656-1-dev@lynne.ee> References: <20250217183125.57656-1-dev@lynne.ee> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 05/11] chromaber_vulkan: fix use of texture() X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Lynne Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: While the rest of texture() uses were fine, this one was not. --- libavfilter/vf_chromaber_vulkan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_chromaber_vulkan.c b/libavfilter/vf_chromaber_vulkan.c index 65b53afd64..f8cfab1480 100644 --- a/libavfilter/vf_chromaber_vulkan.c +++ b/libavfilter/vf_chromaber_vulkan.c @@ -142,7 +142,7 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in) } else { GLSLC(1, ivec2 size = imageSize(output_img[0]); ); GLSLC(1, vec2 npos = vec2(pos)/vec2(size); ); - GLSLC(1, vec4 res = texture(input_img[0], npos); ); + GLSLC(1, vec4 res = texture(input_img[0], npos + 0.5f); ); GLSLC(1, imageStore(output_img[0], pos, res); ); for (int i = 1; i < planes; i++) { GLSLC(0, ); -- 2.47.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".