From patchwork Mon Apr 15 17:35:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu Jianhua X-Patchwork-Id: 48078 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:670b:b0:1a9:af23:56c1 with SMTP id wh11csp1995283pzb; Mon, 15 Apr 2024 10:36:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXdz5EvnynwvsGutzqWdNPsM28HZiXq8YlFNc4/u12R7I5yHrM/YX0cEP7Bvnc/wAhCQeog4Hji3ZMWpKH2bQ+7jCPjM7D6/jw4wA== X-Google-Smtp-Source: AGHT+IGgdqKCyWVEWcmttVnn+LIu23RjFHJWEQW62NMBYqESfFr/YBOiHqVLLZ4/08ZBW/8z2alW X-Received: by 2002:a17:907:764c:b0:a52:57ad:63d0 with SMTP id kj12-20020a170907764c00b00a5257ad63d0mr3268917ejc.20.1713202583616; Mon, 15 Apr 2024 10:36:23 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id h21-20020a170906719500b00a523b7153e5si3393602ejk.815.2024.04.15.10.36.22; Mon, 15 Apr 2024 10:36:23 -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=@outlook.com header.s=selector1 header.b=PeIEYKjv; arc=fail (body hash mismatch); 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=QUARANTINE dis=NONE) header.from=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DD22168CE20; Mon, 15 Apr 2024 20:36:19 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01olkn2018.outbound.protection.outlook.com [40.92.99.18]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id AE05468CC49 for ; Mon, 15 Apr 2024 20:36:13 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FfAYHNDjMZ/5GixB5sfIL/0f34qKMUwHfF4LPUzHR7zLKblhGs9GVEZi9lXc31yBPgfFLUl6SHlgq7uwPmvaIXYI/WWid9BS4Nc6uzkGHW6G4rTYW3WHP8znRTA1T2xQsXsMczcjuP7DaG9YLtkC9OTuKUSvWCeA+rYBZTFQz9xs8BFPP+fZraAxVo9/SXoRTU4yfwDAQ26kg561QnrIG1Rnk3YxwiQrc68B+q4sgTfLwEmkncueZGeKhRA+AYG46HckOxfk4EhqOT3Y9PEleTJ0uLisio3HWTJBXGqfpTjIiW3qSHsRvAZWpWIk5AY6mSb1httWhU9MpHfOac/hBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hQ0IBx8wc4+fbJuuy5/WfFdDjArv7d7hKFDORjcCjVk=; b=DVabPrKRctTTSCEs8js5Ib8NZUv/C7MsRdIweamo8A5n8/HlrTb/maG0AwO9yMa6JkAhVakKT9LWaq+YLMJesRMVKSGZ0MR6Khg3vAkeLaIZNa/nrJ/roapCyUjZRjGoHE8gHKntyh5gQSlk4rrlb3Vei6mwxId3qHa0/3B6tUDcH2w8mXKPUQ5qme0jdQqVP4T4z6dXIh7fVmwm/SiqbOEbN1Hxnm8FBguwIOU3XkqyMsGH6zUggM6viSpiT+bTZR+YKNJ2SE7DPUDNhZl5D4FHYsiyieie/DqdgGbWrA2QOZjXPZcE+/MYsFsQE1arbbF66Hk1qfYNV4sf+DQZsg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hQ0IBx8wc4+fbJuuy5/WfFdDjArv7d7hKFDORjcCjVk=; b=PeIEYKjvEyELuTXdFxirgPD9WR/XMhHWXIQlLLWqJEeJFmsPdWiC/98TgC9K1HiH8yGMMkxrue2E2C4wLRugMNSg4gq9ms2nZTko1E6o1X9W8gWxYGHbFa77oI4IMranhtG3S9VOmPEgrDpnkMZsadmc+Ik5ZauZKqiliSmv4NlXYFaAvXiZ4uLG/jEL/XgTxAnb2U+RzpXlDqqVRtSF6d0n1td5NVLUcVaAHPugso9Bx/fSDinMnErAin6MtiPysvGOVwxiG94l/IoxVeiR5pUpN/uAbQLszqsuGCExdcnDuv5OCpk0JhyMfHUCyq4AyL0ZfwlnRiRlFMkenBapmg== Received: from OSZP286MB2173.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:186::5) by TY3P286MB3030.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:319::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Mon, 15 Apr 2024 17:36:10 +0000 Received: from OSZP286MB2173.JPNP286.PROD.OUTLOOK.COM ([fe80::c2ed:24ae:fd4c:fee7]) by OSZP286MB2173.JPNP286.PROD.OUTLOOK.COM ([fe80::c2ed:24ae:fd4c:fee7%5]) with mapi id 15.20.7452.049; Mon, 15 Apr 2024 17:36:10 +0000 From: toqsxw@outlook.com To: ffmpeg-devel@ffmpeg.org Date: Tue, 16 Apr 2024 01:35:48 +0800 Message-ID: X-Mailer: git-send-email 2.44.0.windows.1 X-TMN: [y4HFQ0r5rK1zVnSIKCtSjAl/SAzGCmGA] X-ClientProxiedBy: PU1PR06CA0014.apcprd06.prod.outlook.com (2603:1096:803:2a::26) To OSZP286MB2173.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:186::5) X-Microsoft-Original-Message-ID: <20240415173550.657-1-toqsxw@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OSZP286MB2173:EE_|TY3P286MB3030:EE_ X-MS-Office365-Filtering-Correlation-Id: 76829d78-5b05-4c9f-d209-08dc5d7289ac X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +0xS7o1pZK1O0NXQLhIQnd7Ol9ME9Hp+WAbpOiM9QQB3E85vVWbTlfT9bAfX2DFMCyt1WsflUV/e73gWIkDLyalW9QB0ZUjZgm50Icsvf8x1Tjq5QcB5HYqG+GaB3HmSLObRs9fMptC1LFN/YTkSumQA8v/1RMR/mhfk+ss2qkuDeXWEOPEoXIzvHu7zRq6sFbPQRIsRhApviaxymgJoMBpINNREHN7DY0WXlzXqD7uh2I02PFFy0EkNWxy0xj50Xf02LrjIL2udE0E3GD/hEl4Yp9x6wOkD6/OfN5SioUTs3ZcWdmTpXdHR6juio/tCbD21vA0Un7ZlKeQ2ElS2GN4yA5nAWRLhJDp9L8AQ076GPUKnwcUhHWbqZT/ZICOXsP8sAdey+hkB7AzcvSC6JE5260jJ1/xNMHakPa4EfsIjRLTalpC3qgKgk8smCijgoPY/AM5d/O4L3J+b/+bSAjCUzqYicWUTkpK7Y/gsl1Iwv3ak733jYCeOLu/uFxjtRvEmXkdLjPSk/dSvfPKeYKb4c02+1/Lp07ZvPz974MuKGt9rxGke6C+hQnAkGu8mexLO/l08MSE4PIqgajxcQUg9xP7b6Zl9o9yuAMuv9XWJEkb76HIweGNpzKH9YW9u X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X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ApnHOZfm8fR+gNGngGoYcximuo/DElOgpsXwAdp7O161ogDlfpzW+JDVwwB41DB54ulKSUqJPUR3NvSYL2tgeCaOSb1sq5Ik4gTJAOB3hW9XS4fIFIGZiw7Y/W4U5kne0EiEqm1BFq28DLG54LpZV4NUBHzE4Ja7GkiqGvirLu07KITEdjxJ/nPLN7WwTnyBj03EYq7uZJeGzB/a+HhO60= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 76829d78-5b05-4c9f-d209-08dc5d7289ac X-MS-Exchange-CrossTenant-AuthSource: OSZP286MB2173.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2024 17:36:09.9401 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3P286MB3030 Subject: [FFmpeg-devel] [PATCH v2 1/3] avcodec/x86/vvc/vvcdsp_init: add put prototypes 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: Wu Jianhua Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: AI/AF0B4w7Ux From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/x86/vvc/vvcdsp_init.c | 35 +++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/libavcodec/x86/vvc/vvcdsp_init.c b/libavcodec/x86/vvc/vvcdsp_init.c index 23a3172c45..d9203f4d5f 100644 --- a/libavcodec/x86/vvc/vvcdsp_init.c +++ b/libavcodec/x86/vvc/vvcdsp_init.c @@ -30,9 +30,42 @@ #include "libavcodec/vvc/dsp.h" #include "libavcodec/x86/h26x/h2656dsp.h" +#define PUT_PROTOTYPE(name, depth, opt) \ +void ff_vvc_put_ ## name ## _ ## depth ## _##opt(int16_t *dst, const uint8_t *src, ptrdiff_t srcstride, int height, const int8_t *hf, const int8_t *vf, int width); + +#define PUT_PROTOTYPES(name, bitd, opt) \ + PUT_PROTOTYPE(name##2, bitd, opt) \ + PUT_PROTOTYPE(name##4, bitd, opt) \ + PUT_PROTOTYPE(name##8, bitd, opt) \ + PUT_PROTOTYPE(name##12, bitd, opt) \ + PUT_PROTOTYPE(name##16, bitd, opt) \ + PUT_PROTOTYPE(name##24, bitd, opt) \ + PUT_PROTOTYPE(name##32, bitd, opt) \ + PUT_PROTOTYPE(name##48, bitd, opt) \ + PUT_PROTOTYPE(name##64, bitd, opt) \ + PUT_PROTOTYPE(name##128, bitd, opt) + +#define PUT_BPC_PROTOTYPES(name, opt) \ + PUT_PROTOTYPES(name, 8, opt) \ + PUT_PROTOTYPES(name, 10, opt) \ + PUT_PROTOTYPES(name, 12, opt) + +#define PUT_TAP_PROTOTYPES(n, opt) \ + PUT_BPC_PROTOTYPES(n##tap_h, opt) \ + PUT_BPC_PROTOTYPES(n##tap_v, opt) \ + PUT_BPC_PROTOTYPES(n##tap_hv, opt) + +PUT_BPC_PROTOTYPES(pixels, sse4) +PUT_BPC_PROTOTYPES(pixels, avx2) + +PUT_TAP_PROTOTYPES(4, sse4) +PUT_TAP_PROTOTYPES(8, sse4) +PUT_TAP_PROTOTYPES(4, avx2) +PUT_TAP_PROTOTYPES(8, avx2) + #if ARCH_X86_64 #define FW_PUT(name, depth, opt) \ -static void ff_vvc_put_ ## name ## _ ## depth ## _##opt(int16_t *dst, const uint8_t *src, ptrdiff_t srcstride, \ +void ff_vvc_put_ ## name ## _ ## depth ## _##opt(int16_t *dst, const uint8_t *src, ptrdiff_t srcstride, \ int height, const int8_t *hf, const int8_t *vf, int width) \ { \ ff_h2656_put_## name ## _ ## depth ## _##opt(dst, 2 * MAX_PB_SIZE, src, srcstride, height, hf, vf, width); \