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 067D846B9A for ; Tue, 4 Jul 2023 14:05:55 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8A11468C5D2; Tue, 4 Jul 2023 17:05:37 +0300 (EEST) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E9EA368C5BC for ; Tue, 4 Jul 2023 17:05:29 +0300 (EEST) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-3fbd33a573cso29121135e9.2 for ; Tue, 04 Jul 2023 07:05:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kynesim-co-uk.20221208.gappssmtp.com; s=20221208; t=1688479529; x=1691071529; 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=C/w6PoAuGLGL3ZTYafoZAe58Ptm7jXiB1zU85IKuR+g=; b=XR/wiB3y8Bh6VNs2DsxGb0AvDtKfHg48sjkMH/Q2ZQaw23SOtq6PTkRY15yOZBpM9z d1+frtcJZrSYNtA5QjrRr4igd2XfovkY1ow08+LN5ATLrkEmHguFVnTFs37qhn8z2/rI e98V/rOWI78xR93ZjJGReBTljthopm06pHu7do1yToyCLD9jS+uG7b6TtOZyNKFMRL+f w/aCYOGTVfIhbut2FrnVCMw+vBb6yHexRzgUuhlivNP6w1BHGJLWLpGk9rLc2LKjxF2l PE1w2vpiAXQ7hEFKM9itO7ukaMcQiLl1u4ciA2s2GSKewL4DiO+ZzIP3WN/Pmy7OIp5i dYnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688479529; x=1691071529; 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=C/w6PoAuGLGL3ZTYafoZAe58Ptm7jXiB1zU85IKuR+g=; b=CsOKzrHDqtT87Moo6mebf6SnGXybMhF8LPlqRCpxcu4ulzdn8szfIxZA6zMv86rSRZ BmYvlJgaCq7fG8lS6qJGTPwcL+0Ab+Tn+lwW6mnMvCIKPTioq1678R83gzoLJD+MB7aE MtVWHIJH7fLZ7Zc2vOz5BJmKDTfdmNN7jl6kRwIQFiUnrGkqj0RdcY9bEa5jBEPMk9F8 a74MIchzWhvOuEewBf/yMNL+AsmFNjHv4/Nul+ZQ5gLyQ/cbMHMMRkVMzLC2CPbDv3Lk avRNtpAM90vD3JeNmD0Sj6Ng2gDZokACjos4cPx5keCtj1OAzzkpXWw8hjeFDfnJR8AK 5wtQ== X-Gm-Message-State: AC+VfDzuiG2jLaRGFj+FQpDFtSxipYQdK91gumuvSFLUh3C6zAKOgh/f 6xZK/cJMNCLTrACHbSJohA/bslUzA1FKGq2TCOI= X-Google-Smtp-Source: ACHHUZ4SF1lRxhJeWuuwOpUsJ3wQyyieJ/2wNK0PyhA0NdYwBTUfjNuaM1Rmstx0K0TwT4PvFH2rkw== X-Received: by 2002:a05:600c:2219:b0:3fb:c217:7243 with SMTP id z25-20020a05600c221900b003fbc2177243mr10831971wml.18.1688479529159; Tue, 04 Jul 2023 07:05:29 -0700 (PDT) Received: from sucnaath.outer.uphall.net (cpc1-cmbg20-2-0-cust759.5-4.cable.virginm.net. [86.21.218.248]) by smtp.gmail.com with ESMTPSA id m23-20020a7bca57000000b003fbc30825fbsm13585970wml.39.2023.07.04.07.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 07:05:28 -0700 (PDT) From: John Cox To: ffmpeg-devel@ffmpeg.org Date: Tue, 4 Jul 2023 14:04:39 +0000 Message-Id: <20230704140445.240426-2-jc@kynesim.co.uk> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230704140445.240426-1-jc@kynesim.co.uk> References: <20230704140445.240426-1-jc@kynesim.co.uk> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v4 1/7] tests/checkasm: Add test for vf_bwdif filter_intra 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: thomas.mundt@hr.de, John Cox , martin@martin.st 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: Signed-off-by: John Cox --- tests/checkasm/vf_bwdif.c | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/tests/checkasm/vf_bwdif.c b/tests/checkasm/vf_bwdif.c index 46224bb575..034bbabb4c 100644 --- a/tests/checkasm/vf_bwdif.c +++ b/tests/checkasm/vf_bwdif.c @@ -20,6 +20,7 @@ #include "checkasm.h" #include "libavcodec/internal.h" #include "libavfilter/bwdif.h" +#include "libavutil/mem_internal.h" #define WIDTH 256 @@ -81,4 +82,40 @@ void checkasm_check_vf_bwdif(void) BODY(uint16_t, 10); report("bwdif10"); } + + if (check_func(ctx_8.filter_intra, "bwdif8.intra")) { + LOCAL_ALIGNED_16(uint8_t, cur0, [11*WIDTH]); + LOCAL_ALIGNED_16(uint8_t, cur1, [11*WIDTH]); + LOCAL_ALIGNED_16(uint8_t, dst0, [WIDTH*3]); + LOCAL_ALIGNED_16(uint8_t, dst1, [WIDTH*3]); + const int stride = WIDTH; + const int mask = (1<<8)-1; + + declare_func(void, void *dst1, void *cur1, int w, int prefs, int mrefs, + int prefs3, int mrefs3, int parity, int clip_max); + + randomize_buffers( cur0, cur1, mask, 11*WIDTH); + memset(dst0, 0xba, WIDTH * 3); + memset(dst1, 0xba, WIDTH * 3); + + call_ref(dst0 + stride, + cur0 + stride * 4, WIDTH, + stride, -stride, stride * 3, -stride * 3, + 0, mask); + call_new(dst1 + stride, + cur0 + stride * 4, WIDTH, + stride, -stride, stride * 3, -stride * 3, + 0, mask); + + if (memcmp(dst0, dst1, WIDTH*3) + || memcmp( cur0, cur1, WIDTH*11)) + fail(); + + bench_new(dst1 + stride, + cur0 + stride * 4, WIDTH, + stride, -stride, stride * 3, -stride * 3, + 0, mask); + + report("bwdif8.intra"); + } } -- 2.39.2 _______________________________________________ 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".