Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp165881ybm; Thu, 28 May 2020 19:21:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSkxiVVt8+sEIqhEhQYdIYNnBsjnHKK8L1vsq70vU870WT/vc1p+Vgy07xYxGyPH4VzROz X-Received: by 2002:a05:6402:1a29:: with SMTP id be9mr5998689edb.70.1590718876821; Thu, 28 May 2020 19:21:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590718876; cv=none; d=google.com; s=arc-20160816; b=LHKATxx0DsJMYbthmVvhzrpQ+NNacNg8Qaqq0qDr67XbSKyLp7BtBu4XCWTXTbNr2g 1qCQ1Rx5lF/h/iozuxfPjqOeaQ/2XeO1HQvbvRZfY5x61WiVPWeN5eYFehdGy76geOHb +e6IMfp1FKrJzxLZwrw9l7nJztHEAyxk3bgBtW+KSvS1vp5yCFs7Vqf+SZb3dlka56Wt JUyXRl8Gw6yUxcnP0KjB+ORaQoYTSczis6davw4PK4C89N67maz/4jNuqQZ147q12WPc 1qGpciDaqTs5odedHhNd9pe77dTF9B3P+4lam8nwsfrklpJ8iiZL09v59GsYLzGbVwr+ oS7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=5/ulWTNxKu3yWZsKCdG+n1pLZYJLUzJucMwpnx/Tjv0=; b=ftXbvb+SsEm1g/UPeVsCLdhO4yW7TTHQ5RKO0Apj9pD0kOphVPJm7dzUMUw5Ft2Qen bMPwwd4fg0biZcU9JL0el9t5IjgIUAaNnmloN/TsPYAEq7tFYGrWSRZaPupQ9FxPu8CW wwHABVH3IBUH4foKd/NgTYTZdEDraUFXGOHiQhU+piVtoLPNRxn1Qq4UjVP0SfUD6k86 t8g+I9112e8niV6Bf4LaRAFrMZQdN0uMvP4HQm9me1/djif/CjEwB+kmOTj526c1q6xz ytccLz5oJN12kWUBReSAAVB07IuL1vLlk3itaH9zVEFZ/E49ACG7PiRUEGviIR8rLapr 2NGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b=C34ixtjb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o23si4438864eds.570.2020.05.28.19.20.53; Thu, 28 May 2020 19:21:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b=C34ixtjb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405220AbgE2CS7 (ORCPT + 99 others); Thu, 28 May 2020 22:18:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390865AbgE2CS6 (ORCPT ); Thu, 28 May 2020 22:18:58 -0400 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9A2AC08C5C7 for ; Thu, 28 May 2020 19:18:56 -0700 (PDT) Received: by mail-qk1-x72b.google.com with SMTP id n11so916985qkn.8 for ; Thu, 28 May 2020 19:18:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ndufresne-ca.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=5/ulWTNxKu3yWZsKCdG+n1pLZYJLUzJucMwpnx/Tjv0=; b=C34ixtjbwhTJs+0mxiEv38hlgyVg5oZ4ZUEdBIFFx0McbkQZ7C4Ar8UPmumPbeJbU8 J93hIKwAr/NdF7UVmk2a4FtGTnVo4oF5mTJtvb3PwzSOtysVYzY9eDr2mtXOLfjSMpgC Ich8bcjQLU+idCXfS5jqj0Bt6uhG2FQcdAjwo1o1BOocDff47TQEwhvA+g7pxC0Fffjy WRV3DFr43pQFK7ONkrYVtMiIs2MSDj0XutRLhJZdT3oo1NvVrUGVnpecI4tN217ZI3dH LFsl7xe99Mr3I9xzSAzGKa345ob47xLdpkV2xSNu11e0SfuJS01AK7udqV0EhCw7YOuF 91Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=5/ulWTNxKu3yWZsKCdG+n1pLZYJLUzJucMwpnx/Tjv0=; b=IbWPPgK2QOjyQGaKugkNUASMkA7lDvUSeJljqOq6reZQ2pdm+mJZaKB9QH2FUaJTcF lJgQKtceRy2n0VmLq9jcLyUTxyoaxeLsjmXYdqBSEhYzAd8fap1UPGWY7oryXMFURfvj Kiu/L5gv4RmQ51GV42kGS3SLLiQd5u+PpQbuWna0VRuGqj9eR+ULZXF7ZT/eH0n/fpts AGN2ydEjRFI3VM9Bz3NrGNpxKbbsolHse4aLhhMzCVTtHGGDOOeiSI4w2jnCX0d9EC16 BH50S3a//Wwybe6SZ80rHitXHosCRWONpFHnqGvDgjnGhgtF6/SEnqQYcxk32Zwqm6Jf 3A8g== X-Gm-Message-State: AOAM532wFy2lZiPGxz0W9ZRULyBmw3QspOqKFsvrBlFSZ02IMsyYGmMz LDnaIxXE6tpdmafMj1LgM6RI3Q== X-Received: by 2002:a37:51d7:: with SMTP id f206mr5654716qkb.91.1590718736074; Thu, 28 May 2020 19:18:56 -0700 (PDT) Received: from nicolas-tpx395 ([192.222.193.21]) by smtp.gmail.com with ESMTPSA id b74sm6165768qkc.17.2020.05.28.19.18.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 May 2020 19:18:55 -0700 (PDT) Message-ID: <7be1070ee7aad1f48fc6de63523da8e1bc952dc8.camel@ndufresne.ca> Subject: Re: [RFC] METADATA design using V4l2 Request API From: Nicolas Dufresne To: dikshita@codeaurora.org, Hans Verkuil Cc: linux-media@vger.kernel.org, stanimir.varbanov@linaro.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org, majja@codeaurora.org, jdas@codeaurora.org Date: Thu, 28 May 2020 22:18:54 -0400 In-Reply-To: References: <1588918890-673-1-git-send-email-dikshita@codeaurora.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.2 (3.36.2-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le jeudi 28 mai 2020 à 16:18 +0530, dikshita@codeaurora.org a écrit : > > not allowed. So I need to know more about this. > > Regards, > > Hans > > we need this for use cases like HDR10+ where metadata info is part of > the bitstream. > > To handle such frame specific data, support for request api on capture > plane would be needed. I have a bit of a mixed impression here. Considering how large the ioctl interface overhead is, relying on HW parser to extract this medata woud be the last thing I would consider. Instead, I'm quite convince we can achieve greater and likely zero-copy perfromance by locating this header in userspace. So everytime I see this kind of API, were the HW is *needed* to parse a trivial bit of bistream, I ended thinking that we simply craft this API to expose this because the HW can do it, but no further logical thinking or higher level design seems to have been applied. I'm sorry for this open critic, but are we designing this because the HW designer exposed that feature? This is so low complexity to extract in userspace, with the bonus that we are not forced into expanding the representation to another form immediatly, as maybe the display will be able to handle that form directly (where converting to a C structure and then back to some binary format to satisfy DRM property seems very sub-optimal). Nicolas