From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 2D52D49453 for ; Tue, 12 Mar 2024 13:12:58 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2BEB268D119; Tue, 12 Mar 2024 15:12:41 +0200 (EET) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B062068D011 for ; Tue, 12 Mar 2024 15:12:32 +0200 (EET) Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-512b3b04995so4406296e87.3 for ; Tue, 12 Mar 2024 06:12:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martin-st.20230601.gappssmtp.com; s=20230601; t=1710249152; x=1710853952; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eA3HmAjSZYDZm5s9LWXoQQ8Itl87c+lJ758/Z1DqPrE=; b=VFSK1fIPI/LUn8gp3lCzk4ng9yFkU3rdsslnL/iWnXJGjIWOCQH5UfLug1Xg/YplWX BGNcL0MdvKjZihfWhF8BtugkJU/NY5dq2H9cGkbaYH5I3Iqj7N8BhGQLrBLVce8lw4DI 1M/XIq08kFdeoDMYqIc5lyelrni2zDe9fZAKnnrurfOZAxsHeZX337kBM+JgraylyeW/ O7qrNTENiUScIWeg2jehJmr0AYWdWznplPI6jsN0oi3RLNUkxkY7hGxCy7FsVaLzoPSQ C69OiARUKJgXFDM4O/AGCFybxhsuyuUziZPLvHZaqEpu7iJWum+HYBvvOJwqs97q4W17 hu5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710249152; x=1710853952; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eA3HmAjSZYDZm5s9LWXoQQ8Itl87c+lJ758/Z1DqPrE=; b=fzPIPqa3mUNvVgoSC920OUEiFGZcRfHTprbrQ3VOZQuG0AQCy1s8gZ87mP9vQnB8lZ ihteugRezRkjCJbowMo2ZJidh5Y3tYnPLeaqnJqfDoiRqf/dEUfnAoNyGolYqr/AJWAA +IRyf4rJYB4cEh9UdYCf0UwQnATxtqo+X9GJccVMdMGb6OyobLxq24S+BDgsj7EQKJA7 siN48M3MlC+nbfeAMh4M7hR7lkaf0j0cVqVON5VKE06sU1QERZ1CojrDr8PqooNMLEhQ 8CyngkdinC2mTUgZ5i7R2Fu2BumITqJ53UzJDqq9JBrbEQI8SqDrAoSWwg58UikE5nFx npfA== X-Gm-Message-State: AOJu0YzsJmUAoDCJB7fJE33lN6cRfjA6TjQZ4Q/W6gQPpldMDrjJ3L/I T+MTO/maY8HFCBi3kWEwvQ9UF3pR4N9O0hVwQexH3NItaSS89d0dli5aJpn3ylZtgYas/YWSGtT zYKZc X-Google-Smtp-Source: AGHT+IEHXCBcTpvnLaLZJRxhjjQ984Xf1/0gy3RXtWYjLUudNChd7wEMQyDhvqQj131rSi7A+r7UQg== X-Received: by 2002:a05:651c:220a:b0:2d4:5295:41bf with SMTP id y10-20020a05651c220a00b002d4529541bfmr1370224ljq.44.1710249151897; Tue, 12 Mar 2024 06:12:31 -0700 (PDT) Received: from localhost (dsl-tkubng21-58c01c-243.dhcp.inet.fi. [88.192.28.243]) by smtp.gmail.com with ESMTPSA id r11-20020a2eb60b000000b002d433393df0sm1246071ljn.120.2024.03.12.06.12.31 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 12 Mar 2024 06:12:31 -0700 (PDT) From: =?UTF-8?q?Martin=20Storsj=C3=B6?= To: ffmpeg-devel@ffmpeg.org Date: Tue, 12 Mar 2024 15:12:28 +0200 Message-Id: <20240312131229.1551-3-martin@martin.st> X-Mailer: git-send-email 2.39.3 (Apple Git-146) In-Reply-To: <20240312131229.1551-1-martin@martin.st> References: <20240312131229.1551-1-martin@martin.st> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/4] checkasm: hevc_pel: Split a couple excessively long lines 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: Logan Lyu , "J . Dekker" 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: --- tests/checkasm/hevc_pel.c | 134 ++++++++++++++++++++++++++++---------- 1 file changed, 98 insertions(+), 36 deletions(-) diff --git a/tests/checkasm/hevc_pel.c b/tests/checkasm/hevc_pel.c index 065da87622..73a4619978 100644 --- a/tests/checkasm/hevc_pel.c +++ b/tests/checkasm/hevc_pel.c @@ -96,13 +96,16 @@ static void checkasm_check_hevc_qpel(void) case 3: type = "qpel_hv"; break; // 1 1 } - if (check_func(h.put_hevc_qpel[size][j][i], "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { + if (check_func(h.put_hevc_qpel[size][j][i], + "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { int16_t *dstw0 = (int16_t *) dst0, *dstw1 = (int16_t *) dst1; randomize_buffers(); call_ref(dstw0, src0, sizes[size] * SIZEOF_PIXEL, sizes[size], i, j, sizes[size]); call_new(dstw1, src1, sizes[size] * SIZEOF_PIXEL, sizes[size], i, j, sizes[size]); for (row = 0; row < size[sizes]; row++) { - if (memcmp(dstw0 + row * MAX_PB_SIZE, dstw1 + row * MAX_PB_SIZE, sizes[size] * sizeof(int16_t))) + if (memcmp(dstw0 + row * MAX_PB_SIZE, + dstw1 + row * MAX_PB_SIZE, + sizes[size] * sizeof(int16_t))) fail(); } bench_new(dstw1, src1, sizes[size] * SIZEOF_PIXEL, sizes[size], i, j, sizes[size]); @@ -140,13 +143,20 @@ static void checkasm_check_hevc_qpel_uni(void) case 3: type = "qpel_uni_hv"; break; // 1 1 } - if (check_func(h.put_hevc_qpel_uni[size][j][i], "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { + if (check_func(h.put_hevc_qpel_uni[size][j][i], + "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { randomize_buffers(); - call_ref(dst0, sizes[size] * SIZEOF_PIXEL, src0, sizes[size] * SIZEOF_PIXEL, sizes[size], i, j, sizes[size]); - call_new(dst1, sizes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, sizes[size], i, j, sizes[size]); + call_ref(dst0, sizes[size] * SIZEOF_PIXEL, + src0, sizes[size] * SIZEOF_PIXEL, + sizes[size], i, j, sizes[size]); + call_new(dst1, sizes[size] * SIZEOF_PIXEL, + src1, sizes[size] * SIZEOF_PIXEL, + sizes[size], i, j, sizes[size]); if (memcmp(dst0, dst1, sizes[size] * sizes[size] * SIZEOF_PIXEL)) fail(); - bench_new(dst1, sizes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, sizes[size], i, j, sizes[size]); + bench_new(dst1, sizes[size] * SIZEOF_PIXEL, + src1, sizes[size] * SIZEOF_PIXEL, + sizes[size], i, j, sizes[size]); } } } @@ -182,16 +192,23 @@ static void checkasm_check_hevc_qpel_uni_w(void) case 3: type = "qpel_uni_w_hv"; break; // 1 1 } - if (check_func(h.put_hevc_qpel_uni_w[size][j][i], "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { + if (check_func(h.put_hevc_qpel_uni_w[size][j][i], + "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { for (denom = denoms; *denom >= 0; denom++) { for (wx = weights; *wx >= 0; wx++) { for (ox = offsets; *ox >= 0; ox++) { randomize_buffers(); - call_ref(dst0, sizes[size] * SIZEOF_PIXEL, src0, sizes[size] * SIZEOF_PIXEL, sizes[size], *denom, *wx, *ox, i, j, sizes[size]); - call_new(dst1, sizes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, sizes[size], *denom, *wx, *ox, i, j, sizes[size]); + call_ref(dst0, sizes[size] * SIZEOF_PIXEL, + src0, sizes[size] * SIZEOF_PIXEL, + sizes[size], *denom, *wx, *ox, i, j, sizes[size]); + call_new(dst1, sizes[size] * SIZEOF_PIXEL, + src1, sizes[size] * SIZEOF_PIXEL, + sizes[size], *denom, *wx, *ox, i, j, sizes[size]); if (memcmp(dst0, dst1, sizes[size] * sizes[size] * SIZEOF_PIXEL)) fail(); - bench_new(dst1, sizes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, sizes[size], *denom, *wx, *ox, i, j, sizes[size]); + bench_new(dst1, sizes[size] * SIZEOF_PIXEL, + src1, sizes[size] * SIZEOF_PIXEL, + sizes[size], *denom, *wx, *ox, i, j, sizes[size]); } } } @@ -232,13 +249,20 @@ static void checkasm_check_hevc_qpel_bi(void) case 3: type = "qpel_bi_hv"; break; // 1 1 } - if (check_func(h.put_hevc_qpel_bi[size][j][i], "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { + if (check_func(h.put_hevc_qpel_bi[size][j][i], + "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { randomize_buffers_ref(); - call_ref(dst0, sizes[size] * SIZEOF_PIXEL, src0, sizes[size] * SIZEOF_PIXEL, ref0, sizes[size], i, j, sizes[size]); - call_new(dst1, sizes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, ref1, sizes[size], i, j, sizes[size]); + call_ref(dst0, sizes[size] * SIZEOF_PIXEL, + src0, sizes[size] * SIZEOF_PIXEL, + ref0, sizes[size], i, j, sizes[size]); + call_new(dst1, sizes[size] * SIZEOF_PIXEL, + src1, sizes[size] * SIZEOF_PIXEL, + ref1, sizes[size], i, j, sizes[size]); if (memcmp(dst0, dst1, sizes[size] * sizes[size] * SIZEOF_PIXEL)) fail(); - bench_new(dst1, sizes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, ref1, sizes[size], i, j, sizes[size]); + bench_new(dst1, sizes[size] * SIZEOF_PIXEL, + src1, sizes[size] * SIZEOF_PIXEL, + ref1, sizes[size], i, j, sizes[size]); } } } @@ -278,16 +302,23 @@ static void checkasm_check_hevc_qpel_bi_w(void) case 3: type = "qpel_bi_w_hv"; break; // 1 1 } - if (check_func(h.put_hevc_qpel_bi_w[size][j][i], "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { + if (check_func(h.put_hevc_qpel_bi_w[size][j][i], + "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { for (denom = denoms; *denom >= 0; denom++) { for (wx = weights; *wx >= 0; wx++) { for (ox = offsets; *ox >= 0; ox++) { randomize_buffers_ref(); - call_ref(dst0, sizes[size] * SIZEOF_PIXEL, src0, sizes[size] * SIZEOF_PIXEL, ref0, sizes[size], *denom, *wx, *wx, *ox, *ox, i, j, sizes[size]); - call_new(dst1, sizes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, ref1, sizes[size], *denom, *wx, *wx, *ox, *ox, i, j, sizes[size]); + call_ref(dst0, sizes[size] * SIZEOF_PIXEL, + src0, sizes[size] * SIZEOF_PIXEL, + ref0, sizes[size], *denom, *wx, *wx, *ox, *ox, i, j, sizes[size]); + call_new(dst1, sizes[size] * SIZEOF_PIXEL, + src1, sizes[size] * SIZEOF_PIXEL, + ref1, sizes[size], *denom, *wx, *wx, *ox, *ox, i, j, sizes[size]); if (memcmp(dst0, dst1, sizes[size] * sizes[size] * SIZEOF_PIXEL)) fail(); - bench_new(dst1, sizes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, ref1, sizes[size], *denom, *wx, *wx, *ox, *ox, i, j, sizes[size]); + bench_new(dst1, sizes[size] * SIZEOF_PIXEL, + src1, sizes[size] * SIZEOF_PIXEL, + ref1, sizes[size], *denom, *wx, *wx, *ox, *ox, i, j, sizes[size]); } } } @@ -328,13 +359,16 @@ static void checkasm_check_hevc_epel(void) case 3: type = "epel_hv"; break; // 1 1 } - if (check_func(h.put_hevc_epel[size][j][i], "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { + if (check_func(h.put_hevc_epel[size][j][i], + "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { int16_t *dstw0 = (int16_t *) dst0, *dstw1 = (int16_t *) dst1; randomize_buffers(); call_ref(dstw0, src0, sizes[size] * SIZEOF_PIXEL, sizes[size], i, j, sizes[size]); call_new(dstw1, src1, sizes[size] * SIZEOF_PIXEL, sizes[size], i, j, sizes[size]); for (row = 0; row < size[sizes]; row++) { - if (memcmp(dstw0 + row * MAX_PB_SIZE, dstw1 + row * MAX_PB_SIZE, sizes[size] * sizeof(int16_t))) + if (memcmp(dstw0 + row * MAX_PB_SIZE, + dstw1 + row * MAX_PB_SIZE, + sizes[size] * sizeof(int16_t))) fail(); } bench_new(dstw1, src1, sizes[size] * SIZEOF_PIXEL, sizes[size], i, j, sizes[size]); @@ -372,13 +406,20 @@ static void checkasm_check_hevc_epel_uni(void) case 3: type = "epel_uni_hv"; break; // 1 1 } - if (check_func(h.put_hevc_epel_uni[size][j][i], "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { + if (check_func(h.put_hevc_epel_uni[size][j][i], + "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { randomize_buffers(); - call_ref(dst0, sizes[size] * SIZEOF_PIXEL, src0, sizes[size] * SIZEOF_PIXEL, sizes[size], i, j, sizes[size]); - call_new(dst1, sizes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, sizes[size], i, j, sizes[size]); + call_ref(dst0, sizes[size] * SIZEOF_PIXEL, + src0, sizes[size] * SIZEOF_PIXEL, + sizes[size], i, j, sizes[size]); + call_new(dst1, sizes[size] * SIZEOF_PIXEL, + src1, sizes[size] * SIZEOF_PIXEL, + sizes[size], i, j, sizes[size]); if (memcmp(dst0, dst1, sizes[size] * sizes[size] * SIZEOF_PIXEL)) fail(); - bench_new(dst1, sizes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, sizes[size], i, j, sizes[size]); + bench_new(dst1, sizes[size] * SIZEOF_PIXEL, + src1, sizes[size] * SIZEOF_PIXEL, + sizes[size], i, j, sizes[size]); } } } @@ -414,16 +455,23 @@ static void checkasm_check_hevc_epel_uni_w(void) case 3: type = "epel_uni_w_hv"; break; // 1 1 } - if (check_func(h.put_hevc_epel_uni_w[size][j][i], "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { + if (check_func(h.put_hevc_epel_uni_w[size][j][i], + "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { for (denom = denoms; *denom >= 0; denom++) { for (wx = weights; *wx >= 0; wx++) { for (ox = offsets; *ox >= 0; ox++) { randomize_buffers(); - call_ref(dst0, sizes[size] * SIZEOF_PIXEL, src0, sizes[size] * SIZEOF_PIXEL, sizes[size], *denom, *wx, *ox, i, j, sizes[size]); - call_new(dst1, sizes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, sizes[size], *denom, *wx, *ox, i, j, sizes[size]); + call_ref(dst0, sizes[size] * SIZEOF_PIXEL, + src0, sizes[size] * SIZEOF_PIXEL, + sizes[size], *denom, *wx, *ox, i, j, sizes[size]); + call_new(dst1, sizes[size] * SIZEOF_PIXEL, + src1, sizes[size] * SIZEOF_PIXEL, + sizes[size], *denom, *wx, *ox, i, j, sizes[size]); if (memcmp(dst0, dst1, sizes[size] * sizes[size] * SIZEOF_PIXEL)) fail(); - bench_new(dst1, sizes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, sizes[size], *denom, *wx, *ox, i, j, sizes[size]); + bench_new(dst1, sizes[size] * SIZEOF_PIXEL, + src1, sizes[size] * SIZEOF_PIXEL, + sizes[size], *denom, *wx, *ox, i, j, sizes[size]); } } } @@ -464,13 +512,20 @@ static void checkasm_check_hevc_epel_bi(void) case 3: type = "epel_bi_hv"; break; // 1 1 } - if (check_func(h.put_hevc_epel_bi[size][j][i], "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { + if (check_func(h.put_hevc_epel_bi[size][j][i], + "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { randomize_buffers_ref(); - call_ref(dst0, sizes[size] * SIZEOF_PIXEL, src0, sizes[size] * SIZEOF_PIXEL, ref0, sizes[size], i, j, sizes[size]); - call_new(dst1, sizes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, ref1, sizes[size], i, j, sizes[size]); + call_ref(dst0, sizes[size] * SIZEOF_PIXEL, + src0, sizes[size] * SIZEOF_PIXEL, + ref0, sizes[size], i, j, sizes[size]); + call_new(dst1, sizes[size] * SIZEOF_PIXEL, + src1, sizes[size] * SIZEOF_PIXEL, + ref1, sizes[size], i, j, sizes[size]); if (memcmp(dst0, dst1, sizes[size] * sizes[size] * SIZEOF_PIXEL)) fail(); - bench_new(dst1, sizes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, ref1, sizes[size], i, j, sizes[size]); + bench_new(dst1, sizes[size] * SIZEOF_PIXEL, + src1, sizes[size] * SIZEOF_PIXEL, + ref1, sizes[size], i, j, sizes[size]); } } } @@ -510,16 +565,23 @@ static void checkasm_check_hevc_epel_bi_w(void) case 3: type = "epel_bi_w_hv"; break; // 1 1 } - if (check_func(h.put_hevc_epel_bi_w[size][j][i], "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { + if (check_func(h.put_hevc_epel_bi_w[size][j][i], + "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { for (denom = denoms; *denom >= 0; denom++) { for (wx = weights; *wx >= 0; wx++) { for (ox = offsets; *ox >= 0; ox++) { randomize_buffers_ref(); - call_ref(dst0, sizes[size] * SIZEOF_PIXEL, src0, sizes[size] * SIZEOF_PIXEL, ref0, sizes[size], *denom, *wx, *wx, *ox, *ox, i, j, sizes[size]); - call_new(dst1, sizes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, ref1, sizes[size], *denom, *wx, *wx, *ox, *ox, i, j, sizes[size]); + call_ref(dst0, sizes[size] * SIZEOF_PIXEL, + src0, sizes[size] * SIZEOF_PIXEL, + ref0, sizes[size], *denom, *wx, *wx, *ox, *ox, i, j, sizes[size]); + call_new(dst1, sizes[size] * SIZEOF_PIXEL, + src1, sizes[size] * SIZEOF_PIXEL, + ref1, sizes[size], *denom, *wx, *wx, *ox, *ox, i, j, sizes[size]); if (memcmp(dst0, dst1, sizes[size] * sizes[size] * SIZEOF_PIXEL)) fail(); - bench_new(dst1, sizes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, ref1, sizes[size], *denom, *wx, *wx, *ox, *ox, i, j, sizes[size]); + bench_new(dst1, sizes[size] * SIZEOF_PIXEL, + src1, sizes[size] * SIZEOF_PIXEL, + ref1, sizes[size], *denom, *wx, *wx, *ox, *ox, i, j, sizes[size]); } } } -- 2.39.3 (Apple Git-146) _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".