From patchwork Wed Feb 8 02:48:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5b6Q56aP6ZqG?= <839789740@qq.com> X-Patchwork-Id: 40320 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:5494:b0:bf:7b3a:fd32 with SMTP id i20csp4888858pzk; Tue, 7 Feb 2023 18:48:54 -0800 (PST) X-Google-Smtp-Source: AK7set8UXR4Jqz3FF0CIfJGsBacDdZqWocEyV2nQU4MZZr+Cj008lXZNcn5m/j5oB98U3CqeULZX X-Received: by 2002:a17:906:1e43:b0:885:fb8a:7c3f with SMTP id i3-20020a1709061e4300b00885fb8a7c3fmr5218724ejj.65.1675824534641; Tue, 07 Feb 2023 18:48:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675824534; cv=none; d=google.com; s=arc-20160816; b=fvLvkDGG4Blw7mrE2sRYBaegWqbDcmEoZ1LXKbuE75KhuY7HOqh2qRgMTt+Hrv1KVV wpkAK/+/MOP1L7rLMUdR+QNr6L7StyAIN7ZNrL3eQkPJWiQfi4FmEIeCk+FKQDKKT/k6 +7kX5769Ngnv5UXEiKeJv/w9LlrEeONywZCCcf9RYsM9C6JfMMN7XzIC0YfIUevMjX56 J/b96zXfyFx4Hq02KC4NIz4QWbFMghUn3UHmGwCcBSzjfCpStw4rTjCHvUQx6ekophkv 0Wp3o/ZiB9gA/B//R7jpDRzQcIAqdb7YhIwaxkomA2Sm+BBVHiLmvoBoAThirbb9vdlR H6OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to:date :to:from:message-id:dkim-signature:delivered-to; bh=NXASb1j2sMtwVMvjD3pa8U7I6Gl2ncW15pAfwznEpFs=; b=H5hYi5I9rcgOfTZCTjwlkOIIcZ4Jlxx1bKN7dR8d/6uOAtf+sxA9LN1bdo+VuspB4V c5j/9mLGvi3TnfN3mIdhWH3YOItrzNRN+jpRPvr8HesAXpRxGOhZW69imVHb02WPhRbB 8dTlfJ/gZKFqJ7JaEegwWysJj5iy6dVCZkJNcQvfBX+5Udci4qxlmn0xlaEa/k+KQmY7 DSz41/Wuz64ty4T+QTYebX81bWRKg/mdGwSMQPJJlbiakTVMs4siDtPqw34gDtBp6klA Cv64jvhDJpmwD664LKGczUH9amxJtzjjgYHpPjVUSgUf2D09c+tExsOTFj7GeONNydA9 qpjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@qq.com header.s=s201512 header.b=RY9NLMCV; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=qq.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id up33-20020a170907cca100b008aac09413a6si1824893ejc.968.2023.02.07.18.48.53; Tue, 07 Feb 2023 18:48:54 -0800 (PST) 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=@qq.com header.s=s201512 header.b=RY9NLMCV; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=qq.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C9B2268B61A; Wed, 8 Feb 2023 04:48:49 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from out162-62-57-49.mail.qq.com (out162-62-57-49.mail.qq.com [162.62.57.49]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A1D1E68B61A for ; Wed, 8 Feb 2023 04:48:42 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1675824518; bh=bIV4PTE4UOEL3jVzZnqtY6wCa1j49Ed0cCV/VJOYp4k=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=RY9NLMCVryrzreBGfgWyoEnS79piwbkMWA04QHwhdQ63q/GLyZC9nNELIYPlKmGgi h/htYXdjcSOqhN2o2JeTESvqCwQWvXoyaNVKvFPprkZVSUS86qNQ+gLXh0iq9nIJmI 4hHbsaEsMeh4wJUFspBcmEQrzDDN4F1uAFMuRb10= Received: from localhost.localdomain ([113.65.131.232]) by newxmesmtplogicsvrszc2-1.qq.com (NewEsmtp) with SMTP id C1E90C56; Wed, 08 Feb 2023 10:48:30 +0800 X-QQ-mid: xmsmtpt1675824510tleyn3eb5 Message-ID: X-QQ-XMAILINFO: OaubouGXmhNzUpzlGg48xrL6TfnuUFUlcd0zRhPYeRz1h4PpvzWGc/TeCpcZzi J8ZPi2cTkN84qA0ueCuXNgCWaZjv07AnXMiRDWTGHRcYfUAT6SK5dwg5Q+X3kgmyUhbI0nzjAKMu 8Meq04RIvf3tk1ppS1tATwcdT6LgUWDcF4wzBl9JKrKNPRcnQgNHaNnqP/Le2H01S+3TTSjvJjrt Qfcd3eRbL2BgrZmbkan8PQHWcr+zHRxorB6Bu4eoikLBKlcwOIFaYVguaDgpc8J+N7oibNUe47pg JIJgm9+7BSXVrYfO0FzLKFxU6fwoblbx/GI9j+r8gofNXlvRoJiiNQ0yCeUXlAo0UhJJ67DZRbUc Omky+jCZ+aHXukWbPH8Mor/nBO94TE6JtEyn1C22PJI4L9msVhAZhM14sT5l9sw8yjmUtFG7C2du Wgo1aWGUL22N1ptINa22pZHDw1DovJyAvrsOvcetKUgKlpiX1pB9diiAu69LmCclRn5+8FeWtVyr QG3NTEtL4voDIhOoLJ07ZzXHY5FaItQYKiHbYWuVydhAYuCrBxmg78fRnAuRWlwTt/CnK5TMN+85 gZMQtnlrAblnHCPbngD0Url4d3zuZMtNLiVD4RHfpDBqwgybHg4PpnTE2ZsttIMQvE/EMcPUPR0H QLY8+lFXlM2BYyw3fwGNUbV27VfkuE2Y7CSA1rYIKLewgP2WxdsCO9FVtb+Zt+M8RjBoUTJYhlT7 EdRMHfSiBf3Iz4E3BCajFi1P4riNxbzt/XHdHXmmc5lgMTco14K4X+uuSQkuGdkvWuwl6LTlDcJp Wg5HF5Ii2gw9R5RFf9jN0+ablls1MUq8NfO/zI4GQVVzewAu70WcYs0wUp3EK/Kn6R6cIaBp/YW4 fGtZEJJGf7H50LLxEjqIqfh7h9KWJrCX5dClhsWRvdn4/nuX3ySTN7GKUsTMGdG99CdpjFvReD From: xufuji456 <839789740@qq.com> To: ffmpeg-devel@ffmpeg.org Date: Wed, 8 Feb 2023 10:48:23 +0800 X-OQ-MSGID: <20230208024823.89563-1-839789740@qq.com> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: References: MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] add skip_loop_filter flag to decide whether loop-filter 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: xufuji456 <839789740@qq.com> Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: lLpKmJuzGh8x --- libavcodec/vp9.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index 7c0a246446..ebb89a413c 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -1371,7 +1371,7 @@ static int decode_tiles(AVCodecContext *avctx, } // loopfilter one row - if (s->s.h.filter.level) { + if (s->s.h.filter.level && !avctx->skip_loop_filter) { yoff2 = yoff; uvoff2 = uvoff; lflvl_ptr = s->lflvl; @@ -1486,7 +1486,7 @@ int loopfilter_proc(AVCodecContext *avctx) for (i = 0; i < s->sb_rows; i++) { vp9_await_tile_progress(s, i, s->s.h.tiling.tile_cols); - if (s->s.h.filter.level) { + if (s->s.h.filter.level && !avctx->skip_loop_filter) { yoff = (ls_y * 64)*i; uvoff = (ls_uv * 64 >> s->ss_v)*i; lflvl_ptr = s->lflvl+s->sb_cols*i;