Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp457935rdb; Wed, 17 Jan 2024 07:12:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1xd2dcHoJrqBEdqhRHjAskYt0TUwSIxgoITkAbMky+ezFic8FgffOgZksQg60OndKB5l1 X-Received: by 2002:a17:90a:bc8:b0:28f:fd7a:bdff with SMTP id x8-20020a17090a0bc800b0028ffd7abdffmr555191pjd.88.1705504377454; Wed, 17 Jan 2024 07:12:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705504377; cv=pass; d=google.com; s=arc-20160816; b=PJD6/Nc0mfRshgeNp80QK09czKzAlfaEmaP4XROOhjrrCxK+HnaWOnyExu3M1fjvql JS3/5kyZWi+y/6pcz9d2OS20zfhtKSgAWZeCPM/XnkNxrn8gTBgob0Cu3h7Nl24giXgc LHphiQwm3bz44eDmpWFL2xxNPAV4Zch4yLR10IKZa8Cqs/w8I/0iEzUUE02lvSu1tbB8 vLmvfG3qEE6HL5fGlkREFSSLZZRxt3KM9e8u7AOPkJ+bS3ikwLk0At7xP0KhgxfjHFOc 52SdBj0suAS7+t6plz3G1wxgFoz5HAjbaA8u9YWMOQIMfwtwqvZsD0zI9A8a1rFreh5r Mf9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=aPr131fINogzkgSV7tahdSLYd4gLGSerA+pZO7SBgTI=; fh=bEUUkxCtcWAoM+0QUmhtNDixjAfHmPTjnsrsFCDjYhU=; b=GwM9hk7rRJ6E2KaRm0s5GQBZbqPJc3r5616+oNXZK54rKZeHpxm77dhhfntnhNJy8K 80a2Z+lmEl95XUnGoqOpIEO5fFcd6Qz2QtHriRzRDqwa3FHVwQegzDFNp9ToUDsTZ/rE 0ZCItfw9celTABVPwjL3cFNZkgUwIJ8lHNQZXsj+qpOpWYJ7ZgJ63ily/oczItqFAkoz XqSa5M6ASKH302CXDP1t0bmnaaVHrUew4TsH6LG1bFxWSAoHPpBOTtm1iXtVh17oL95S z4po4zwCKqJuK/f9RtvzALkzMF51CwzEBEKkepI4MdaaBBN+NCGgCxBDc1TJNLPP1pGu Gn9g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=EHA4zorv; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-29130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p16-20020a17090ad31000b0028e754bb106si4077931pju.85.2024.01.17.07.12.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 07:12:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=EHA4zorv; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-29130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CA466B235FC for ; Wed, 17 Jan 2024 15:12:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D62421A15; Wed, 17 Jan 2024 15:12:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="EHA4zorv" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14BC321A06; Wed, 17 Jan 2024 15:12:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705504328; cv=none; b=QqKcyml5uowD8Y/3SEZEykOFkS5s+XZ8/nyhZAjd4teEXJuJQ2AB2S8AnQsDZGtlImmMptTGrya3s+VULAA/LLAOlq3TBNbCS68xeZVCpOF5QG7w7d1L8Z7j6/k0QIaH2jX+ZrvpUSp8h1kg3GwklMgexmTnmgmURTBzyAZtK1c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705504328; c=relaxed/simple; bh=x1+8uF7RcxfIMN9GP9hFEOHeqmYRO26uThdUiQc+jYE=; h=DKIM-Signature:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:MIME-Version:Content-Transfer-Encoding; b=lY4jQFUYpIXTEFYaHN9h/gGHFkZUnsW351JXl7m1pZIc5kQGfUVzrAZ4BDkdOKzwPb9Q+hdQBwnTNtZfFHyJtox1e48CZsEvTozolg2SZSNJXCTL8wooCPj0eW6ilMqQ+Q1xpe8hJtPLndCqIMF63k3Z78/BbHnoiOVG+O5k0DA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=EHA4zorv; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1705504324; bh=x1+8uF7RcxfIMN9GP9hFEOHeqmYRO26uThdUiQc+jYE=; h=From:To:Cc:Subject:Date:From; b=EHA4zorvTo9HZLf+qNYGMhXgSHZJjVLn+g6j/V+n2sb9GzM8Izm6S2Pk2h1ME5j2Z 6x5JiIuYy+c1KYcTng+yRT1SwkOYBPOQbhO2aJyJfOkGqUJBWe3wZwdkOH3Jw+Csmn HzsTmGJryqCDLS+BHmyWAigvrKGpes1tBlf91AMURWbjs/YmsHfwQkkTVcaEQbr0Rg D94w+4i8eAaCehaOMMXkLeyxIa/T8spxGWHbW/OPjuDEA5dbRWfE6viNPPxZwxqrXc TFe0qiVELbmjI7vLAT+T0T2JJmVNUwNOh44IareAvyZQK7EeKmJbk4tleLphVJ9HKA kCPEoAsxvkw+Q== Received: from arisu.hitronhub.home (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: detlev) by madrid.collaboradmins.com (Postfix) with ESMTPSA id E76F63781FC7; Wed, 17 Jan 2024 15:12:02 +0000 (UTC) From: Detlev Casanova To: linux-kernel@vger.kernel.org Cc: linux-media@vger.kernel.org, Daniel Almeida , Mauro Carvalho Chehab , Hans Verkuil , Detlev Casanova Subject: [PATCH v5 0/4] visl: Add a tpg_verbose parameter for reference comparison Date: Wed, 17 Jan 2024 10:10:14 -0500 Message-ID: <20240117151202.405426-1-detlev.casanova@collabora.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit When using visl in automated tests, we need to have output frames that can be compared to reference frames or hash of those to validate that the whole pipeline is working properly. Make sure that a given input stream always outputs the same frames. This is done by removing TPG information like queues status and pointer values. Introduce the tpg_verbose parameter to allow adding the more verbose information that this patchset removes This also adds some stable variation in the frames so that different input give more different output. Changes since v4: - Remove unnecessary changes in visl_get_ref_frames - Fix missing space after && Changes since v3: - Fix some more permissions in vidtv - Rename stable_output to tpg_verbose - Rebase on media_stage/master to include AV1 support - Remove code churn in visl_get_ref_frames() - Remove code duplication in visl_tpg_fill_sequence() Changes since v2: - Set parameters permissions to 0444 in visl and vidtv - Make stable_output true by default - Keep showing frames timestamps and remove vb2 buffer indexes only in stable output mode - Make codec_variablility non optional (remove parameter, keep implementation) - Add details on used variability fields Changes since v1: - Fix typo in parameter documentation Detlev Casanova (4): media: visl,vidtv: Set parameters permissions to 0444 media: visl: Add a tpg_verbose parameter doc: visl: Document tpg_verbose parameter visl: Add codec specific variability on output frames Documentation/admin-guide/media/visl.rst | 12 +- .../media/test-drivers/vidtv/vidtv_bridge.c | 26 +- drivers/media/test-drivers/visl/visl-core.c | 15 +- drivers/media/test-drivers/visl/visl-dec.c | 301 +++++++++++------- drivers/media/test-drivers/visl/visl.h | 1 + 5 files changed, 217 insertions(+), 138 deletions(-) -- 2.43.0