From patchwork Sun Jul 9 01:52:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 4272 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.1.76 with SMTP id 73csp1954802vsb; Sat, 8 Jul 2017 18:52:34 -0700 (PDT) X-Received: by 10.223.170.219 with SMTP id i27mr4226117wrc.49.1499565154593; Sat, 08 Jul 2017 18:52:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499565154; cv=none; d=google.com; s=arc-20160816; b=h+lPBr9R6CDu+/mgnAPXQ9wc1+RJht5qku25OIKCkDFyx2fpd8JpFBeA4HbJM4IC3U 8Ghe79UTO/6JCY24occX1ThlBsim+YK0n9BYvtlLQojelw9cxqqw1g73SxSeMXD1aW8z 6ZL6imiJj9IvT/X0lQ4WGKSiMP1LsoHwOEejDULk9DqJhwA6lcENjoeEmTj9dJ2kbe1v Uoq8waE1YiryPjJ6sV7dUcD/fHNfZSo57SRD8ZlNCOM1BSrAC/1Xys85PWL/ErT0nS3m T6Jz+s6JN54qMIu78uasfVoQqCwUyWa2nKu3Vs4mWiGyCOqHcwPeRMVT+E499jTDrHA3 KAXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to :arc-authentication-results; bh=bW5FckR5Va5zq9u2kwUQkN8wHoUqA3pAxgtkDP26FUc=; b=Idk9Fkcfg6jv1HZJV2JzjoYEffwBrVf2dawsDluuHgKpKL1Ck1J4/YRgMtnzwV2pgh aGSZ1z6Sn1UwRg0zYaR3etHf8DMH0Nd0Gk7lzwywAkwTEBC7ENYPwcS9RePZbWbamqX+ /xJ+Paz37vMODBg06A5oeOXMYTJXRN57P4v9qTeT2YC4YkXzXPel2ShxIvqJQ1NmnFgS rJUAH0vvMLa6MOgQ0lWt4diGqD3DqWoCQPimNapS68MT05jn8Q6iITyWDjJCgX1hRN/Z 1T67pIxOwlCm1viNrHrzRUtBQdDeN4vrsLMT4YAwW35LVgn8pRnRruXJfe4BgE3O+aOp TANw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id k129si3191948wme.42.2017.07.08.18.52.34; Sat, 08 Jul 2017 18:52:34 -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; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 94358689C73; Sun, 9 Jul 2017 04:52:22 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe05-1.mx.upcmail.net (vie01a-dmta-pe05-1.mx.upcmail.net [84.116.36.11]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9D3C6689C20 for ; Sun, 9 Jul 2017 04:52:15 +0300 (EEST) Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe05.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1dU1OU-0004zm-Uq for ffmpeg-devel@ffmpeg.org; Sun, 09 Jul 2017 03:52:18 +0200 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id iRsA1v01A0S5wYM01RsB3e; Sun, 09 Jul 2017 03:52:11 +0200 X-SourceIP: 213.47.41.20 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sun, 9 Jul 2017 03:52:08 +0200 Message-Id: <20170709015209.19207-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.13.0 Subject: [FFmpeg-devel] [PATCH 1/2] avcodec/tests/dct: Add peak mean error check X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" based on quotes of IEEE 1180 / ISO/IEC 23002-1 Signed-off-by: Michael Niedermayer --- libavcodec/tests/dct.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/tests/dct.c b/libavcodec/tests/dct.c index 29af3fea8a..cf71b96508 100644 --- a/libavcodec/tests/dct.c +++ b/libavcodec/tests/dct.c @@ -244,6 +244,8 @@ static int dct_error(const struct algo *dct, int test, int is_idct, int speed, c ome = (double) err_sum / NB_ITS / 64; spec_err = is_idct && (err_inf > 1 || omse > 0.02 || fabs(ome) > 0.0015); + if (test < 2) + spec_err = is_idct && ((double) sysErrMax / NB_ITS > 0.015); printf("%s %s: max_err=%d omse=%0.8f ome=%0.8f syserr=%0.8f maxout=%d blockSumErr=%d\n", is_idct ? "IDCT" : "DCT", dct->name, err_inf,