From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 7E0D94223B for ; Sat, 19 Jul 2025 22:37:43 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 1DAB568CE0A; Sun, 20 Jul 2025 01:37:39 +0300 (EEST) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id D305F68CCDD for ; Sun, 20 Jul 2025 01:37:31 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 1136E42E80 for ; Sat, 19 Jul 2025 22:37:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1752964651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=wzbw4vAicVVwI92frsvLrGeyVffjsrw9K900y/BeAQA=; b=LzEZCKRJtkjnbeTx1SF6eymPBJcx2TqlSc++Odk4atUs94/9iv90G9077vzxHAoR7oNXpk 7vkLwTi2AHk2j1sr8WcvO0i4wXcncmqjGplsU8k9fedoVb3+eH5A/HyFUOkvhBGNryq114 1PrljjszuxQQDOJaDMDrGmJ/iuDfJXnH/lnxgh0PWGzJUGFQX/UNWHSv/1nSbXBOap2HPb zFKdokkl3s/MSBl2GbrQ81BVXXiL9bp3+o/gxL75EBjtlgh5mxxwC0ASMDeMssB5sfR8Bd nngEXu3bzfvLAd2Y9dLpWf6ayd80Ea7bsUtEV1SWJxaVIV3GZueu3kS5mOFVfg== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sun, 20 Jul 2025 00:37:29 +0200 Message-ID: <20250719223729.3705764-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-GND-State: clean X-GND-Score: -70 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdeijeehgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdlfedtmdenucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhephfelvddvhefgtedtfeeuvedtieffhfekleejteejuefglefgffeiudehveevgfdvnecukfhppeeguddrieeirdeihedrudejieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeihedrudejiedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH v2] avcodec/h264chroma_template: Replace variable by constant in chroma mc 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 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: The chroma MC is implemented in 3 cases, the first takes care of the case where the 4 bilinear coefficients are non zero the next takes care of the case where 2 are non zero and the last considers the case where 3 coefficients are 0. The last case implies that the remaining coefficient is 64 This patch makes that explicit Signed-off-by: Michael Niedermayer --- libavcodec/h264chroma_template.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/libavcodec/h264chroma_template.c b/libavcodec/h264chroma_template.c index b9d24f5a0cd..b20811a71ae 100644 --- a/libavcodec/h264chroma_template.c +++ b/libavcodec/h264chroma_template.c @@ -54,7 +54,7 @@ static void FUNCC(OPNAME ## h264_chroma_mc1)(uint8_t *_dst /*align 8*/, const ui }\ } else {\ for(i=0; i