Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1903076ybg; Fri, 5 Jun 2020 00:07:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxC2LFRkEbjXgFoRnUoPhiU0E/x+gqQ7PQmJecUuVWts2aKamqqkm+5R3LHltFoVEaBHzDc X-Received: by 2002:a17:906:2e1a:: with SMTP id n26mr7085534eji.425.1591340843497; Fri, 05 Jun 2020 00:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591340843; cv=none; d=google.com; s=arc-20160816; b=W3N4FSuswUJVJPCtImAbyw8qDy6vVLKPQDv2iBhr4Dme9rCCMRb3cTTwsy0HbBGwU7 AU6mGFMe+in/ys0TAXUtDdcNHD5Ch0wSOpl4hpNtcTfAQHGiMWxCWNVfeT6D59uOxQWA PKH3a3YM2Oah/punsRidguokaD73pc6qU+e6xjVXUYhnS+ZPi0MBlBYNHe7FhiS/sCrY SSn1qCSr+djxixpd/G+MqMNzUtMO4mSiFzZtSWBZ5JpXSDVgvr9iK3eo/ICTrWUYx7yW FZArUlNN6MKLZxBcgNSBF7bjTaKS1u62L/gs+4Vygi46GOLrVJrqLINt5TilQirjQW0J 5g0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=ZIUioFGqsAGz4kjU7gMFcICmC9eQAnxqAo7nG9yOo60=; b=opFVuBpi+VEtbe/IF0/sQEt2JvJTsMJX6s15DydRbStA5rRgarlyLJhPIjha3tYfiT m4OvPC6zcw0ua5KD47pwh5lSWQSiHq3CIwdCIat2BUoPRw9XM0zvXtu493oGgAiqCYgT bBvXPvr/REbaH/H5Cb8fAK9yP5YB10KH2Ybyts5Zte1WliHxjfql2FsxVpIOc0W1VhI8 1ioi5/2nwgCx4z5KohZFR6szHET9PYuGbaL3OIxhKy1mG/gFn7puIpJSkl23xP9w/3km g3VMOPt0j2iZ0wC6o819rrUWuuW3uY2HC4N01f6vxv7junX8W6fSAkq6XCSmRiiS4a03 0sZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=xkdZokXh; 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 cx19si2894915edb.395.2020.06.05.00.06.59; Fri, 05 Jun 2020 00:07:23 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=xkdZokXh; 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 S1726123AbgFEHCR (ORCPT + 99 others); Fri, 5 Jun 2020 03:02:17 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:58851 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726076AbgFEHCQ (ORCPT ); Fri, 5 Jun 2020 03:02:16 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1591340536; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=ZIUioFGqsAGz4kjU7gMFcICmC9eQAnxqAo7nG9yOo60=; b=xkdZokXheR53NqaLWPHBFBl09D6t2pl8c2InvZokP8ECkMMdaeFNo/Krb5p72QMjA5fPFkAf 2eABW/OfxKaxSLmotGkX9Rxon1hSUU1NqcAgUfrPYfQy2rIWAV+GmHCQFZDDXssVgHHD8TEB GA5GqtBjzt2uq7jpXH2Fh4Rlq5I= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-west-2.postgun.com with SMTP id 5ed9edf74db551abdef10832 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 05 Jun 2020 07:02:15 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 30000C433CA; Fri, 5 Jun 2020 07:02:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: dikshita) by smtp.codeaurora.org (Postfix) with ESMTPSA id BAC1FC433C6; Fri, 5 Jun 2020 07:02:14 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 05 Jun 2020 12:32:14 +0530 From: dikshita@codeaurora.org To: Hans Verkuil Cc: Nicolas Dufresne , 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, linux-media-owner@vger.kernel.org Subject: Re: [RFC] METADATA design using V4l2 Request API In-Reply-To: References: <1588918890-673-1-git-send-email-dikshita@codeaurora.org> <7be1070ee7aad1f48fc6de63523da8e1bc952dc8.camel@ndufresne.ca> Message-ID: <5356c146a340d951b8d492373f349199@codeaurora.org> X-Sender: dikshita@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hans, Nicolas, On 2020-05-29 13:01, Hans Verkuil wrote: > On 29/05/2020 04:18, Nicolas Dufresne wrote: >> 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 >> > > Nicolas raises good questions: it would help if you can give more > detailed information > about the hardware. We had similar discussions with Xilinx about > HDR10+ (see this > thread: https://www.spinics.net/lists/linux-media/msg163297.html). > > There is no clear answer at the moment on how to handle dynamic HDR > metadata. > It will help if we have some more information how different SoCs handle > this > in hardware. > > Regards, > > Hans As per Widevine Level 1 requirement, it needs “Hardware Protected Video Path”. Hence, in case of secure bitstream decoding, we need decoder metadata delivered from HW. CPU cannot parse secure bitstream and extract them. Apart from this, there are other metadata like "histogram" which is not part of the bitstream and generated by hardware Thanks, Dikshita