From patchwork Mon Sep 23 12:40:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramiro Polla X-Patchwork-Id: 51753 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:d154:0:b0:48e:c0f8:d0de with SMTP id bt20csp2473003vqb; Mon, 23 Sep 2024 06:59:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU9HTXlQgZz7RjGhRjRYQ9CLaL2lqmz4wy1YVLtG+w+de7DNIC+DcQiUzFZve2us0Yi51L85aPC2HRTWgm/iFgG@gmail.com X-Google-Smtp-Source: AGHT+IHv+CjsKERbeIVtDhrwuVUQcT/0JnNt5m6muo+3VOChrkBr8rfjf27dDvo1e7XpCXCuJ8Q2 X-Received: by 2002:a17:907:7f8b:b0:a8d:5d28:8e0d with SMTP id a640c23a62f3a-a90d5127024mr1384822166b.45.1727099963454; Mon, 23 Sep 2024 06:59:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727099963; cv=none; d=google.com; s=arc-20240605; b=O++FhZd5GHHNu88XKnbmYpgISh9xGm1R5ge/nbqYejrpBiR5N6SXqmFJVny1ASGfYo t8FiYn7a1H00v93mqXRDzZA2AKj09aRl93zs3BnWwvC3JwHLZtrvL/bLCG0ZAxVFNiAt UFek6SVjq0ddgz2rx2flbdIXCbQ/UXWqwAM2UpywUMbEQZRqj7xJ+vcEWTKFs3rgd4JD lXgSEPGuOvQ+IqQUtTLWRR23DAZTJ1KT8109Fq7ODJEpLc01BfPYtr/UBNdQDFYZifU1 506e0U/rPhocRo7Vz9jfPtPs4zPvfCkOD25zzswb3HVFcxIbGxO8lxuFUPQkVx3RjRXG dp9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:content-transfer-encoding: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=fg4zzly8s+D7SseE/i5jVKEyCtQFUGk22+dy+xYdKgQ=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=dNJ3QU71l2cuWurlc/X5pmEYKVIrNrGrwNhGanxZYx3/F0lok2xUTwbOvuvMyce6Nt D+I+26+gzYrE2jevnu8Z1f3OQtBbFgYtOJ+k/l8araYhS9dO3PeX4qjoUyxVCfxHryOi Rk8jxB6OmlscIvREa1+sjiPJqmj9/R5zx57R0RpgrxoeMk8zBVUnz6b4jiUuWDdu4Zy8 T+oW0TX9P4H9PuOTbyKFWMfch+W6eJEZ7h7O9+45IsLNaGJGO9B9Uan2yzdUrywa6ohq iVdm6F1WoD3PBeGXOO8JVPUPBAJXBA7Z2HizHMy3SOXbhDfUGRHAEahkUYowW8h3nB7U rc2w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=anfmC29T; 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; dara=fail header.i=@gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a906109a5f5si1334009266b.48.2024.09.23.06.59.22; Mon, 23 Sep 2024 06:59: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=@gmail.com header.s=20230601 header.b=anfmC29T; 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; dara=fail header.i=@gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B032668DB8F; Mon, 23 Sep 2024 15:40:35 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 315D268DAF1 for ; Mon, 23 Sep 2024 15:40:32 +0300 (EEST) Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-374d29ad8a7so2900950f8f.2 for ; Mon, 23 Sep 2024 05:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727095231; x=1727700031; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=iylDB4ZLShDjl1285xsTYRV5BuxgvECOoU7HS7s30HE=; b=anfmC29TEPNE1YbAtLfYHiwcYeTK6MnAVeZyQAeGIumAtttxUJpsN+XNs0rbkxaYHJ M/TLuCTHJCA9q7Mvepk3lYw4hOsKwfyPCtI2QQxPWbSwqkfKqBn4wIc4ocMYhLQfBETg CWXp34Lq5Ar3UD3tP+8qy+LYdsFsxYLODuI+2IRKIkfSJd+gau0D4joo0tYoAWFiomNF Rl+7uhOE/beB7w8a2K658VukDb9HPvm8m4Ceux4cJb/mpHEu13v8J5R47DdOlwiHoUXJ q9K/lLUcKCTtHZtBFf6xZqnKKs89gmKfqdx6AcyWJmPnfMAMV4is7Q9Ai+ev0OZalMKS BHSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727095231; x=1727700031; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iylDB4ZLShDjl1285xsTYRV5BuxgvECOoU7HS7s30HE=; b=nGfjDZeJyqD21HzVFxiHT1WQsuWYNNHXHWjnZSAmywr3lj8lI1efLe+3R20TGpIpYp D8+17v9c+SozUyQ8eCL7/PJ0eELoB6z/zUhlswAsFK4AJkg7f6ubw5Vnx6eNDclOQGDE 39xXex7mh52JdM0Ba6NMmhkCK5tcElrtcVU7onMlsPt6j/CU7eklJC5KKyDL6mulmk4a NoDgnhpAMDsku3ry7kzxEMohfUTOoxAqjOYp2e6UXSI4A3R7A8djgCWAmSurLNRfSRR1 lo6EvzqLFI1mu8iP4MrUDv4o3NGmhBleXODc/IL4IG9s3STtchZf1sFF9io2Oe0gsXpV 0RYg== X-Gm-Message-State: AOJu0Yz3jUpVgIIZW6XJhp8xQTjKf2wKlBL9MAoShXNq+bWU8duxj+oH G398CA/QpPZQw6wZqN23lnU7Pe5pYJ4otPLXNZFrrVAzafRG9QGTMuJgjw== X-Received: by 2002:a5d:6e10:0:b0:374:8f90:b78b with SMTP id ffacd0b85a97d-37a42353fc3mr6125994f8f.44.1727095230536; Mon, 23 Sep 2024 05:40:30 -0700 (PDT) Received: from localhost.localdomain (213.95-240-81.adsl-dyn.isp.belgacom.be. [81.240.95.213]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-378e71f0683sm24424345f8f.13.2024.09.23.05.40.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Sep 2024 05:40:29 -0700 (PDT) From: Ramiro Polla To: ffmpeg-devel@ffmpeg.org Date: Mon, 23 Sep 2024 14:40:12 +0200 Message-Id: <20240923124017.33659-10-ramiro.polla@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20240923124017.33659-1-ramiro.polla@gmail.com> References: <20240923124017.33659-1-ramiro.polla@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 09/14] checkasm/sw_range_convert: indent after previous couple of commits 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: Pbkib91IyEj3 --- tests/checkasm/sw_range_convert.c | 48 +++++++++++++++---------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/tests/checkasm/sw_range_convert.c b/tests/checkasm/sw_range_convert.c index e3e5096729..01c4549e53 100644 --- a/tests/checkasm/sw_range_convert.c +++ b/tests/checkasm/sw_range_convert.c @@ -83,19 +83,19 @@ static void check_lumConvertRange(int from) ctx->dstFormat = pix_fmt; ctx->dstBpc = bit_depth; ff_sws_init_scale(ctx); - for (int dstWi = 0; dstWi < FF_ARRAY_ELEMS(input_sizes); dstWi++) { - int width = input_sizes[dstWi]; - if (check_func(ctx->lumConvertRange, "%s%d_%d", func_str, bit_depth, width)) { - randomize_buffers(dst0, dst1, bit_depth, width); - call_ref(dst0, width); - call_new(dst1, width); - if (memcmp(dst0, dst1, width * sample_size)) - fail(); - if (width == LARGEST_INPUT_SIZE && (bit_depth == 8 || bit_depth == 16)) - bench_new(dst1, width); + for (int dstWi = 0; dstWi < FF_ARRAY_ELEMS(input_sizes); dstWi++) { + int width = input_sizes[dstWi]; + if (check_func(ctx->lumConvertRange, "%s%d_%d", func_str, bit_depth, width)) { + randomize_buffers(dst0, dst1, bit_depth, width); + call_ref(dst0, width); + call_new(dst1, width); + if (memcmp(dst0, dst1, width * sample_size)) + fail(); + if (width == LARGEST_INPUT_SIZE && (bit_depth == 8 || bit_depth == 16)) + bench_new(dst1, width); + } } } - } sws_freeContext(ctx); } @@ -131,21 +131,21 @@ static void check_chrConvertRange(int from) ctx->dstFormat = pix_fmt; ctx->dstBpc = bit_depth; ff_sws_init_scale(ctx); - for (int dstWi = 0; dstWi < FF_ARRAY_ELEMS(input_sizes); dstWi++) { - int width = input_sizes[dstWi]; - if (check_func(ctx->chrConvertRange, "%s%d_%d", func_str, bit_depth, width)) { - randomize_buffers(dstU0, dstU1, bit_depth, width); - randomize_buffers(dstV0, dstV1, bit_depth, width); - call_ref(dstU0, dstV0, width); - call_new(dstU1, dstV1, width); - if (memcmp(dstU0, dstU1, width * sample_size) || - memcmp(dstV0, dstV1, width * sample_size)) - fail(); - if (width == LARGEST_INPUT_SIZE && (bit_depth == 8 || bit_depth == 16)) - bench_new(dstU1, dstV1, width); + for (int dstWi = 0; dstWi < FF_ARRAY_ELEMS(input_sizes); dstWi++) { + int width = input_sizes[dstWi]; + if (check_func(ctx->chrConvertRange, "%s%d_%d", func_str, bit_depth, width)) { + randomize_buffers(dstU0, dstU1, bit_depth, width); + randomize_buffers(dstV0, dstV1, bit_depth, width); + call_ref(dstU0, dstV0, width); + call_new(dstU1, dstV1, width); + if (memcmp(dstU0, dstU1, width * sample_size) || + memcmp(dstV0, dstV1, width * sample_size)) + fail(); + if (width == LARGEST_INPUT_SIZE && (bit_depth == 8 || bit_depth == 16)) + bench_new(dstU1, dstV1, width); + } } } - } sws_freeContext(ctx); }