From patchwork Mon Sep 23 12:40:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramiro Polla X-Patchwork-Id: 51748 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:d154:0:b0:48e:c0f8:d0de with SMTP id bt20csp2433054vqb; Mon, 23 Sep 2024 05:59:21 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWT5Wl7++S+MWWOsqIFnvL+fGnR8l6hBjRKcYkiPBkecbTMz0zXOQz9T1cU3sRUMX/PGwlT1WEwx/wgLQDa6HFO@gmail.com X-Google-Smtp-Source: AGHT+IG2U4pZvmoXQ4yxIzi7kxdwpY6jIxoHcdyTbDWdlNgJ4cRiBwdusUqekc5znKZvwZ2XFy6A X-Received: by 2002:a05:6402:5252:b0:5c2:4cbe:abfc with SMTP id 4fb4d7f45d1cf-5c464db0643mr11040853a12.2.1727096361196; Mon, 23 Sep 2024 05:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727096361; cv=none; d=google.com; s=arc-20240605; b=duT01n5t4ejAkIk3nt0Sj2tdD0WLVXl1aaOkKdyVrR4bctP2uoo6RoojSb97WxJR/4 +Bp1KcOYqsgw5tzViTIhxV1LC1LBPqdmYiqpeAkpH+5JfmElWdpd5iWTA33mtnQ/aZdX Z4AbDHPkvWNU/KBHXtVwIetO3WGfXVuK1+XqAIXuNHO06ZXB8L+liLa3OKP4qn9nN6R5 GhI+MGw658cqrq6NM5o7LU3vxZaXxbnY1M45voT+Ddlvrj3c01ZYs1mEQZctBrBtSk14 0XTdgVMR72P1GqR3dFSEYFur6+pnwYVuMMDQZ5tbsoKCNZXxPgIPkgctIBZk40s2SFmm K6sg== 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=wL4H2aprcsKI1pELjw3oxYKumILOsGLi3AGdahp7oYI=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=WaJhR33TWH1J4IGkwWF/PYgo3T2Q79Ph78nahZNIdVzxsO4pi/lHn7jYxoc7a3662g epK5GOaVMSip1xEYiqM/rYypJCIApJYAq+3g7QmpYrAB0B4JKjHtnzIO1qCHDWEz2Pvy 9HstVaqVs5X0iQ2wYUwvmRquac+8vT+gw40GYhWke1VEnvVngcSArVFzGpw0IuuKXIj7 gyTOU2Ym+QsUAFIXB/7iVAv9lFFqu+oCaoBvub7Tm8XlGFOHDa/jahsGWPnWklfsy1Ss pqGn702DXair0NZz9kJb6lgrWCFbrEMFz5m7FJbGY4bz0BkxQNRZNhkhG32dK0lvxeuo Og3Q==; 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=RK9PKyBU; 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 4fb4d7f45d1cf-5c42bb915c5si13496956a12.298.2024.09.23.05.59.20; Mon, 23 Sep 2024 05:59:21 -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=RK9PKyBU; 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 5819968DB65; Mon, 23 Sep 2024 15:40:38 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 49A6968DB6F for ; Mon, 23 Sep 2024 15:40:28 +0300 (EEST) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-42cb2191107so34209775e9.1 for ; Mon, 23 Sep 2024 05:40:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727095227; x=1727700027; 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=fd4Gz7Ih8mxT9xqzg++FkPwJonRzmgNpe+w6mRKhgoY=; b=RK9PKyBUk2FK9PMETJgoMzE95dVbbUIv01zCyJPC1UJIWfeKk6/8NwTo7NQvvrmqx7 bgkFGmixDIUGYttTqwplv5sUnt0uxvjfp5NEG5OWk/5GLs2zcBFAUNkgXIZXjA+aSWF/ ivTzme1VUnT1s2q/wgpMdizIo01+SC3RhD3lOIdV4QOxZNshdpzRwbHQ484DzfXFSYuK NXruEFKLbwP5wmhqh3wcYQ3dT/cxv6f9OQ038FntvpJon/E+F1vlBmqQ6FF5Ikwl351h uOiTKLyOwsXCzNojLxsx0luejknNJCY4Hlc4k5jNhQ/+V/kr5inlulyyBVbagEro3K2g AKRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727095227; x=1727700027; 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=fd4Gz7Ih8mxT9xqzg++FkPwJonRzmgNpe+w6mRKhgoY=; b=xRJ0H+qDai4veWKEgKSNwGDfiHgg8CTE7Wltc04fDZ8dfciprRW7zlsqfpMM83AkGT Pj+uD9kk1c/edILZ7WYsYfFWtLPYRmVildd012VmnLUC8UkKqF77kIAF/aFSO6xPG947 vZrhmMoSshmVA7FrDOdlDeOIEQUzJko2bl2kWMhGtDWU499scRncKQ/xHVyyXKEaMe22 p56xgp+6VDjOT6SmA6qFYAA1o5QwkT+80xHqAI646mRE1WV7h3JyPOruCZH9eFF3HG1D J6Zr+oSuXH4GIP/E/fSWSJ/g4QOOxcRKsPyeMhBpuYFxSr3uE3CV4QsPibzUrT8S5LFF 5f4w== X-Gm-Message-State: AOJu0YxRfv6T1jOMYudLCcVHGg2DlmR9pLtRNQ0qW9lSewKeTgkz6Kp1 OXwLNnn/vTfmM7rHXEmsnzFMMvJff8eh/FU2oAAhfjiCaQCQTthp/HA86w== X-Received: by 2002:a05:600c:4ed0:b0:428:ec2a:8c94 with SMTP id 5b1f17b1804b1-42e7c165df5mr75762905e9.10.1727095227106; Mon, 23 Sep 2024 05:40:27 -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.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Sep 2024 05:40:26 -0700 (PDT) From: Ramiro Polla To: ffmpeg-devel@ffmpeg.org Date: Mon, 23 Sep 2024 14:40:09 +0200 Message-Id: <20240923124017.33659-7-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 06/14] checkasm/sw_range_convert: reduce number of input sizes tested 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: K8/kJesFh06x Reduce input sizes to 8 (to test that the function works with widths smaller than the vector length) and 1920 (raising the largest input size to improve benchmark results). --- tests/checkasm/sw_range_convert.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/checkasm/sw_range_convert.c b/tests/checkasm/sw_range_convert.c index 8c8af995e7..df27b6c81e 100644 --- a/tests/checkasm/sw_range_convert.c +++ b/tests/checkasm/sw_range_convert.c @@ -31,8 +31,8 @@ static void check_lumConvertRange(int from) { const char *func_str = from ? "lumRangeFromJpeg" : "lumRangeToJpeg"; -#define LARGEST_INPUT_SIZE 512 - static const int input_sizes[] = {8, 24, 128, 144, 256, 512}; +#define LARGEST_INPUT_SIZE 1920 + static const int input_sizes[] = {8, LARGEST_INPUT_SIZE}; struct SwsContext *ctx; LOCAL_ALIGNED_32(int16_t, dst0, [LARGEST_INPUT_SIZE]); @@ -73,8 +73,8 @@ static void check_lumConvertRange(int from) static void check_chrConvertRange(int from) { const char *func_str = from ? "chrRangeFromJpeg" : "chrRangeToJpeg"; -#define LARGEST_INPUT_SIZE 512 - static const int input_sizes[] = {8, 24, 128, 144, 256, 512}; +#define LARGEST_INPUT_SIZE 1920 + static const int input_sizes[] = {8, LARGEST_INPUT_SIZE}; struct SwsContext *ctx; LOCAL_ALIGNED_32(int16_t, dstU0, [LARGEST_INPUT_SIZE]);