Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1297984imm; Thu, 4 Oct 2018 11:11:58 -0700 (PDT) X-Google-Smtp-Source: ACcGV613On4/FLeHW6EdZrBvnHYGeZw1gvPitXNsFANQa5/lKMiPwSoXLhJONbCoopc1QAQOOXKQ X-Received: by 2002:a17:902:f08c:: with SMTP id go12mr7855879plb.263.1538676718146; Thu, 04 Oct 2018 11:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538676718; cv=none; d=google.com; s=arc-20160816; b=IFLE1DCwL5g4xYO0F5lqYBzo7BxG/CvkKIkYKpfh2atbtIlvRg0d4no5B8p8g+rAIT cJlvoGKIgccbv7E+2iHq3NRXm1JoU30aoGZ8ZBQsu/nYatRQPDDnqj2gjCRHiMSvDs6X buZVFw3wtp6fQOTp4/YVI23ig70ZdbC1VbLTaLJWAgm/Nv/OE8QiyhC5tPrkiuh1OpnI 46KLOWSE9yI+tSn25O0icsZupM57hEZk0F4WQFfGtKXwH6ZAE6llYbLPg6GTOCJvjCks F6FHUwh8plEJbVfZ7Il3pHDMYjbr74UfFRX3eYEgQEnPKDoMcdF1wY1cdy8CZtUcdESd lc/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to:date :cc:to:from:subject:message-id:dkim-signature; bh=EvjraW5haBt9bwkn3LoFtF1ULHwmBuCqKJFogcd7zLg=; b=xNoI5exjLMIDODc9lBy9rBY5/RRKpj/AmqjR6M5vfptt11FM8z1ujugxPPluB/59JE fR42h+mc/y4RHQLF6ELCnB0eZ1gTi1HjsdrFhYtP73WcHjF7XwiKBXMdy/f92UJT4RFZ U/lBgIculU4rcnqGIQ1nw/iis1JHJ2/mYurMVyuV5fnhnka56XHul3DmTNW/zd2z6X8U BTr2APN1zzX3qyXO8bIPJgrNw3DxskksiID5580L4wAEEekJcw9LEQomufhouidKoUXV KSzcw9Fm1iC/cZVQciuY4HF6O/RZsSM+4FoUSVLNHMXgaEIs+2ot9Z9bOr/SjiyVXGrK Hybw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b="TZxRZvR/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f11-v6si6754205plm.244.2018.10.04.11.11.43; Thu, 04 Oct 2018 11:11:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b="TZxRZvR/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728031AbeJEBEc (ORCPT + 99 others); Thu, 4 Oct 2018 21:04:32 -0400 Received: from mail-qt1-f180.google.com ([209.85.160.180]:36791 "EHLO mail-qt1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727519AbeJEBEc (ORCPT ); Thu, 4 Oct 2018 21:04:32 -0400 Received: by mail-qt1-f180.google.com with SMTP id u34-v6so10927173qth.3 for ; Thu, 04 Oct 2018 11:10:07 -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 :mime-version; bh=EvjraW5haBt9bwkn3LoFtF1ULHwmBuCqKJFogcd7zLg=; b=TZxRZvR/zP72h3aid6J6Qhpu+BrZ8IN7D8wKzqWLZ1ceq2WaokgsTY2Cm6HAN5NmF6 a3m1XpLJ9K6klrt3ELLEfvssL3J76ysFF2j8Wf3Hc5vn/4s6dapJ4satZKtijW+eXXhQ GEj+QgqnlQW7o+3iF1NwxVBzpVs+0Ijw+pkRuZgR9Etm5Xhs3Ovr7nODIJLyp3952vKx PjI43AIHP9ZA2mmC9YO4I6q23MKFRGol+FQWiOlMBcNYv6rOxjQfZo+AuUKf7noHwLjG xXVZxQUosW5sRRAGneHc50YW5yiaQE2gKMR0sbqcDpvQZy4DoIvBQ/QCG4zOA7yb8wDB 2UDw== 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:mime-version; bh=EvjraW5haBt9bwkn3LoFtF1ULHwmBuCqKJFogcd7zLg=; b=FT/6PXO/zChG0C/RPTC861C6c3Z3Y6bvJ8kXWyif1w5hP6t5p6SE3B5ATcumk2RcO9 /rOHSW9f2kthvwP/TV1Ua4DWBtJxtwqoZ6hBO9BkvsoCLoaSYoA9+TPkdgI0sY5Le94H Oy5P7cpJGU63i4sqM81pJqlBys2PxBAbm9QRVdmaXTZ08LdKsdde1bkh4SBeaIUs/OqY +a0FCs/4AO4TaAig8G8d+G5c+KKDiFJP1ssTsy31iOcPXYkzTLwzMrg3QbOaYyilkNb3 GGWhrnajInuOQtm/qeOnBHuAAxKBwXdH4Arz5LCKiOAMLeilsFZSDGV8T5AuEUAS85t9 VwQQ== X-Gm-Message-State: ABuFfoh5T/sSUu59TSA0cU8D7D6sUaR7GN6vAFDpei91NBc4igvskrVB vnppUdAIe81D5xr40XF4/fCHhw== X-Received: by 2002:a0c:fd8c:: with SMTP id p12-v6mr1488934qvr.198.1538676607488; Thu, 04 Oct 2018 11:10:07 -0700 (PDT) Received: from tpx230-nicolas (modemcable154.55-37-24.static.videotron.ca. [24.37.55.154]) by smtp.gmail.com with ESMTPSA id t22-v6sm2801511qtt.1.2018.10.04.11.10.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Oct 2018 11:10:06 -0700 (PDT) Message-ID: <5085f73bc44424b20f1bd0dc1332d9baabecb090.camel@ndufresne.ca> Subject: Re: [RFC PATCH v2] media: docs-rst: Document m2m stateless video decoder interface From: Nicolas Dufresne To: Paul Kocialkowski , Alexandre Courbot , Tomasz Figa , Mauro Carvalho Chehab , Hans Verkuil , Pawel Osciak , linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org Date: Thu, 04 Oct 2018 14:10:04 -0400 In-Reply-To: References: <20181004081119.102575-1-acourbot@chromium.org> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-WITFkROoIaAo+RDmdg+G" X-Mailer: Evolution 3.28.5 (3.28.5-1.fc28) Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-WITFkROoIaAo+RDmdg+G Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le jeudi 04 octobre 2018 =C3=A0 14:47 +0200, Paul Kocialkowski a =C3=A9crit= : > > + Instance of struct v4l2_ctrl_h264_scaling_matrix, containing the s= caling > > + matrix to use when decoding the next queued frame. Applicable to t= he H.264 > > + stateless decoder. > > + > > +``V4L2_CID_MPEG_VIDEO_H264_SLICE_PARAM`` >=20 > Ditto with "H264_SLICE_PARAMS". >=20 > > + Array of struct v4l2_ctrl_h264_slice_param, containing at least as= many > > + entries as there are slices in the corresponding ``OUTPUT`` buffer= . > > + Applicable to the H.264 stateless decoder. > > + > > +``V4L2_CID_MPEG_VIDEO_H264_DECODE_PARAM`` > > + Instance of struct v4l2_ctrl_h264_decode_param, containing the hig= h-level > > + decoding parameters for a H.264 frame. Applicable to the H.264 sta= teless > > + decoder. >=20 > Since we require all the macroblocks to decode one frame to be held in > the same OUTPUT buffer, it probably doesn't make sense to keep > DECODE_PARAM and SLICE_PARAM distinct. >=20 > I would suggest merging both in "SLICE_PARAMS", similarly to what I > have proposed for H.265: https://patchwork.kernel.org/patch/10578023/ >=20 > What do you think? I don't understand why we add this arbitrary restriction of "all the macroblocks to decode one frame". The bitstream may contain multiple NALs per frame (e.g. slices), and stateless API shall pass each NAL separately imho. The driver can then decide to combine them if needed, or to keep them seperate. I would expect most decoder to decode each slice independently from each other, even though they write into the same frame. Nicolas --=-WITFkROoIaAo+RDmdg+G Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSScpfJiL+hb5vvd45xUwItrAaoHAUCW7ZXfAAKCRBxUwItrAao HN+lAJ9mLHnynjV7/5/fV/twzlfr93Ny3gCfQWLpOzVsima2HI6MxxdFSOCBSBE= =qB0v -----END PGP SIGNATURE----- --=-WITFkROoIaAo+RDmdg+G--