Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7509058ybi; Mon, 8 Jul 2019 23:22:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJHpskU+laiwybHWpt35PS2qCr8LW2nNnupURb2M6Z7NN2F8zZY1o7vMU5+1W8ipzfV5Je X-Received: by 2002:a65:6406:: with SMTP id a6mr27750085pgv.393.1562653333569; Mon, 08 Jul 2019 23:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562653333; cv=none; d=google.com; s=arc-20160816; b=aRF2LJhynqWfkWNVwTfUMbd6zi2azLc5Ph0ancMOtT8slAne+3qXBvsBAS1u7GYPee 3GbuLf2AKGzBkp35n7Pm5EduUSViwwIGkTOSv3TBpkaK+r9q6LYofwTzQe+8F1xnGeuA S0SXF0NrSCuj4Jv3gavO/ELE29L7258N+19dIOqtYJEd8nKKsC57JF+8JUzQmj/MJE9s vUN7M0mAQp/eBRAsmEJ7kLLVMIp08x2FL77AIQw8Zru8NZN+8QzvvIZnbe+DvkC7M67/ A4f1i/WeEVv5klqDiO9YQDDr+et7nHOUJdQaCHr2mS8t+HY8EMPrUi6yqmui1WljbSTx Ibjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=GDzjMWxwokXwvdx7TqR3+5NdbnOSDiEOotLEa/Zg7Nk=; b=KXNx8aas90qdQAJCssiUlMZMWPlpCmiwlybsV4MD9Q/wpp6iA0Xk8gq+B7EolqGVam UMDzd9J3ki2mbkwKekMAJxBVYQos7y5MpjsF7IA+hjGu/Zn5TfGcsEHmpQCAxSo08nhM QgR7NrNTKB6pkpa+a+1l5fnyIeP/PsYyHp4X8OAWAWVx9LTVtLJP6iLUnQzTqmOTNYoX K8oTUiwn2PZiiPsLeLtWwdWV4uRnApozRzjeKyr/nje4KGFaAZnv9jOCcvgM+0V0E//G ouQOnO+wyAVLc798/X/X2l3D2Di/P8DTUPb5jBCMxsHqJmZNK4A/XEO1sys0Po+Rlkzo Wt9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=K8xZ2RJn; 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 a2si22127308pgj.54.2019.07.08.23.21.58; Mon, 08 Jul 2019 23:22:13 -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=K8xZ2RJn; 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 S1726346AbfGIGPX (ORCPT + 99 others); Tue, 9 Jul 2019 02:15:23 -0400 Received: from mail-ed1-f46.google.com ([209.85.208.46]:35599 "EHLO mail-ed1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbfGIGPW (ORCPT ); Tue, 9 Jul 2019 02:15:22 -0400 Received: by mail-ed1-f46.google.com with SMTP id w20so16605999edd.2 for ; Mon, 08 Jul 2019 23:15:21 -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; bh=GDzjMWxwokXwvdx7TqR3+5NdbnOSDiEOotLEa/Zg7Nk=; b=K8xZ2RJnipyWngJ53bOuctxIW7TEMd/MljxkcYd6t7879ub/ZQHx6ZxQZy8GuM0iwI Q5Xa5YlgWnVqTQW6ZlzrLxzHSRhystAdkSKYbgzd6bTh6hbXMwUvVRiwdEvqPESnJnGH 9JJjZVW0WbeXMlXKAWelEJw+GYI5HoFrFU06k= 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; bh=GDzjMWxwokXwvdx7TqR3+5NdbnOSDiEOotLEa/Zg7Nk=; b=YJu9mgEcf2GMhdo6LY+IJuTmoVkii+K2p6xR4Ln+ct6OmgnfA7Ym1EJn8+vgtgKGjy C4aQKhhKr5sJFrC67r8PQAiZ1l3l5+vdYK4+kumxuil8fh/NJVGQm52Nqwy4kTgz3YWz yYfOpseObmoI2nHBs4ChsPxvB7l2s+KjDXCQzgWBifZPUKdUZaymEK3rzL4YfyE/YVcb wdUXNry/hUNf37myyaJ5aVN5AH5zMrAjuQr9t9NgYyiIAQlCt9I/ToA8ps0YKSApXFqP NwXFRva5Qhl0exaQsNAyDLmPzxRW4FPqRrqcPQzhbhw4sIEW3deaimQBK3bUl4fK9aRf E+Bw== X-Gm-Message-State: APjAAAVsePnY3Rf1KkKG0SaMstceCeX4ywmgIfk/eRRtZFjiCJ5ycWLm N58lxL1dbmo4O8lg1yD+NQltYVx3tbA= X-Received: by 2002:a17:906:b203:: with SMTP id p3mr19660586ejz.223.1562652920364; Mon, 08 Jul 2019 23:15:20 -0700 (PDT) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com. [209.85.221.47]) by smtp.gmail.com with ESMTPSA id q21sm3962635ejo.76.2019.07.08.23.15.18 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jul 2019 23:15:19 -0700 (PDT) Received: by mail-wr1-f47.google.com with SMTP id p13so408797wru.10 for ; Mon, 08 Jul 2019 23:15:18 -0700 (PDT) X-Received: by 2002:a5d:5012:: with SMTP id e18mr12159590wrt.166.1562652917666; Mon, 08 Jul 2019 23:15:17 -0700 (PDT) MIME-Version: 1.0 References: <20190620073505.33819-1-acourbot@chromium.org> In-Reply-To: <20190620073505.33819-1-acourbot@chromium.org> From: Tomasz Figa Date: Tue, 9 Jul 2019 15:15:05 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5] media: docs-rst: Document m2m stateless video decoder interface To: Alexandre Courbot Cc: Paul Kocialkowski , Maxime Ripard , Nicolas Dufresne , Hans Verkuil , Mauro Carvalho Chehab , Linux Media Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 20, 2019 at 4:35 PM Alexandre Courbot wrote: [snip] > +Initialization > +============== > + [snip] > +5. *[optional]* Choose a different ``CAPTURE`` format than suggested via > + :c:func:`VIDIOC_S_FMT` on ``CAPTURE`` queue. It is possible for the client to > + choose a different format than selected/suggested by the driver in > + :c:func:`VIDIOC_G_FMT`. > + > + * **Required fields:** > + > + ``type`` > + a ``V4L2_BUF_TYPE_*`` enum appropriate for ``CAPTURE``. > + > + ``pixelformat`` > + a raw pixel format. We should be able to set different width and height as well, to allow strided and padded frame buffers. Otherwise we wouldn't be able to import DMA-bufs allocated from some other sources. (FYI, I've posted a similar comment to the stateful interface too.) Best regards, Tomasz