From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C865C8E0 for ; Fri, 19 Jul 2024 15:36:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721403372; cv=none; b=k3WDSVTkjq1qifjtr68zY36+WLPF2okyYHeUsU2B7rIgfVUbYyMYGpquXnwM0gGqXMfRoQeLd6rfxpUEp5xuTCjQsqzaU1zPTHfHCSficd8ARqtIPm4sFrItCw0zaYiWnnU+ZLN97D4eslEqGSFcwIRkOfiId+S01M1dQYZLje8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721403372; c=relaxed/simple; bh=2/0klvuVGtgDS9abJE4lmmD+PAfbpXL+FKyhH3c98Sg=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=g8we3o0pdulqRWq9gJF5zvRkSOE6E/vxB6pyjQHiLtG1KxmZiWBti/Ca+5+i8iD2SHCEgGADEZay3n2zG056liZWhrnkrTmOYK3sHOecXjonXTOu+kLacbns1whSb8b/p6ZWvNyqDFy6pAJzHt6gDvbQuyxpbVMMMoU5RZfNBKA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ndufresne.ca; spf=none smtp.mailfrom=ndufresne.ca; dkim=pass (2048-bit key) header.d=ndufresne-ca.20230601.gappssmtp.com header.i=@ndufresne-ca.20230601.gappssmtp.com header.b=omhslDwU; arc=none smtp.client-ip=209.85.160.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ndufresne.ca Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ndufresne.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ndufresne-ca.20230601.gappssmtp.com header.i=@ndufresne-ca.20230601.gappssmtp.com header.b="omhslDwU" Received: by mail-qt1-f175.google.com with SMTP id d75a77b69052e-4494d41090bso8333911cf.3 for ; Fri, 19 Jul 2024 08:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ndufresne-ca.20230601.gappssmtp.com; s=20230601; t=1721403369; x=1722008169; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=2/0klvuVGtgDS9abJE4lmmD+PAfbpXL+FKyhH3c98Sg=; b=omhslDwUMpBEgOcZln436AtMrxjNgnRVLBtVC77F5XRBCoWutgcMBXu4MVDEOuFAaK NZjy1pI5B5FVJ0BE/EjCPJBFOYtfUFdtyQRiayp4vwgGnYa4qeulYRisDY5P425gGxKD e9WkKxawcpOPT0wvCCAPf/FlSSKIOMLr4t88SplPsarvEieSY4eQSNfdHswW+ft+rjEM 4vJVIhftR5VPBEsff7Mn0OveHn78Wq8seeO7DcAxgmUXj5kmCExwEPDwR67wK+2CpeyC IHjNCFzvO7vp8sArDNyiMx6WALfxp+dmD3YY32HMIrLOBNuDk+MAC+uQt22Vd8S8xzZ1 vsKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721403369; x=1722008169; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=2/0klvuVGtgDS9abJE4lmmD+PAfbpXL+FKyhH3c98Sg=; b=LUMg6AB9zhbNYfdEh3rVUsR/kpm7Ih9Q+QvC86H14u5rfpb1TVQH+qpD6TnS6VeZGL xmx2waSt6f87s/H/oVlxl49ykbvcMaI/0YNCi5MlE2a1Svw75JARNA8rNcr265BiFEn0 +8LZJ+fU0MNC8AwpOKLd0eaZQdx5xvZgkTJBd2crcaevA+yYlkUHXDJClKJ+Nl+TFK7/ QcPmR2RVs3YyY7isjD9HSDnDqpV3fI4XRryxGsbR1Ag/RAg7NcVBHPXqHv/ru8AEXUgg uOJPtGT1NwMmD6BOdUohyRU8Esd5rfOf/SjSHM7P649n/s6vSSoFc0rGJ+52JXyRhOgH vZBQ== X-Forwarded-Encrypted: i=1; AJvYcCUE9+CITMadmi8GI0kF0TUQ/TB48ujgY13HV0hBoafx2bKy2dmXcsCpsql93Zd3V8WzOuS8KAp1D9StRSWsD9IyGe1PVfrgAXyDzKr9 X-Gm-Message-State: AOJu0Ywfg+ess3cMUFaIfOkEjPXrFxvoC/jih9cq08WA17jG0WTc7L3G XPYdHlrE/rMHGGM638y5haJ+PQ3A1skv8w8cosKzn9ZGM/49Ix70Yav4ztplpUwgUEycg8W/ASA D X-Google-Smtp-Source: AGHT+IHZp7BNDj9fxW/zyyX66aytU/LYHM1rzrFkUbWiel/Oy5IwtNqagwykSB1duU9OlITraqO8YQ== X-Received: by 2002:ac8:5d8b:0:b0:446:5d60:5cf3 with SMTP id d75a77b69052e-44fa52616d2mr2072161cf.6.1721403368697; Fri, 19 Jul 2024 08:36:08 -0700 (PDT) Received: from nicolas-tpx395.lan ([2606:6d00:15:6720::7a9]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-44f9cda3513sm8509791cf.66.2024.07.19.08.36.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jul 2024 08:36:08 -0700 (PDT) Message-ID: Subject: Re: [PATCH v4 0/2] Enumerate all pixels formats From: Nicolas Dufresne To: Benjamin Gaignard , Hans Verkuil , mchehab@kernel.org, ezequiel@vanguardiasur.com.ar Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, kernel@collabora.com Date: Fri, 19 Jul 2024 11:36:07 -0400 In-Reply-To: <2eec786d-f2b6-4445-87f4-4b6d162a2d9a@collabora.com> References: <20240717131430.159727-1-benjamin.gaignard@collabora.com> <07f62fbb-d1eb-41c3-86a8-13a082a8374f@xs4all.nl> <743e2589-c0df-461d-97d4-fafe78c334ea@collabora.com> <98f5cd5c-cb9c-45ca-a7c7-a546f525c393@xs4all.nl> <2eec786d-f2b6-4445-87f4-4b6d162a2d9a@collabora.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.2 (3.52.2-1.fc40) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi, Le vendredi 19 juillet 2024 =C3=A0 15:47 +0200, Benjamin Gaignard a =C3=A9c= rit=C2=A0: > > What exactly is the problem you want to solve? A real-life problem, not= a theoretical > > one :-) >=20 > On real-life: on a board with 2 different stateless decoders being able t= o detect the > one which can decode 10 bits bitstreams without testing all codec-depende= nt controls. That leans toward giving an answer for the selected bitstream format though= , since the same driver may do 10bit HEVC without 10bit AV1. For the use case, both Chromium and GStreamer have a need to categorized decoders so that we avoid trying to use decoder that can't do that task. Mo= re platforms are getting multiple decoders, and we also need to take into acco= unt the available software decoders. Just looking at the codec specific profile is insufficient since we need tw= o conditions to be met. 1. The driver must support 10bit for the specific CODEC (for most codec thi= s is profile visible) 2. The produced 10bit color format must be supported by userspace In today's implementation, in order to test this, we'd need to simulate a 1= 0bit header control, so that when enumerating the formats we get a list of 10bit (optionally 8bit too, since some decoder can downscale colors) and finally verify that these pixel formats are know by userspace. This is not impossib= le, but very tedious, this proposal we to try and make this easier. Nicolas