From patchwork Mon Jan 1 14:12:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nuo Mi X-Patchwork-Id: 45439 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6623:b0:194:e134:edd4 with SMTP id n35csp6228222pzh; Mon, 1 Jan 2024 06:15:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHzvvAjkflnBDbmEfXlbR5ibReev50mgt4Pp6lHiVpnzG806zrM/W2CmYZD+61yRwdPW2Ei X-Received: by 2002:a17:906:6948:b0:a23:7261:febf with SMTP id c8-20020a170906694800b00a237261febfmr5173077ejs.151.1704118532204; Mon, 01 Jan 2024 06:15:32 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id az8-20020a170907904800b00a26dc9070e9si7409204ejc.362.2024.01.01.06.15.31; Mon, 01 Jan 2024 06:15:32 -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=@outlook.com header.s=selector1 header.b=LarKDePZ; 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=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8DD4268CEFA; Mon, 1 Jan 2024 16:13:47 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01olkn2103.outbound.protection.outlook.com [40.92.107.103]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7013768CE33 for ; Mon, 1 Jan 2024 16:13:43 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gWlF360TDGZoWlUl5bpXdaWILNPvBMSPh4uPABohflA7m1022cHkC2LgCPXNHDyW+Q0pRQWzKilvk44buK6WFaiy3qfLtuaUYYtFZWoX3cm2F4+eiBrKV0Jy4wBIRjW2wNn53twlE+v9OhHrh4fe7Yap9A+nI0uiscH95ytMXJQQD9LkSm5BSERVDrmadErN3jXMeYpZpjidiaT66AiZAx3ZGGw4bW6puwsjo2kvt3B1VgWQiPGyi9bU1cONfgMGDBBQfTVHbyHLEZNTl4au5g2JZuTmoYb18oKupnOvbMrXAUFv5pOTZW575isQjffLcKc9SFzL8PxYvxEfqQav+Q== 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=rR3f4lNuqLPnFttFkx2UeLKUlgg3kuXfjpu18rPVFHk=; b=QgqpXCzWCkMrHQ0evAgWKAMJwY1yu9fICVdVGncMGN7668UB8qyGYElqXbpqbL8R1KHbfcYfJLo8PyvX9xmE5c/x/klu5I6zU0iAi4uFis9MWgPWQNwMGCzGZtRVQjiR938RkmdSi+IZu/UPq1/FEkwma4fcimKgzGyvzCNFHc3qKddJyiJtZYOPm2DQDDhfDtFgRpv0OrQnBtSsJ1vp0jGLTYs5eJBFo17zJdUr+MNrrfpjJZSRO1eaVDGuoEisIBjqRBcgnVklkpk9Frdl55vD5SwtLsnuw2p9aSg/KL2KFYIzjsJLGW2O8T8NzKpDaI9Ac942GLuSogP5IDn2vQ== 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=rR3f4lNuqLPnFttFkx2UeLKUlgg3kuXfjpu18rPVFHk=; b=LarKDePZIG3wdGLij5CctVGpuW2Gn9cZKNgkhvWOVu/R42LAEl73/mondkzPv0vL9JsZRcFIStPaBqnK2Ae5Cn2WByWprpo0GbngJDLqQFlH5yOfLLHsDFp5hIGsDJO9u+cy1LK59ME+cJE9X5LR8YQyni+7zgNDSpc+UHs2sDvGeZpgq+yL7Z3kNtOhbHn86H+yBF9yLClsWEEPkbRdPHY2KC36dWgwdeH98Crx0M9iNoQs03Dsyz4n9U/j5dBt5v5F1lbqx6dluivNMLKlYS4AMgeu2BNABdOcYTz1X8dpM0vYr9A9nIGBXjmgPTuVV/+XDA+T3HDXUIlnQRt+TQ== Received: from TYSPR06MB6433.apcprd06.prod.outlook.com (2603:1096:400:47a::6) by TYZPR06MB3965.apcprd06.prod.outlook.com (2603:1096:400:23::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.25; Mon, 1 Jan 2024 14:13:30 +0000 Received: from TYSPR06MB6433.apcprd06.prod.outlook.com ([fe80::e139:fd7a:1b66:a3f7]) by TYSPR06MB6433.apcprd06.prod.outlook.com ([fe80::e139:fd7a:1b66:a3f7%6]) with mapi id 15.20.7135.023; Mon, 1 Jan 2024 14:13:30 +0000 From: Nuo Mi To: ffmpeg-devel@ffmpeg.org Date: Mon, 1 Jan 2024 22:12:36 +0800 Message-ID: X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240101141239.6623-1-nuomi2021@gmail.com> References: <20240101141239.6623-1-nuomi2021@gmail.com> X-TMN: [rEHKZfc+Wat87JTFjSP9ydS5oKA6DK9d] X-ClientProxiedBy: SI1PR02CA0012.apcprd02.prod.outlook.com (2603:1096:4:1f7::8) To TYSPR06MB6433.apcprd06.prod.outlook.com (2603:1096:400:47a::6) X-Microsoft-Original-Message-ID: <20240101141239.6623-11-nuomi2021@gmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 2 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYSPR06MB6433:EE_|TYZPR06MB3965:EE_ X-MS-Office365-Filtering-Correlation-Id: a5c071e1-c3f1-490e-1b7f-08dc0ad3d48f X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: x7YjUqgRan8i1pPnv6i+ep/DkbHt1634gZQACNnIIgk7Rznd47/+m4OT8FMzaGIwhv3+2kYC7IWsI2ruDpxnAhs54dHbSuH8ngHEWW1jcf5+XDYZIxDPwKIhXlIbIDuHL+ZsGC9pO57yizBkOctkU8IowXmtIfaMgBZS9gTJpEvGIKtJM72eOpp2jM+9igehpD6s6ElUrbiH8BQCah4zUNJV3Mx5Y15ZuEAt8nAnwNhcb1AI/8mvOG/uUFtLI/6D89nonfK5rIJTZl2iG6DDlzNhx9ujrV2RCMo14w02iJPH2dMDtnHB/I6/x6AiEDqh6TXOIMnZy4pnU2Z2+x6nj7jNLSnTux8FraHFKCA4iuEhPcXKC8tr07zRU6g0wXrN+7ve5XmYsdJEiaPhfMfDyA83xiPJsT1H8WIGSzLW16gwKnFJZP3vJ2yzOeKC0qWdM2Gpya3lEJb7GClT0XbQ8lhjmiN8K9pxMhk6EWFaxQlWhXHH+cAjPAg5hFk1yAFYCsPJkN6rcImygRWC820dGXT0uSs8h8qKxCIa5BCdx6Dd5640O7vlIaXTdqom4EF+KsBX6TTJwgMTQdaSPi2iWYNjcHjEp8+vFYpmtEWyd9TmK9TpnavjS95hSjx1lDDs X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: XC8A/3CS/kGH6bzy2HOZMG3vQBTCARouaD0m5zFS2DA0JUpZdlz6OtUu0T2WqoWpMW+MyryUvV4QycvdQyWtLVsLtyrOoVceM2TeS809teaInfRdMex3dkXtyNaIRbeAH81c9uXQWluGCp/rMp1w/R3yrH6/ocSfF8F7cS2HddF6goiF5WXGRFh2Huntfc+ewkWzlERaAAb5vQ/PbQKIv/eCtcghJJ5q9Oq4UPXNJdOxdv7jqpNmiAVuaTICANp2QMfcpg+AR/XxA6scySvRf60jBXiQDJfBie0+iAE9m8xYqY3LJwPMmxo8Ail/Xun+sRTWCPEs3Wl5sPxnQfc17ZjMVdMGIWIbO6OWTYNfFN2r0FMft48EBshik3xETBZ/sn9qiAlcC6MPg3lFBJYdUI486uM3Hd+W9w9LrIrKufgOaM0/myDLcTxrEmbuF7qxBe6uhd1E1OPv8P7XCkSnEj1Ul8oS8oe7uXFALfbsBtbI9lh3Ub60SmYgg2EyLyrV/rVRQ+zFjjIT5LG1u6mX/DK0JzAXl/6lsgpujMnFuWgkgeKzKVBu5IiGUrv0hLxVjJzIlgZrrx8Av2/AGYbxSTWxTdEJ/E85ClRmdghVg/lgapm/x/l7qL1zSaTNTwk4YFIgTy6QHM8TkEXXeHPB43FZQcx+ZwRz7a62/gkEi7zaSui6zVQO3qUSJEvQtG990B5qUDg4QqAlKF0ZDOzv85bhiiRnNglftkTSNyJ3jNmmNWCcCwQs2gd+J9FCNjqoC1TMmRkTgy8novKeGiu82nStZ7Qf8RWmXI6+sE1vJrzBUjMP82Mkn0KBC4AGAkCTPxucOKqGCzg9B9/PRr9EvH0GZEA4mSTsb4ladV+i5prbkK3Ox6JtUr3cs6jttpyQUpTepIPP/+P1okf3XFG/CsRgnFyyq22TiXUphjaLw3Z9OtUacq9cfyfvkKomZod1EMCN+SIO9sWZvz30NZnEIFcDPCnt0FVVps82Ud9R18nXeKnH/uc3V9eDhcton67K5PkgA5GP9EMcaPLzmcR3EDbAaI47c75zy3WSn+/kYb5arV4vqNq9FByYkXHr/eYAAw6FGiaNZYE4lXSluMkWaltlNsbN4ALYP3y/3nM21MDUS+65MZduYKBwlrBjQji6KuxUbx49/3xmvcLNsW1mLufhTOncaAPm3dCX9BR7j+X6LqIEjpwEjnua0Pn3x8A/u8ZhDU1EiWEmVgOKCINS95YeRLm6FOmRyhIvPGZdDYjIxacgcUvgaXJWV0Bft7YJ X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a5c071e1-c3f1-490e-1b7f-08dc0ad3d48f X-MS-Exchange-CrossTenant-AuthSource: TYSPR06MB6433.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jan 2024 14:13:30.2423 (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: TYZPR06MB3965 Subject: [FFmpeg-devel] [PATCH v9 10/13] vvcdec: add dsp init and inv transform 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: Frank Plowman , Nuo Mi , Xu Mu , Shaun Loo , Wu Jianhua Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: T6LRvxbE3vbO Co-authored-by: Xu Mu Co-authored-by: Frank Plowman Co-authored-by: Shaun Loo Co-authored-by: Wu Jianhua --- libavcodec/vvc/Makefile | 3 +- libavcodec/vvc/vvcdsp.c | 141 +++++++++++++++++++++++++++++++ libavcodec/vvc/vvcdsp_template.c | 120 ++++++++++++++++++++++++++ 3 files changed, 263 insertions(+), 1 deletion(-) create mode 100644 libavcodec/vvc/vvcdsp.c create mode 100644 libavcodec/vvc/vvcdsp_template.c diff --git a/libavcodec/vvc/Makefile b/libavcodec/vvc/Makefile index 57e2a2af75..10ba5f35be 100644 --- a/libavcodec/vvc/Makefile +++ b/libavcodec/vvc/Makefile @@ -1,7 +1,8 @@ clean:: $(RM) $(CLEANSUFFIXES:%=libavcodec/vvc/%) -OBJS-$(CONFIG_VVC_DECODER) += vvc/vvc_cabac.o \ +OBJS-$(CONFIG_VVC_DECODER) += vvc/vvcdsp.o \ + vvc/vvc_cabac.o \ vvc/vvc_ctu.o \ vvc/vvc_data.o \ vvc/vvc_filter.o \ diff --git a/libavcodec/vvc/vvcdsp.c b/libavcodec/vvc/vvcdsp.c new file mode 100644 index 0000000000..c82ea7be30 --- /dev/null +++ b/libavcodec/vvc/vvcdsp.c @@ -0,0 +1,141 @@ +/* + * VVC DSP + * + * Copyright (C) 2021 Nuo Mi + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "vvcdsp.h" +#include "vvc_ctu.h" +#include "vvc_itx_1d.h" + +#define VVC_SIGN(v) (v < 0 ? -1 : !!v) + +static void av_always_inline pad_int16(int16_t *_dst, const ptrdiff_t dst_stride, const int width, const int height) +{ + const int padded_width = width + 2; + int16_t *dst; + for (int y = 0; y < height; y++) { + dst = _dst + y * dst_stride; + for (int x = 0; x < width; x++) { + dst[-1] = dst[0]; + dst[width] = dst[width - 1]; + } + } + + _dst--; + //top + memcpy(_dst - dst_stride, _dst, padded_width * sizeof(int16_t)); + //bottom + _dst += dst_stride * height; + memcpy(_dst, _dst - dst_stride, padded_width * sizeof(int16_t)); +} + +static int vvc_sad(const int16_t *src0, const int16_t *src1, int dx, int dy, + const int block_w, const int block_h) +{ + int sad = 0; + dx -= 2; + dy -= 2; + src0 += (2 + dy) * MAX_PB_SIZE + 2 + dx; + src1 += (2 - dy) * MAX_PB_SIZE + 2 - dx; + for (int y = 0; y < block_h; y += 2) { + for (int x = 0; x < block_w; x++) { + sad += FFABS(src0[x] - src1[x]); + } + src0 += 2 * MAX_PB_SIZE; + src1 += 2 * MAX_PB_SIZE; + } + return sad; +} + +#define itx_fn(type, s) \ +static void itx_##type##_##s(int *coeffs, ptrdiff_t step, size_t nz) \ +{ \ + ff_vvc_inv_##type##_##s(coeffs, step, nz); \ +} + +#define itx_fn_common(type) \ + itx_fn(type, 4); \ + itx_fn(type, 8); \ + itx_fn(type, 16); \ + itx_fn(type, 32); \ + +itx_fn_common(dct2); +itx_fn_common(dst7); +itx_fn_common(dct8); +itx_fn(dct2, 2); +itx_fn(dct2, 64); + +typedef struct IntraEdgeParams { + uint8_t* top; + uint8_t* left; + int filter_flag; + + uint16_t left_array[3 * MAX_TB_SIZE + 3]; + uint16_t filtered_left_array[3 * MAX_TB_SIZE + 3]; + uint16_t top_array[3 * MAX_TB_SIZE + 3]; + uint16_t filtered_top_array[3 * MAX_TB_SIZE + 3]; +} IntraEdgeParams; + +#define PROF_BORDER_EXT 1 +#define PROF_BLOCK_SIZE (AFFINE_MIN_BLOCK_SIZE + PROF_BORDER_EXT * 2) +#define BDOF_BORDER_EXT 1 + +#define BDOF_PADDED_SIZE (16 + BDOF_BORDER_EXT * 2) +#define BDOF_BLOCK_SIZE 4 +#define BDOF_GRADIENT_SIZE (BDOF_BLOCK_SIZE + BDOF_BORDER_EXT * 2) + +#define BIT_DEPTH 8 +#include "vvcdsp_template.c" +#undef BIT_DEPTH + +#define BIT_DEPTH 10 +#include "vvcdsp_template.c" +#undef BIT_DEPTH + +#define BIT_DEPTH 12 +#include "vvcdsp_template.c" +#undef BIT_DEPTH + +void ff_vvc_dsp_init(VVCDSPContext *vvcdsp, int bit_depth) +{ +#undef FUNC +#define FUNC(a, depth) a ## _ ## depth + +#define VVC_DSP(depth) \ + FUNC(ff_vvc_inter_dsp_init, depth)(&vvcdsp->inter); \ + FUNC(ff_vvc_intra_dsp_init, depth)(&vvcdsp->intra); \ + FUNC(ff_vvc_itx_dsp_init, depth)(&vvcdsp->itx); \ + FUNC(ff_vvc_lmcs_dsp_init, depth)(&vvcdsp->lmcs); \ + FUNC(ff_vvc_lf_dsp_init, depth)(&vvcdsp->lf); \ + FUNC(ff_vvc_sao_dsp_init, depth)(&vvcdsp->sao); \ + FUNC(ff_vvc_alf_dsp_init, depth)(&vvcdsp->alf); \ + + switch (bit_depth) { + case 12: + VVC_DSP(12); + break; + case 10: + VVC_DSP(10); + break; + default: + VVC_DSP(8); + break; + } +} diff --git a/libavcodec/vvc/vvcdsp_template.c b/libavcodec/vvc/vvcdsp_template.c new file mode 100644 index 0000000000..f92c266478 --- /dev/null +++ b/libavcodec/vvc/vvcdsp_template.c @@ -0,0 +1,120 @@ +/* + * VVC transform and residual DSP + * + * Copyright (C) 2021 Nuo Mi + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +#include "libavutil/frame.h" +#include "libavcodec/bit_depth_template.c" + +#include "vvcdec.h" +#include "vvc_data.h" + +#include "vvc_inter_template.c" +#include "vvc_intra_template.c" +#include "vvc_filter_template.c" + +static void FUNC(add_residual)(uint8_t *_dst, const int *res, + const int w, const int h, const ptrdiff_t _stride) +{ + pixel *dst = (pixel *)_dst; + + const int stride = _stride / sizeof(pixel); + + for (int y = 0; y < h; y++) { + for (int x = 0; x < w; x++) { + dst[x] = av_clip_pixel(dst[x] + *res); + res++; + } + dst += stride; + } +} + +static void FUNC(add_residual_joint)(uint8_t *_dst, const int *res, + const int w, const int h, const ptrdiff_t _stride, const int c_sign, const int shift) +{ + pixel *dst = (pixel *)_dst; + + const int stride = _stride / sizeof(pixel); + + for (int y = 0; y < h; y++) { + for (int x = 0; x < w; x++) { + const int r = ((*res) * c_sign) >> shift; + dst[x] = av_clip_pixel(dst[x] + r); + res++; + } + dst += stride; + } +} + +static void FUNC(pred_residual_joint)(int *buf, const int w, const int h, + const int c_sign, const int shift) +{ + for (int y = 0; y < h; y++) { + for (int x = 0; x < w; x++) { + *buf = ((*buf) * c_sign) >> shift; + buf++; + } + } +} + +static void FUNC(transform_bdpcm)(int *coeffs, const int width, const int height, + const int vertical, const int log2_transform_range) +{ + int x, y; + + if (vertical) { + coeffs += width; + for (y = 0; y < height - 1; y++) { + for (x = 0; x < width; x++) + coeffs[x] = av_clip_intp2(coeffs[x] + coeffs[x - width], log2_transform_range); + coeffs += width; + } + } else { + for (y = 0; y < height; y++) { + for (x = 1; x < width; x++) + coeffs[x] = av_clip_intp2(coeffs[x] + coeffs[x - 1], log2_transform_range); + coeffs += width; + } + } +} + +static void FUNC(ff_vvc_itx_dsp_init)(VVCItxDSPContext *const itx) +{ +#define VVC_ITX(TYPE, type, s) \ + itx->itx[TYPE][TX_SIZE_##s] = itx_##type##_##s; \ + +#define VVC_ITX_COMMON(TYPE, type) \ + VVC_ITX(TYPE, type, 4); \ + VVC_ITX(TYPE, type, 8); \ + VVC_ITX(TYPE, type, 16); \ + VVC_ITX(TYPE, type, 32); + + itx->add_residual = FUNC(add_residual); + itx->add_residual_joint = FUNC(add_residual_joint); + itx->pred_residual_joint = FUNC(pred_residual_joint); + itx->transform_bdpcm = FUNC(transform_bdpcm); + VVC_ITX(DCT2, dct2, 2) + VVC_ITX(DCT2, dct2, 64) + VVC_ITX_COMMON(DCT2, dct2) + VVC_ITX_COMMON(DCT8, dct8) + VVC_ITX_COMMON(DST7, dst7) + +#undef VVC_ITX +#undef VVC_ITX_COMMON +}