Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp325142yba; Thu, 16 May 2019 01:10:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwk1wAzkcd/Z9GdFTd6bXYr0jpfFj/GLn1dtL9sF/UF/sHSmxwrAB8i1uBtsGeCnbxJxq4N X-Received: by 2002:a63:374b:: with SMTP id g11mr49621781pgn.421.1557994239499; Thu, 16 May 2019 01:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557994239; cv=none; d=google.com; s=arc-20160816; b=dyJJ4CuNGqX2IceaHo2NiRqoDMSbTDPlExbpcKIc8AzT59eU3y8uqT7UayzFi5b4Zr 4zjHyjVy5WspTBTfkKJXz2mROhJdL3yvJGKt5PJn8c/oifNJT9XZNg8epC6Cby6xuF0L EszqO2/VzbDV3Jvy/5Tbr3gHdVNWN0IHG5kmq1CfbEILkhFEZ7Cjuq30Ecc+TAZcoNtO Lj7w88I8/GVs/Pr7U61zhsQEToASQLzjB93BID7KLbG5kofYaxi2t2Vygx+VOC5XoiXk GpZMfpa2RRPt3facmisCE0tWBtEJ8O1CICLCYPL8f03LDUyN2VQhBzRZfk1r+8PdGtsU kJ4Q== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=QG++TdTDo8I5Y/kXuu9iUwjpqJr5RRm0pgh41ilp46o=; b=M5QmQ5XaZt9mZ2yulB63Ji+JGYqYscLSyDTT7I5ygsos5TtILXNG6Jb86JjNQR6vEj xWm8qfXbLavH4UbceV/Pfylnvsdp3MlKsLvBMb/0rbQX38zlVFOYXOBnOmaZLMN1IGRR Qvh7u1brrOAtHYB8LNdy8fkiI9HdlnoTffnf/5m3o5q4YxdvkgKy/3a2Md+z1EF2p3Wh xT9UxypLf5F0raTeiYYUoibJ98C/5qF4YMe22w0ybtpqxJId5vFaG2+hgZW6r/V6JuYM YFPftdy0MX9lovUiOJVScOR07kfEFsW2pqK0hY5MPJh7pbfluTZnr1ENBSzpWns3ONZq vCvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tNDLPnvn; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p16si4216222pgd.370.2019.05.16.01.10.22; Thu, 16 May 2019 01:10:39 -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=@linaro.org header.s=google header.b=tNDLPnvn; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726528AbfEPIJN (ORCPT + 99 others); Thu, 16 May 2019 04:09:13 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:37961 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726352AbfEPIJM (ORCPT ); Thu, 16 May 2019 04:09:12 -0400 Received: by mail-lj1-f195.google.com with SMTP id 14so2227689ljj.5 for ; Thu, 16 May 2019 01:09:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QG++TdTDo8I5Y/kXuu9iUwjpqJr5RRm0pgh41ilp46o=; b=tNDLPnvnICu0ql4vXKqwN3CRGatnx0hohbiBQksTPFRlycOEhBL9mmRtlSrl0WvP4m 5zPygpT9/5ERZlbeoASLFmzJEbC86DaiJfaH0i1Lh+1fs3N2G5qntqynVJcQ3pTl4pJV gr15uR4VXpg7kVk3+xzrBKa52YDFxsN3hgFKHOlVdfX8EVT409ScYKGl+oPBBDP1hBBV tAjgDKAKh158sX6emXiD4/jXaMySs429Zx5naJOtuAJOQJh3gqsPMs4zBuzS9KJDvXJd Rj/8nlgfm5eLdGBMKgZVIjS0Y2RKIBeSrRDML8H7bzG+Qvvg6KdvayevAXaiUw9AlSE5 u7LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QG++TdTDo8I5Y/kXuu9iUwjpqJr5RRm0pgh41ilp46o=; b=D3SIf78+m5dCHSl+lh/sW/VeoOczua2QuhMVBAJTzcEZKZVTwjkYwbASAU1p3Tfnkg 6X+XvugKwwk/MffHkonW4C+j6O4CmFara9/Don0WggrXdJ7VYF6uArDWtjhGzEkCArLa n3GSFXSCA6IfPWESK/2qYKbJMXfjba9+Le7wZxwZHTsjR9EK9li/q1YFpJ3u8V44v7Ra JnBT3XVRwcfpVKO8xqHv5H2xsFquFeb+X/7M2NMv7M4z1qJJdKTXZ9iRRjQZ6qkOaOme rYxsT3JgKa0CpH/M9TvJjGpnqW07PlE+xz/RQEnjQscZ8HraM5izgb/B6i7jzE3UEkZi 5VLA== X-Gm-Message-State: APjAAAX+P8xx0qy2zsds2pn8ixESeqy/Kk+rWrPPUFVlZK41w++nTtwJ F0S+MuOM9XYmIXSZIDzFctoEgw== X-Received: by 2002:a2e:9d4c:: with SMTP id y12mr23076244ljj.132.1557994150813; Thu, 16 May 2019 01:09:10 -0700 (PDT) Received: from [192.168.27.209] ([37.157.136.206]) by smtp.googlemail.com with ESMTPSA id k1sm938935lfc.18.2019.05.16.01.09.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 May 2019 01:09:09 -0700 (PDT) Subject: Re: [PATCH v2] media/doc: Allow sizeimage to be set by v4l clients To: Hans Verkuil , Stanimir Varbanov , linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Tomasz Figa References: <20190412155915.16849-1-stanimir.varbanov@linaro.org> From: Stanimir Varbanov Message-ID: Date: Thu, 16 May 2019 11:09:06 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hans, On 5/14/19 11:54 AM, Hans Verkuil wrote: > Hi Stanimir, > > On 4/12/19 5:59 PM, Stanimir Varbanov wrote: >> 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. > > I've been reconsidering this change. The sizeimage value in the format > is the minimum size a buffer should have in order to store the data of > an image of the width and height as described in the format. > > But there is nothing that prevents userspace from calling VIDIOC_CREATEBUFS > instead of VIDIOC_REQBUFS to allocate larger buffers. Sometimes CREATEBUFS cannot be implemented for a particular fw/hw. CC: Tomasz for his opinion. > > So do we really need this change? > > The more I think about this, the more uncomfortable I become with this change. > > Regards, > > Hans > -- regards, Stan