From patchwork Sun Oct 29 06:22:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lynne X-Patchwork-Id: 44423 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:dd83:b0:15d:8365:d4b8 with SMTP id kw3csp780427pzb; Sat, 28 Oct 2023 23:23:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFPsAtI6jYxhnogyADEFnkNbpu2ttZXE05JegRG1Q9pMxB+tvtc4arEQchF/X6ChzHxY+nQ X-Received: by 2002:a05:6512:238c:b0:503:261d:eab8 with SMTP id c12-20020a056512238c00b00503261deab8mr6276455lfv.28.1698560584397; Sat, 28 Oct 2023 23:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698560584; cv=none; d=google.com; s=arc-20160816; b=uBElHkKRSkM2396ihUYWjR/5+usBtj0Og3by8iY3F8hU8PsbVqlfMLBLjqQlR4vjn9 1kNF0NplKa8ly2+h6B3gffh8Lsuz/AagLo8jSkZKQ+1P6NNseiJ9SBuGm6vmPJAgUaYm p0+YNz814qQQB+RfmCivRgUVdkqQ/rh8yc+hy9xul6mWwF18YOJHS4zvhjuM+YI+11+c Vjd/rsTyePcNFImcg1/aKOdm3Gjx6N3l38y9ZkOTWjqwm+YeJOU9D5GB/Y7BXQO+fklF cwFKDZHfwytFi2ax6vDD6o7K3eR6o3XO/KYMr4/67jf1djgF8b/rZ/6Ba78Eg7Tj8KF5 FCTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:to:from:date:dkim-signature:delivered-to; bh=BGxzPJQPoxhX/4vCr58qJGK5CxiKAuzq0c0CtwTGszw=; fh=Q46kXK7oI5D1Jhi90JBr53c7NIaTxGaU4KPeRZyM/hI=; b=UngfR//+L31F+XPcE5f9zefvb9lj4V3GS1aHBqtcEd2Kn/CSV5d1YnhVKx30equTX1 vSKnIjDSrQhlEbZ7zvZuTjXKheU3W0trOPAdNua46POvjzgJYfPTQOyMCJ6KKiobHGhg k8h0UAUwcHN8FAghh06AH+0UzorVG5qhx1eWKaCdmmbqPrhPXbwId+zNSlcQvb2N9Wiq mc8NSXa6k56sx8qxuo3s9Cl1jpt9dfof+UdWrpK6U0Nq18BD8Q3WHhRM8O4GNkS4pEMD UmokfTn2GFu1g4zPY2OMiTmKwpG38DrMAtaAsipts3RX9il8d5SokED+9dWFxXYZAusj CCtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@lynne.ee header.s=s1 header.b=f1orWwK7; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=lynne.ee Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id c43-20020a509fae000000b0053f66d90822si2174347edf.344.2023.10.28.23.22.57; Sat, 28 Oct 2023 23:23:04 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@lynne.ee header.s=s1 header.b=f1orWwK7; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=lynne.ee Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4119E68CA4B; Sun, 29 Oct 2023 08:22:54 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org 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 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" X-TUID: qpC9YvjAvmhk 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. 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