Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp579438rdh; Thu, 23 Nov 2023 12:05:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGTN90V3ZfJ1/yxdrnttBJMtfhjzwKtCFpHfLVeVUB5pMmNJX83Z1iIrmSUbhMi2RicBc7p X-Received: by 2002:a17:903:2596:b0:1cf:6b78:d0cb with SMTP id jb22-20020a170903259600b001cf6b78d0cbmr519359plb.55.1700769910740; Thu, 23 Nov 2023 12:05:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700769910; cv=none; d=google.com; s=arc-20160816; b=fhG4DH/dxUPgZJOY2wS/RBmBPxqOTHE6q3n0HiPQ+QPkV7wfSxZ9z40V8zi9IWSyS+ Yavfw+O05NO0JAjv2wQIgteG5/uQLOYuqWg+mshXK/1F5A0OHQcMfT/jOEGq37WP8cCA gL1eXKmBpZppKDnP41uF3yi6EXaNxpIS7mStb8Z4Zi+IXDx74VGxh7lQSYB2V8CeaO7M b7uXciJOvhGRWv8ac7HQDHfJqKdeV6S+xg1SoCj6pMUG4EAIHexORbTLY6u9GGtCZGmb 8U3rKZuWZgSKe71ynkev2TuFFrY4RGHUckLAqwCfU0nsPodidVyoMHrnz1UOUYbnAECQ /mBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=u/0H5hl8VPZgYpuQ8URQmrXQaeo3Bnl/e3km8eG05aU=; fh=bEUUkxCtcWAoM+0QUmhtNDixjAfHmPTjnsrsFCDjYhU=; b=hoJ/8S9pGsezfvp4GDP99Huo0ultQPbAGmc+L9DlR0ku9MXr4Wv7dmncmEgApQ94eO DuVpIE7bt89K/+mMKRsJJ5lUVJXtlgEI+qmnIGfW+5f8/CpJB7X9HsnoIbn7Lj/8DEE8 OAMGd2srYnpcupweMBiHh26hqUtzMwzsYzHIF3pqSvTP9MNS2qpZ7OgBe1MPhYfkJVHM RZ9Zii35v+0MjFxZtz3IwZEaVHzbbTrPp3VzOMR7cpGCb6cxitbv5pQ/5UFSDoW9U4e7 89RJsk91argHNdVb2L5SoDEBgRct+QbELWQXDFg1jzaNRAxHIrxA6qr56Ysrw9WDAuGE zAxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=IbkuHSDs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id x17-20020a170902ea9100b001c5ff477ebcsi1686920plb.265.2023.11.23.12.05.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 12:05:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=IbkuHSDs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 31D3C82DAFC1; Thu, 23 Nov 2023 12:04:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229709AbjKWUEl (ORCPT + 99 others); Thu, 23 Nov 2023 15:04:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjKWUEj (ORCPT ); Thu, 23 Nov 2023 15:04:39 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17721F9; Thu, 23 Nov 2023 12:04:46 -0800 (PST) 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 madras.collabora.co.uk (Postfix) with ESMTPSA id 74B416607394; Thu, 23 Nov 2023 20:04:43 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1700769884; bh=ergabYaAv14XuAzNZwCnvpH0+KUtcqgOCKlAljZh9P4=; h=From:To:Cc:Subject:Date:From; b=IbkuHSDsL/L8KhKQVNcLmTEFQdcmARfvBS4szdVbmIOGqo+/ZU/3nP5Tks+prg+NA 2fPPS7e/VxB5n+irM0smRD/vgFEIWeXCSf0MZ1qOsmkPjbk101sxT2Kosewt7RZOzA NDuaB8s/Afr8SteDBfUvQqSt6faZ6xL7IvgzID+7dWF074ny61VlVqd2ahTHEtp7qJ hR/aI/HLqD0sQEP7JyXSe8akwcMlN+tyEPRsfZX18M2jixsShBtgTTovSNyBWRfjJv 5Byv4e4iFtRh1cR/+4AEfr9L/xiDqmwwVmavrgaLM4fHjGVB9uTZMU3c4YbjwB/v4s XLzLZwuKq0EKg== 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 v3 0/4] visl: Adapt output frames for reference comparison Date: Thu, 23 Nov 2023 14:57:43 -0500 Message-ID: <20231123200451.148097-1-detlev.casanova@collabora.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 23 Nov 2023 12:04:57 -0800 (PST) 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. Add a "stable_output" module parameter to make sure that a given input stream always outputs the same frames. This is done by skipping information like queues status and pointer values. This also adds some stable variation in the frames so that different input give more different output. 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 stable_output parameter doc: visl: Document stable_output parameter visl: Add codec specific variability on output frames Documentation/admin-guide/media/visl.rst | 4 + .../media/test-drivers/vidtv/vidtv_bridge.c | 20 +- drivers/media/test-drivers/visl/visl-core.c | 15 +- drivers/media/test-drivers/visl/visl-dec.c | 292 ++++++++++++------ drivers/media/test-drivers/visl/visl.h | 1 + 5 files changed, 221 insertions(+), 111 deletions(-) -- 2.41.0