From patchwork Wed Jun 29 08:24:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hubert Mazur X-Patchwork-Id: 36521 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:8b27:b0:88:1bbf:7fd2 with SMTP id l39csp161162pzh; Wed, 29 Jun 2022 01:25:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u82UqMoeMTp+WRRhXvQYOQMv+IoQJuoiAHcZL2ajle2Ogh7pc1qot8WwgS1RZxIGjSa9xW X-Received: by 2002:a17:906:a0cf:b0:726:cbdd:466b with SMTP id bh15-20020a170906a0cf00b00726cbdd466bmr2042562ejb.410.1656491150871; Wed, 29 Jun 2022 01:25:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656491150; cv=none; d=google.com; s=arc-20160816; b=Yr6RgbteORy8deHen1duLWBq+SJSjtpMmo0cpzgG0zo2GSz5ZNEhBfuJPjBbPRwJ6K yaIHBwbd1CPFA2WJOCyDSYoh6bANnmU32NxnCRoYBHPwxn6BeEO6eiDIcG9oWr5vLDK4 kwX82Yv4fsoPl+Tgkmt99R8dcUT5xD+uUBZUXS2JfGKpeyzhy14636NXeg02UVHTLVKB NFxCmsPuBsxJuIojJKpiBf9Z+EJ3xZBdhflBhKa2NnjfuquQhy0P9+JzcgfRIX772mVz KNR+hrFzbTrmgyIb31RAAG0YhyRxte1ffReWrUa+gSYsya7WhR4KPZSccm5HFsIic/On 2h2Q== 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 :message-id:date:to:from:dkim-signature:delivered-to; bh=ebg5MTxHMedsBgRNX8DanijWPCe6rW/oNstn/TpuCbs=; b=iejZGgikfk0nl+s1nuUxZWQmCIrUyRUX3Ur4kUEiSKeFbctHqIvau6+Fah4r1lyQKM cx84xrUWSkmjgdyknrUAFUrGhluyGrIy6/Aba01b47mz0JC/pzVE5O12SFpPVUQGcP5V LGknSxboE66Dect3XTwz6OtckkjFShDUGn7JeeRPdm/aro8xC4xB05/JQn1+9mEifM5u cgsrWhNBu7vQBLjwBr6SgWIqYyjIJbrNx2Jgaac+U9pdgqgiAVwaldWibXUNh/zrY5Wm VaP8DzQZWHsO78PSKWXnwJH6QeOz8frZdlHEDsls4GfsxlIX6c35C8FJiN4aywino95W g+6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@semihalf.com header.s=google header.b=VW9+qd+8; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id gt17-20020a1709072d9100b0071d3b6e50fbsi3366434ejc.402.2022.06.29.01.25.50; Wed, 29 Jun 2022 01:25:50 -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=@semihalf.com header.s=google header.b=VW9+qd+8; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1847F68ACBA; Wed, 29 Jun 2022 11:25:41 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 348F368B7A1 for ; Wed, 29 Jun 2022 11:25:35 +0300 (EEST) Received: by mail-lf1-f46.google.com with SMTP id j21so26734517lfe.1 for ; Wed, 29 Jun 2022 01:25:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BAjxTH+7HECID9NtyZQJQ2aFfBMfGQzblYe+V0+0VCk=; b=VW9+qd+8booS91kZsuHqqlr1KQfpiD1sLrPATdaIH4Q81MxdUR8VB3bu8cELpQCl0G hcZpRYKx1mOvFgEibh27vwC/eTXoD09hycJwLIAjdltsAQYzFYxROrpB4+Bqqc1z4WjW YmJA1N9z1OtDhkKx7JcDtwWBWWzMq4B2VmjWr87xnPEEJ+vXaMFAi+xK6SyV7BmO3WmN 5SRARxRnjUfU8Fj7Fr8BNBts2nVMXtV9rd3wqLCKR7UPxfaFoGh0Ssj2JoJFN/LpQWpw CBcxekKWmI4QQFBBXll/9ytqqxcKbMzZbVpkos507szS7PQCXsczl6KOsKR5mF/JH75Y sYZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BAjxTH+7HECID9NtyZQJQ2aFfBMfGQzblYe+V0+0VCk=; b=1+yYvzQshB18g4QoilyDAdUaWsd3Zwau5hJez+ScpipxxKxLwvVs5wXJdDUhWuNMbe fAwMpjcz8lmL/2qn2dq+kpyi+l4t10Etai5yfYxpUYo4VBvjTDQm4DeogBK7g51ju1tp mYVTssTAi3vBlEu752WhTAMd4dLWZD44C/A8O+uDu5wHZjyofg3BAW/XvPSJvVgxM5Zf yAa8xIzHrE8H7+bm4qBJVU0Pynd1s0sM550LVeSNl398GsSRS3nmsAII55a/Fs+/hs/n Bn3ZwE9+jFRe+U3/zaJIgaIZ+lRiv6FDYft+JnigLnAE3cLE57uctTN+TxfFUzkcWNpw lLig== X-Gm-Message-State: AJIora8ruD4IFiu0TTBnu5l489rehcRoOF4Bj9rIfoVQD0oxO31Wr0fe CjT77Dwj002tpyPd2zVRvzFl9wfwAXCJcw== X-Received: by 2002:a05:6512:3b2c:b0:47f:6fc2:a9de with SMTP id f44-20020a0565123b2c00b0047f6fc2a9demr1369934lfv.352.1656491134159; Wed, 29 Jun 2022 01:25:34 -0700 (PDT) Received: from hum-HP-ProBook-440-G7.office.semihalf.net ([83.142.187.84]) by smtp.gmail.com with ESMTPSA id 8-20020ac25f08000000b00477cab33759sm2504451lfq.256.2022.06.29.01.25.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 01:25:33 -0700 (PDT) From: Hubert Mazur To: ffmpeg-devel@ffmpeg.org Date: Wed, 29 Jun 2022 10:24:39 +0200 Message-Id: <20220629082440.119841-2-hum@semihalf.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220629082440.119841-1-hum@semihalf.com> References: <20220629082440.119841-1-hum@semihalf.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/2] lavc/aarch64: Assign callback with function 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: gjb@semihalf.com, jswinney@amazon.com, Hubert Mazur , martin@martin.st, mw@semihalf.com, spop@amazon.com Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: o4edMQLkHseW Assign c->sad[0] callback with already existing neon implementation of pix_abs16 function. Signed-off-by: Hubert Mazur --- libavcodec/aarch64/me_cmp_init_aarch64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/aarch64/me_cmp_init_aarch64.c b/libavcodec/aarch64/me_cmp_init_aarch64.c index 9fb63e9973..bec9148a1a 100644 --- a/libavcodec/aarch64/me_cmp_init_aarch64.c +++ b/libavcodec/aarch64/me_cmp_init_aarch64.c @@ -35,5 +35,7 @@ av_cold void ff_me_cmp_init_aarch64(MECmpContext *c, AVCodecContext *avctx) if (have_neon(cpu_flags)) { c->pix_abs[0][0] = ff_pix_abs16_neon; c->pix_abs[0][3] = ff_pix_abs16_xy2_neon; + + c->sad[0] = ff_pix_abs16_neon; } }