Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4522734imm; Tue, 9 Oct 2018 00:32:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV63P4BWZIjTlLw+9LFkgXF37n0iLQ71N7IzRE6yCJG99G935r1ieytBoh/vWoAfngZ3eKHjB X-Received: by 2002:a62:fb04:: with SMTP id x4-v6mr14359202pfm.210.1539070355900; Tue, 09 Oct 2018 00:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539070355; cv=none; d=google.com; s=arc-20160816; b=0HqqdpUZ+2amjlmPZ96F5Yym0L99Oqv/rf/DdFffFCeIDtYFhATRjCLxjj7HoIbevx HXtbMDBG1LjJnWAjb+NbLK+2uayuXoLDqouS0YWnSwvaVih20Zkf69J62MnrDKZusgyd X5QUwDp4twK3Y2C/iS5ezYuNt4Q1wqFjyMzNtGz3QMGcGIf594pVvQSPLGCfYXq57ZeW IwG+QbijNaGea4pBf2qNHaZcFwJdRGGMhCKgA8BuZCswf9ardN3Zs1jJUmNCdWp0SI6s 5v+7dy4jEFsjrB2ZVaZkuxCmCx+lkVvC15h1a3YuC697Y4UkLLNdZDWdnJobYGWtwqU6 1QPw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=xSirOFYPA/vdNKtagbLa45bydrG32t5DjGbEkTA8qaU=; b=0UrCfJvlPsi4V0sgzv+q2LcEtHIyB66ilsSEuJLzzld2+wJcnGLvO8bFru5hFGXcnP P1IQaq7pFLYQZpcJhu0VkOad5VyFh4sCShnZjitJxHLSUouURLBdJ04MBJzWmGA1JYcs RCnsfRvRdFnqriOIWmS1Wsq6ZIBTXKjPL9waYiEGkerELTmADxDpsnHoS9VVyAxgm7Mu hC0EZdn0iiNOdstzZEs+LCsP3lZeUNvKLvII/1NK1ii5uf/BfST0kjTL/rIz1HEeRLlX KfEymy3+jld6Vu4a8kqq7lqPVzCjSsSEE+HyIWU2wMPSgAeUSaMVmcnmIyBTLo0PE5AS vaDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kqWHSGuH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p6-v6si19972754pls.17.2018.10.09.00.32.21; Tue, 09 Oct 2018 00:32:35 -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=@chromium.org header.s=google header.b=kqWHSGuH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726486AbeJIOqL (ORCPT + 99 others); Tue, 9 Oct 2018 10:46:11 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:45902 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725855AbeJIOqK (ORCPT ); Tue, 9 Oct 2018 10:46:10 -0400 Received: by mail-yw1-f66.google.com with SMTP id v198-v6so233566ywg.12 for ; Tue, 09 Oct 2018 00:30:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=xSirOFYPA/vdNKtagbLa45bydrG32t5DjGbEkTA8qaU=; b=kqWHSGuHSJVFb8BloBr4YoLfRWhPr7f409ggsen/mVkD35acb8BSYDIRjsZFb/qGE9 LJUMIoOAWPZ8z6n6E5VK11/y8PDHtZvfKrh51AC/Ng0d+s/VqLR+849Fjq6MwkBuSuOk n/x5/Qb7MUeSE44cMD97jA3C1Ua4tNtDmJqdc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=xSirOFYPA/vdNKtagbLa45bydrG32t5DjGbEkTA8qaU=; b=rChW4RVxpU+oxN8yBrUtyfUf9hAtTaxmXvCaAP/bsenmq8pOXpJBRdeqsXGeH0HN7H Z+NMdRcj97B6jQIRLAUGskm2NwQLbjdyJ+RSDKLS8ycTFFR6I9ziMLIbNITCV7XbbRc/ 1wHJPRBAhqhJxMbv4RS04yjnbPqpIZRJ7AiZve8peaGCT0HwxSmVhD/qZ5So515uDwsA LVG6YgJecsgOQyOIZySVF/f4e72KS5X3MZgJM1dV4FWffeThgY6FKxmW37ijbTj0d+Ay UYLF/ACwWKr4JtUuB9xf9wx+JFAdQ2JBsT+QnWE/0ZzohYjfKazzDvowB9wp4OtCFII9 7HRQ== X-Gm-Message-State: ABuFfohp4BU0IbBD11bnTFxtpACnPMSMaeIm+nfhHNB2fmvYFKeGfLxy yytU56pLQL/7Us1EuC3xrVDbG0iFWgZMHQ== X-Received: by 2002:a81:1d96:: with SMTP id d144-v6mr14842974ywd.504.1539070235571; Tue, 09 Oct 2018 00:30:35 -0700 (PDT) Received: from mail-yw1-f43.google.com (mail-yw1-f43.google.com. [209.85.161.43]) by smtp.gmail.com with ESMTPSA id c128-v6sm7149045ywb.68.2018.10.09.00.30.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 00:30:34 -0700 (PDT) Received: by mail-yw1-f43.google.com with SMTP id y14-v6so245421ywa.4 for ; Tue, 09 Oct 2018 00:30:34 -0700 (PDT) X-Received: by 2002:a81:8144:: with SMTP id r65-v6mr11881228ywf.403.1539070233976; Tue, 09 Oct 2018 00:30:33 -0700 (PDT) MIME-Version: 1.0 References: <20181004081119.102575-1-acourbot@chromium.org> In-Reply-To: From: Tomasz Figa Date: Tue, 9 Oct 2018 16:30:22 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v2] media: docs-rst: Document m2m stateless video decoder interface To: contact@paulk.fr Cc: Alexandre Courbot , Mauro Carvalho Chehab , Hans Verkuil , Pawel Osciak , Linux Media Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 4, 2018 at 9:46 PM Paul Kocialkowski wrote: > > Hi, > > Here are a few minor suggestion about H.264 controls. > > Le jeudi 04 octobre 2018 =C3=A0 17:11 +0900, Alexandre Courbot a =C3=A9cr= it : > > diff --git a/Documentation/media/uapi/v4l/extended-controls.rst b/Docum= entation/media/uapi/v4l/extended-controls.rst > > index a9252225b63e..9d06d853d4ff 100644 > > --- a/Documentation/media/uapi/v4l/extended-controls.rst > > +++ b/Documentation/media/uapi/v4l/extended-controls.rst > > @@ -810,6 +810,31 @@ enum v4l2_mpeg_video_bitrate_mode - > > otherwise the decoder expects a single frame in per buffer. > > Applicable to the decoder, all codecs. > > > > +.. _v4l2-mpeg-h264: > > + > > +``V4L2_CID_MPEG_VIDEO_H264_SPS`` > > + Instance of struct v4l2_ctrl_h264_sps, containing the SPS of to us= e with > > + the next queued frame. Applicable to the H.264 stateless decoder. > > + > > +``V4L2_CID_MPEG_VIDEO_H264_PPS`` > > + Instance of struct v4l2_ctrl_h264_pps, containing the PPS of to us= e with > > + the next queued frame. Applicable to the H.264 stateless decoder. > > + > > +``V4L2_CID_MPEG_VIDEO_H264_SCALING_MATRIX`` > > For consistency with MPEG-2 and upcoming JPEG, I think we should call > this "H264_QUANTIZATION". I'd rather stay consistent with H.264 specification, which uses the wording as defined in Alex's patch. Otherwise it would be difficult to correlate between the controls and the specification, which is something that the userspace developer would definitely need to understand how to properly parse the stream and obtain the decoding parameters. > > > + 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`` > > Ditto with "H264_SLICE_PARAMS". > It doesn't seem to be related to the spec in this case and "params" sounds better indeed. Best regards, Tomasz