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: 155711 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp603731jaa; Wed, 16 Jan 2019 04:37:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN7RaIuqdTbClWUOrVNfmewDe/pXUZ09GapLQeOD+omC9b4oAUc7nEUVWbATqTSfopDTh/YD X-Received: by 2002:a65:64c8:: with SMTP id t8mr8614248pgv.31.1547642237694; Wed, 16 Jan 2019 04:37:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547642237; cv=none; d=google.com; s=arc-20160816; b=b52FgzptU3z0gmmtYH8ag5qmpVMxcuLdlt+5zmYjecWJ6N+fe7behLKtdgqQI32BAU apFaaof7Cb5lZb252+8BXSCHepJDqtRSyEzRneoDB2jf8IhE1VmdOxJq3tGjWoQziQsB YcL2taXeHewK0f868kzjug+xuFTRXfg5tWXWj20UBVAq4DLykmnKtZUg6TZu5++FEKMP rqSBHcAvUCMEwXDNwIgCICrVRXQCLIKWULGD+SFfpc3mrcbU9kYx5+ShUJ3oJ6pHCX1u 48rasNjC/f52wfBEV7EQRivq+3U95nlot+EvbvhrQW/SzepSnmAwsnCVgTIoIXsvbWYy x4VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=ug3e6os5jQU/1Xs40WCRERDqZndrU7H97ENHpqaYS2E=; b=LAkeLMiYYc7QOwOAvBbU1yy90ABk+mQOO5mcwnYupQ4jJ/GhMm7fig78X1blcXo7gl si/F6hPDvoGGEouuzfskRZtoBGD3iHBYEuEgY5DuruimUjTNT58ozpMsxQ5igZ3qTU1Y 1j+LthEaY6tpYm+ZW70XnbOpPj/S4JEFX2ZjlpK81C9uFUCaELDCzPMeIyWau7uxm31w RcqvDkVEhwsKoR5xz8noxzviG3mhLlfb674v70MyoYYuRGZmECOiiLxfe+DBjh5th0k2 xPgcH0c7sSgmQLc+lyStpXCi35YjQuhgC274gBp/SrPN1u6ss+6UuZzh16fkyXgmZ4hP v6Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=emXV4I1S; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r8si5969804pgr.252.2019.01.16.04.37.17; Wed, 16 Jan 2019 04:37:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=@linaro.org header.s=google header.b=emXV4I1S; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390201AbfAPMhQ (ORCPT + 15 others); 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-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 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(-) -- 2.17.1 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`.