From patchwork Wed Jan 16 12:37:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 10765873 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E160E6C2 for ; Wed, 16 Jan 2019 12:37:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D01622DA70 for ; Wed, 16 Jan 2019 12:37:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C2E672DBEC; Wed, 16 Jan 2019 12:37:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D80C2DA70 for ; Wed, 16 Jan 2019 12:37:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390201AbfAPMhQ (ORCPT ); Wed, 16 Jan 2019 07:37:16 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:40011 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732893AbfAPMhQ (ORCPT ); Wed, 16 Jan 2019 07:37:16 -0500 Received: by mail-wm1-f68.google.com with SMTP id f188so1803375wmf.5 for ; Wed, 16 Jan 2019 04:37:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ug3e6os5jQU/1Xs40WCRERDqZndrU7H97ENHpqaYS2E=; b=emXV4I1SuCbX9VI163mNmQxjot37j8GeK/s+BjfRrArDVlVnWFejYp8xkt+sdKOuZl /KdjvfGcKsA8MFci7e+NQ7zY+uRyuCcvXc566PK9OiPfLB8XJzjGuRaBz4ovxKj6YZuT bRD53LepgG6WSeB1pa+LQP32cYNOyEfwvmaTc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ug3e6os5jQU/1Xs40WCRERDqZndrU7H97ENHpqaYS2E=; b=rkczcbbiMrU65w5uh0LKfubqA+8WSm7IuYWvVN4EBOHxAfyE+HEqtFjW8ys4+7lCxZ cNb3n2GqiEu8EGXfNo1Jbs8Mu3fLUIpX/PUuTosoiJKWuPxQxu4Zf916j7/mPS8pIZ/4 4NUqZ3xVaYOsigGrgUm5YwSSuGkpHTAkcCWHqHVx6TpDyMZ8ZhDG2WFsBTVF3HdHh5TM wLngvDIUUZ10SoAMvqbgwN18H4SAMMq0u6RxghRFEGG9MjiAzBrCiON835W7N0K5v9RW kGkaOi5mjD0YYEGXOlno4Xl6WayJWIdlb5sJ53AGmSLFNSFgISTABRjZeZ6WhscNIvCL 0TRw== X-Gm-Message-State: AJcUukf1YzRG3De29tBSdRsdIQNe8zYEaugA+4SCvIpTyYXeJP8ZAQIN vfIXm+57mM6oY1vYtDfleWB/LA== X-Google-Smtp-Source: ALg8bN7zC0XHxXR2PX4G8EkLjLzfoxieUQH+pYYO88qou9obnTRdCtwFJRw1I8YcgTLVIPxsXM1E2g== X-Received: by 2002:a1c:410b:: with SMTP id o11mr7502319wma.109.1547642234739; Wed, 16 Jan 2019 04:37:14 -0800 (PST) Received: from localhost.localdomain ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id x20sm49382682wme.6.2019.01.16.04.37.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 04:37:13 -0800 (PST) From: Stanimir Varbanov To: linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , Hans Verkuil , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vikash Garodia , Tomasz Figa , Alexandre Courbot , Malathi Gottam , Stanimir Varbanov Subject: [RFC PATCH] media/doc: Allow sizeimage to be set by v4l clients Date: Wed, 16 Jan 2019 14:37:01 +0200 Message-Id: <20190116123701.10344-1-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This changes v4l2_pix_format and v4l2_plane_pix_format sizeimage field description to allow v4l clients to set bigger image size in case of variable length compressed data. Signed-off-by: Stanimir Varbanov --- Documentation/media/uapi/v4l/pixfmt-v4l2-mplane.rst | 5 ++++- Documentation/media/uapi/v4l/pixfmt-v4l2.rst | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/media/uapi/v4l/pixfmt-v4l2-mplane.rst b/Documentation/media/uapi/v4l/pixfmt-v4l2-mplane.rst index 7f82dad9013a..dbe0b74e9ba4 100644 --- a/Documentation/media/uapi/v4l/pixfmt-v4l2-mplane.rst +++ b/Documentation/media/uapi/v4l/pixfmt-v4l2-mplane.rst @@ -30,7 +30,10 @@ describing all planes of that format. * - __u32 - ``sizeimage`` - - Maximum size in bytes required for image data in this plane. + - Maximum size in bytes required for image data in this plane, + set by the driver. When the image consists of variable length + compressed data this is the maximum number of bytes required + to hold an image, and it is allowed to be set by the client. * - __u32 - ``bytesperline`` - Distance in bytes between the leftmost pixels in two adjacent diff --git a/Documentation/media/uapi/v4l/pixfmt-v4l2.rst b/Documentation/media/uapi/v4l/pixfmt-v4l2.rst index 71eebfc6d853..54b6d2b67bd7 100644 --- a/Documentation/media/uapi/v4l/pixfmt-v4l2.rst +++ b/Documentation/media/uapi/v4l/pixfmt-v4l2.rst @@ -89,7 +89,8 @@ Single-planar format structure - Size in bytes of the buffer to hold a complete image, set by the driver. Usually this is ``bytesperline`` times ``height``. When the image consists of variable length compressed data this is the - maximum number of bytes required to hold an image. + maximum number of bytes required to hold an image, and it is + allowed to be set by the client. * - __u32 - ``colorspace`` - Image colorspace, from enum :c:type:`v4l2_colorspace`.