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 ESMTP id 17EE9479F0 for ; Sun, 29 Oct 2023 06:22:56 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1977368CA2D; Sun, 29 Oct 2023 08:22:54 +0200 (EET) Received: from w4.tutanota.de (w4.tutanota.de [81.3.6.165]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E631068C9B4 for ; Sun, 29 Oct 2023 08:22:46 +0200 (EET) Received: from tutadb.w10.tutanota.de (unknown [192.168.1.10]) by w4.tutanota.de (Postfix) with ESMTP id 90347106025B for ; Sun, 29 Oct 2023 06:22:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1698560566; s=s1; d=lynne.ee; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=8dZG7bU9Igi5xyTVo5HYPdufE85A+bcm1EHBpagArUA=; b=f1orWwK7SfrjE+bHtR/oEjX9gTXEgt26quRQP+TnrjeCHMve/dP8njj1gz4F7w0g UOszXrqejXk1vmz6dw+iyrjiSsSMO3dz9gc6CsO1yo99WaWUzj5sFVwKlquo9Hh7hh6 fiMNv3St6o6X+W9HG10aaQhl6ISRhZhoX1xZq509Jss20XYsxerr0+XXHTIdyhVj2JD vMlNsoadCzDnCi4o8lEqfbYgsHg8f0GSTsTwn+lnzi4AlAN4sokYKtilhlzOYJFVCAi fPm2QPojw7PuihRtJDY79n9GPfIFjhVNBXAPIOThv6kNI1xl6tS50XtUs79csuVmPQj PWtdcKvrMg== Date: Sun, 29 Oct 2023 07:22:46 +0100 (CET) From: Lynne To: Ffmpeg Devel Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_150638_714165753.1698560566578" Subject: [FFmpeg-devel] [PATCH] bwdif_vulkan: fix artifacts on vulkan decode images 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: ------=_Part_150638_714165753.1698560566578 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Due to making the decode frames context use the coded size, the filter started to display those artifacts as it reused the input frame's size. Change it to instead output the real image size for images, not the input. Patch attached. ------=_Part_150638_714165753.1698560566578 Content-Type: text/x-diff; charset=us-ascii; name=0001-bwdif_vulkan-fix-artifacts-on-vulkan-decode-images.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-bwdif_vulkan-fix-artifacts-on-vulkan-decode-images.patch >From 93d0b1012012b1a1a8d0701f9c78e4a1a9502d29 Mon Sep 17 00:00:00 2001 From: Lynne Date: Sun, 29 Oct 2023 07:19:25 +0100 Subject: [PATCH] bwdif_vulkan: fix artifacts on vulkan decode images Due to making the decode frames context use the coded size, the filter started to display those artifacts as it reused the input frame's size. Change it to instead output the real image size for images, not the input. --- libavfilter/vf_bwdif_vulkan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_bwdif_vulkan.c b/libavfilter/vf_bwdif_vulkan.c index f1623e6ef7..690a89c4ba 100644 --- a/libavfilter/vf_bwdif_vulkan.c +++ b/libavfilter/vf_bwdif_vulkan.c @@ -325,8 +325,8 @@ static int bwdif_vulkan_config_input(AVFilterLink *inlink) /* Defaults */ vkctx->output_format = input_frames->sw_format; - vkctx->output_width = input_frames->width; - vkctx->output_height = input_frames->height; + vkctx->output_width = inlink->w; + vkctx->output_height = inlink->h; return 0; } -- 2.42.0 ------=_Part_150638_714165753.1698560566578 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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". ------=_Part_150638_714165753.1698560566578--