Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4306823yba; Mon, 29 Apr 2019 17:50:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYZQM8SmNU0IA6hDUmTRI1F2RELwyaLl+PUXW8vjJ/4Ic/OCGY5gPCjbPO6ngRWfYIMI65 X-Received: by 2002:a62:528b:: with SMTP id g133mr21768238pfb.246.1556585400940; Mon, 29 Apr 2019 17:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556585400; cv=none; d=google.com; s=arc-20160816; b=WaCl9CZ4BkXs3ODo9wi8St3Z8fTBONLu0EuseLZADU2ewI8emGiLVSIlvV4LFvmYvF 99hlVGVPVt5/XBebdVfw0FiLfp2xDiDSS1Q7bjy5uaxsJmiCjPKsNennO9AkPwWOxMsu hdz6LSQ2lgtGohxiZqjxnA8dpBHZ+JzeP/wiW2yFJqPIYWPEGqdZCsvfTWdCS8/Yzbho I2VGjtqgLpOofcR+h9FSvWuM5gtIskstkJUxQsw2hXQA7JBEj+2J+c65h3RHGdc9lRpS Yj03vnrvLuUE0LKOLrnjWSEK/pqpbJc7DCkUzVqULLQjXDI0LPZVKgtj86T0XNuAN/UB gwmQ== 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=JsAzde18G844oUFsP84w7alrwOBHCnuavwt/AS7sS2k=; b=0bY3erlc4+JGFaQ1bH7BlsqXplk6fA34EBT8ldV4kDEnw2RCrS03rLmeJQtQHpjJfG JLILNqFUQZ+bQ0U1lB31Rc5XMN0V9yC5pAtTkJDlmx+yeoJSNKFo9vJ/k6bnBs+QBX8+ h2SKweBsOHb3VMcZeJCmSYsYS4tEIoy27ittiA8BXO8MMx/e4lsfFX2305QbiF28/xTc nLLiIiqfg4H0oF8e73kS1lxTiN1ET08TsjLPYnPJl/DZleOCH7HrqY0JyAEyFoLzK0VJ M2N5ZDowR6rlzqPxeuX10+mMbWIqmXu1ELIm8cE4wQSHeixYc1k1oBRBlU2x6A88QMtU Mk9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b=lUhDjsVD; 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 s189si19560739pgb.346.2019.04.29.17.49.45; Mon, 29 Apr 2019 17:50:00 -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=lUhDjsVD; 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 S1729726AbfD3Ar3 (ORCPT + 99 others); Mon, 29 Apr 2019 20:47:29 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:35360 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729238AbfD3Ar3 (ORCPT ); Mon, 29 Apr 2019 20:47:29 -0400 Received: by mail-qt1-f195.google.com with SMTP id e5so7369584qtq.2 for ; Mon, 29 Apr 2019 17:47:28 -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=JsAzde18G844oUFsP84w7alrwOBHCnuavwt/AS7sS2k=; b=lUhDjsVD1HvmTZzSlmnmNS8+KHK7lhpF4/MdTE1Sll4f4/Abxpr9EZf43vY3nUv4gc SByYo4fESpwSj2ehkg5CBnkPoMig7wo7c3MER30cWOsyZa3X18dZ4H5sK3vFWmHAcLHQ DFc22NY0N8ybP2uMrhr1x1d8eXorCas+FecmuHqxCft2nD3aprG04jfX3EMKbOPBu95b xL1dCW9l8KBp+333PBmln1HIjhsfpEuyhbI7MHMD+ZS04jijenSMAeJUEHqvtxMygai4 EDp7AXbiLhODKY2dC2v1KhUw2AbeCzyLub3PH5P0Asj5RCVj8r8ESN7yBQ3Mx+g8xirX 85zg== 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=JsAzde18G844oUFsP84w7alrwOBHCnuavwt/AS7sS2k=; b=JEDwLaoRg0V7mCj2fQ30+SanRYzh2QFlB1CSOLYMByoj2Ftib2jQOwj5mCYsTZUEsF 6Gt+Ly08cyUuBYspR1UkQfTBQGGvBypLI6K6Wz/u6kPpY9osH2ZdlMWecpaT1RSsfBQH 9okrmDHVO9Pf6XMkzju9/ckcXbGYmWv35WDpoD7BeQFS7mRWREggLkS0Oj4qwtVgxnDM K1KsyTr7PgNWwT3XsWfJGNT91coxxOcR0/a0mSejTnlh+XXJgre9q0AIyKTMJiF2rxvE tZ3O2QpoIvxb6snghWHJtHSqnmIKiblb0UfSXAAeVGLhy1p6d5DA2DPTV4DwsU0hPlw+ WE8Q== X-Gm-Message-State: APjAAAWn8J4i+MREjqA3/X5amkH59QADa0qU1FMunBV+oM0sj32KNzpm gdEn3zzvKEYzEMCW9nmNMcOJ/Q== X-Received: by 2002:aed:2196:: with SMTP id l22mr52293656qtc.226.1556585247694; Mon, 29 Apr 2019 17:47:27 -0700 (PDT) Received: from skullcanyon ([2002:c0de:c115:0:481e:e17e:2f68:43f8]) by smtp.gmail.com with ESMTPSA id 46sm22813618qtz.87.2019.04.29.17.47.24 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Apr 2019 17:47:26 -0700 (PDT) Message-ID: <8bfacddaf6c8a94bccbae5c6a83688d42bbf63a9.camel@ndufresne.ca> Subject: Re: [PATCH v4] media: docs-rst: Document m2m stateless video decoder interface From: Nicolas Dufresne To: Paul Kocialkowski , Hans Verkuil , Alexandre Courbot Cc: Tomasz Figa , Maxime Ripard , Dafna Hirschfeld , Mauro Carvalho Chehab , Linux Media Mailing List , LKML , Boris Brezillon , kernel mailing list , Jonas Karlman , Jernej Skrabec , Thierry Reding Date: Mon, 29 Apr 2019 20:47:23 -0400 In-Reply-To: <0c8d534cf1ad262ab790f4ccfe9c2900e8a50aba.camel@bootlin.com> References: <20190306080019.159676-1-acourbot@chromium.org> <371df0e4ec9e38d83d11171cbd98f19954cbf787.camel@ndufresne.ca> <439b7f57aa3ba2b2ed5b043f961ef87cb83912af.camel@ndufresne.ca> <59e23c5ca5bfbadf9441ea06da2e9b9b5898c6d7.camel@bootlin.com> <0b495143bb260cf9f8927ee541e7f001842ac5c3.camel@ndufresne.ca> <793af82c-6b37-6f69-648e-2cd2a2e87645@xs4all.nl> <0a39c613-440d-c7a9-a078-b4688874f9e6@xs4all.nl> <16a3a61fe354dc545e99aef36aa58c7d4943de26.camel@bootlin.com> <0c8d534cf1ad262ab790f4ccfe9c2900e8a50aba.camel@bootlin.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.1 (3.32.1-1.fc30) 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 lundi 29 avril 2019 à 22:32 +0200, Paul Kocialkowski a écrit : > > Adding Boris in CC. Boris, do you think that could possibly fit into > > your todo while working on the H264 accelerator on RK ? If needed I can > > generate test streams, there is couple of lines of code to remove / add > > in FFMPEG backend if you want to test this properly, though I'm not > > able to run this code atm (it requires a working DRM, and I'm having > > issues with my board in this regard). > > Well, that seems like a task that requires in-depth knowledge about how > the v4l2 m2m core and the request API work and some familiary with > it. My feeling is that Boris is pretty new to all of this, so perhaps > it would be best for him to focus on the rockchip driver alone, which > is already a significant piece of work on its own. > > It looks like Hans has proposed to come up with something soon, so > things are looking good for us. Once we have that, I think the next > area we need to look into is how we need to rework and refine the > controls. I think it would be good to define common guidelines for > adapting bitstream descriptions into controls with what the hardware > needs to know about precisely. > > In spite of that, I would be very interested in knowing what the > rockchip MPEG-2 and H.264 decoders expect precisely. I'm also We are still working on that. For now, we believe that the list (and traces from real stream matches) are according to the standard "Initialization process" section 8.2.4.2. But they run both P and B initialization regardless of the type, hence the 3 lists. But the modification (section 8.4.2.3) are not applied. They also program the 3 lists regardless of the current picture type. This is quite strange. Tomorrow I'll mark all b0/b1 value as invalid on P slice and the opposite for B slice to see if that still decodes fine. If that was the case, it would mean that the current list are complete, but not in the expected order. What I'm wondering is if it would be fine to add more information to the DPB entry so that we could simply implement 8.2.4.2 to re-create the pre-modification order. It's more doable then trying to reverse the modifications and would offer a better uAPI in exchange for a very small overhead. > interested in learning about Tegra decoders and there are also docs > about the Hantro G1 (MPEG-2 to H.264) and Hantro G2 (H.265) which are > well documented in the i.MX8M docs. It's also used on some Atmel > platforms apparently. So feedback regarding the current controls that > Maxime and I came up with would be welcome.