From patchwork Wed Dec 6 11:21:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul B Mahol X-Patchwork-Id: 44968 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9153:b0:181:818d:5e7f with SMTP id x19csp185171pzc; Wed, 6 Dec 2023 03:21:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IGq5qcfzfo/5E9d3jHukqRIMcoyMxNvz2p4TCVG7NuUgv3SRd7ZahZ1GxAAQPN04Yv/4t8x X-Received: by 2002:a50:8e12:0:b0:54b:1bf2:2f30 with SMTP id 18-20020a508e12000000b0054b1bf22f30mr548507edw.8.1701861688099; Wed, 06 Dec 2023 03:21:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701861688; cv=none; d=google.com; s=arc-20160816; b=lOxSlZ/5LizvSXNrUBe7E0kW/IqKBe+xyN+lZCNa/jwNH1WHkWC+fiPOEQu6e+rgkr c5VlDw/JXUgp5Z2xNtEiFFPm3R74lm7o6dzNbPlgEtD3iXl6zQdT3SQk1iucTmifxLv8 9jlLi7SPp7lIXwCm+hccroQ6Ozx8xskmaDU8AER03uHH7To4itjAaBbAG/+57/r1L4IN 44NU6xPhHz7PYwXxhbu/ydrxeleCBD6Um0td2/uo4JwimNHjupwvUNqipihmfxCIzMxB C62+VSSkpf0TpQmmrLxdD9KuDI6DonibUxT3q0/iSU8s30ihA3bpLIYpC58ON/5zgtgT eszw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject:to :message-id:date:from:mime-version:dkim-signature:delivered-to; bh=t7R5sKJD+rhSRz7IovWxQnLMOak24ITJ+zWQlevzPfs=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=qFms7hSCc+WC2V+YWAmirPp5NeqZS10FYF4PJm+nIQVAs6OvT/xh4NZFH6j6pTqmdu kA8Dj2OgKhQswc3eAlVeAUTI6SAls+KXYaiw1GFETEUZEsapYbvX8SHHSL5yhiOb2RTI PrCNsVfz7lFTowuCnRQioyskrUNYa787Il4TfhQC+V3QHJAPlmi4DNOyzM3PoNObtfot vgSvtzWp+4VtIkMP+ECek8siooGsLegrODGkyzLR2p+ED+ML50rA53OUl3iBC4iCBJTN qKqy+8Lx3fM/pLAUukoKKuq6Tr7vz1q2qtOxup28kjck8jobCuxLC3ZvQdmlnlp4GrW7 nCCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=d52blhfE; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id f8-20020a056402354800b0054c6396baf1si2102087edd.434.2023.12.06.03.21.27; Wed, 06 Dec 2023 03:21:28 -0800 (PST) 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=d52blhfE; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2B88A68CC45; Wed, 6 Dec 2023 13:21:24 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B25CC68CC45 for ; Wed, 6 Dec 2023 13:21:17 +0200 (EET) Received: by mail-yb1-f176.google.com with SMTP id 3f1490d57ef6-db4364ecd6aso4281744276.2 for ; Wed, 06 Dec 2023 03:21:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701861676; x=1702466476; darn=ffmpeg.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Q6aSCTnFIzLhDixKC5nvWxp984gf+/q+Td+80GhVv1U=; b=d52blhfEyGS70bwZRFwSr8IQbxn56691PTDq+5mbKGporQnmBaiMCigNfi95fPOnnK MhewcvNJQXgdk7i9+/3yHaxvMvptP+vviLWB8Dyi1hrDNB26yQxjS2i+T6oCVuG1CG3O ohICn4ccUptN9LMIXL820hu8RmB9yLV35kliBDNlGD0h/gjg6J9JXZreX3j5t7Xpw7VJ 3Lo4lCS5BisGwC95uZXZYgbVHa8NmN7ff/hzWZHlhwSrp0qgBtFxvJ2A4er5smTwyRhQ YYDqBw6D56mOO5fl16IT5u0dFZqbdrDsu6aRUnDNVgGBGLwnjmouHmwKfp6nMgVucV7D eZEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701861676; x=1702466476; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Q6aSCTnFIzLhDixKC5nvWxp984gf+/q+Td+80GhVv1U=; b=FR+Wqe8wORAxF1m661+Oka/IhAX8dNZxexs//FBwlFlZUnIhjYjh7m4Cguwly30ksB OZAzGdxzapJGupySN88awN97npNTLwd+1frUdvzgnyOj05y2jVCMkTyhpTHWwjIvmmN5 3l3RUUdTU8lj0zKOoqClhD4dHVo5XasMLXXUpViO0W7PBih/BT3ZJaZBJDR5ho1Z61ZL IeFwueOEq7s2M6c5AbAx2wpY3kfPz8U7TbrL+QQiWbeIE2bDiY9OkcHhPgCS2zm3mU+A Fpbw8ilDk0PaWGu7aKcv2sNjch5VmJ8Fmvvpk2k/R3kYyIn8boR/CEeg/SFRTgrlExd0 wR/Q== X-Gm-Message-State: AOJu0YwLBvhbz7N0AKVYPGaPL97bpg2N2HpMyKhs+dORfCYXTBjg52WE 64TqXzW0hIJTguyHwdMVGtDi8nr/z41dpCInV+9vKaBT X-Received: by 2002:a25:dad0:0:b0:db5:45bc:8ff9 with SMTP id n199-20020a25dad0000000b00db545bc8ff9mr400450ybf.22.1701861675816; Wed, 06 Dec 2023 03:21:15 -0800 (PST) MIME-Version: 1.0 From: Paul B Mahol Date: Wed, 6 Dec 2023 12:21:02 +0100 Message-ID: To: FFmpeg development discussions and patches X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [FFmpeg-devel] [PATCH] tests/fate: add median filter test 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: xHJ8RPa8oIsM Attached. From 2c54553b83f2b67f781c67cb72deb4a5f267a8f1 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 6 Dec 2023 12:17:54 +0100 Subject: [PATCH] tests/fate: add median filter test Signed-off-by: Paul B Mahol --- tests/fate/filter-video.mak | 3 +++ tests/ref/fate/filter-median | 1 + 2 files changed, 4 insertions(+) create mode 100644 tests/ref/fate/filter-median diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak index 4defaf5877..b57ef88c9b 100644 --- a/tests/fate/filter-video.mak +++ b/tests/fate/filter-video.mak @@ -456,6 +456,9 @@ FATE_FILTER_VSYNTH_VIDEO_FILTER-$(call ALLYES, SCALE_FILTER FORMAT_FILTER PERMS_ fate-filter-edgedetect: CMD = video_filter "scale,format=gray,perms=random,edgedetect" -frames:v 20 fate-filter-edgedetect-colormix: CMD = video_filter "scale,format=gbrp,perms=random,edgedetect=mode=colormix" -frames:v 20 +FATE_FILTER_VSYNTH_VIDEO_FILTER-$(CONFIG_MEDIAN_FILTER) += fate-filter-median +fate-filter-median: CMD = video_filter "median=radius=5" + FATE_FILTER_VSYNTH_VIDEO_FILTER-$(call ALLYES, PERMS_FILTER HUE_FILTER) += fate-filter-hue1 fate-filter-hue2 fate-filter-hue3 fate-filter-hue1: CMD = video_filter "perms=random,hue=s=sin(2*PI*t)+1" -frames:v 20 fate-filter-hue2: CMD = video_filter "perms=random,hue=h=18*n" -frames:v 20 diff --git a/tests/ref/fate/filter-median b/tests/ref/fate/filter-median new file mode 100644 index 0000000000..22dfaba576 --- /dev/null +++ b/tests/ref/fate/filter-median @@ -0,0 +1 @@ +median 8754a3715917ff8b20ff520c4bb4370c -- 2.42.1