[{"id":757,"web_url":"https://patchwork.libcamera.org/comment/757/","msgid":"<9f7c2abe-fa5a-d5fa-566d-847d7798896c@ideasonboard.com>","date":"2019-02-04T19:08:25","subject":"Re: [libcamera-devel] [PATCH 1/2] libcamera: streams: extend stream\n\tconfiguration with buffer count","submitter":{"id":4,"url":"https://patchwork.libcamera.org/api/people/4/","name":"Kieran Bingham","email":"kieran.bingham@ideasonboard.com"},"content":"Hi Niklas,\n\nOn 04/02/2019 19:55, Niklas Söderlund wrote:\n> The camera needs to be configured with the number of buffers to use to\n> satisfy the application use-case. While it's free for the application to> request any number of buffers the pipeline needs to take the Linux\n> drivers constraints into consideration.\n\nSome minor rewording, it was easier to write out the paragraph: This is\nhow I would phrase it:\n\n\nThe camera needs to be configured with the number of buffers required to\nsatisfy the applications use case. While the application can request any\nnumber of buffers, the pipeline must take the constraints of the Linux\ndriver into consideration.\n\n\n\n\n\n> \n> Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\n\nReviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n\n\n\n> ---\n>  include/libcamera/stream.h | 2 ++\n>  src/libcamera/stream.cpp   | 5 +++++\n>  2 files changed, 7 insertions(+)\n> \n> diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h\n> index 4b24dd841dd64b64..890678360ee87fd7 100644\n> --- a/include/libcamera/stream.h\n> +++ b/include/libcamera/stream.h\n> @@ -17,6 +17,8 @@ struct StreamConfiguration {\n>  \tunsigned int width;\n>  \tunsigned int height;\n>  \tunsigned int pixelFormat;\n> +\n> +\tunsigned int bufferCount;\n>  };\n>  \n>  } /* namespace libcamera */\n> diff --git a/src/libcamera/stream.cpp b/src/libcamera/stream.cpp\n> index b0b4efe39c81e747..5ebdce9acdbd3560 100644\n> --- a/src/libcamera/stream.cpp\n> +++ b/src/libcamera/stream.cpp\n> @@ -73,4 +73,9 @@ namespace libcamera {\n>   * format described in V4L2 using the V4L2_PIX_FMT_* definitions.\n>   */\n>  \n> +/**\n> + * \\var StreamConfiguration::bufferCount\n> + * \\brief Number of buffers to allocate for the stream\n\nThis is fine - but do we need to say this is a 'request'?:\n\n\"Requested number of buffers to allocate for the stream\"\n\nEither way is fine with me.\n\n--\nKieran\n\n\n> + */\n> +\n>  } /* namespace libcamera */\n>","headers":{"Return-Path":"<kieran.bingham@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 93CBE60B2D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  4 Feb 2019 20:08:29 +0100 (CET)","from [192.168.0.245] (d51A4137F.access.telenet.be [81.164.19.127])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 089EB41;\n\tMon,  4 Feb 2019 20:08:28 +0100 (CET)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1549307309;\n\tbh=vdnIEk/qI+qQPWB50RitolUpMQdI6YmhyEHPfvUo/5w=;\n\th=Reply-To:Subject:To:References:From:Date:In-Reply-To:From;\n\tb=WEwGioFwnaUs4VCBvGu5u7al9jGCvJjJ3TjZbDl6dHvGN6uq4Yo/ITtmmp0Rtrytm\n\tqSzrNVAaNhDbdaTfC+yoQGHi0Bsl0PxDL/bM8AhZ2oOb5IXPxYyeeVfPOJKEK6f6V8\n\tYv1ef9JXktHFjo9OOYZIfwCG5lbsPjWqJYohtBSM=","Reply-To":"kieran.bingham@ideasonboard.com","To":"=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>,\n\tlibcamera-devel@lists.libcamera.org","References":"<20190204185521.23471-1-niklas.soderlund@ragnatech.se>\n\t<20190204185521.23471-2-niklas.soderlund@ragnatech.se>","From":"Kieran Bingham <kieran.bingham@ideasonboard.com>","Openpgp":"preference=signencrypt","Autocrypt":"addr=kieran.bingham@ideasonboard.com; keydata=\n\tmQINBFYE/WYBEACs1PwjMD9rgC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on, 4 Feb 2019 20:08:25 +0100","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101\n\tThunderbird/60.4.0","MIME-Version":"1.0","In-Reply-To":"<20190204185521.23471-2-niklas.soderlund@ragnatech.se>","Content-Type":"text/plain; charset=utf-8","Content-Language":"en-GB","Content-Transfer-Encoding":"8bit","Subject":"Re: [libcamera-devel] [PATCH 1/2] libcamera: streams: extend stream\n\tconfiguration with buffer count","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Mon, 04 Feb 2019 19:08:29 -0000"}},{"id":759,"web_url":"https://patchwork.libcamera.org/comment/759/","msgid":"<20190204193121.GB16152@bigcity.dyn.berto.se>","date":"2019-02-04T19:31:21","subject":"Re: [libcamera-devel] [PATCH 1/2] libcamera: streams: extend stream\n\tconfiguration with buffer count","submitter":{"id":5,"url":"https://patchwork.libcamera.org/api/people/5/","name":"Niklas Söderlund","email":"niklas.soderlund@ragnatech.se"},"content":"Hi Kieran,\n\nThanks for your feedback.\n\nOn 2019-02-04 20:08:25 +0100, Kieran Bingham wrote:\n> Hi Niklas,\n> \n> On 04/02/2019 19:55, Niklas Söderlund wrote:\n> > The camera needs to be configured with the number of buffers to use to\n> > satisfy the application use-case. While it's free for the application to> request any number of buffers the pipeline needs to take the Linux\n> > drivers constraints into consideration.\n> \n> Some minor rewording, it was easier to write out the paragraph: This is\n> how I would phrase it:\n> \n> \n> The camera needs to be configured with the number of buffers required to\n> satisfy the applications use case. While the application can request any\n> number of buffers, the pipeline must take the constraints of the Linux\n> driver into consideration.\n> \n> \n> \n> \n> \n> > \n> > Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\n> \n> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n\nI incorporated your comments to this patch and merged this series to \nmaster.\n\n> \n> \n> \n> > ---\n> >  include/libcamera/stream.h | 2 ++\n> >  src/libcamera/stream.cpp   | 5 +++++\n> >  2 files changed, 7 insertions(+)\n> > \n> > diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h\n> > index 4b24dd841dd64b64..890678360ee87fd7 100644\n> > --- a/include/libcamera/stream.h\n> > +++ b/include/libcamera/stream.h\n> > @@ -17,6 +17,8 @@ struct StreamConfiguration {\n> >  \tunsigned int width;\n> >  \tunsigned int height;\n> >  \tunsigned int pixelFormat;\n> > +\n> > +\tunsigned int bufferCount;\n> >  };\n> >  \n> >  } /* namespace libcamera */\n> > diff --git a/src/libcamera/stream.cpp b/src/libcamera/stream.cpp\n> > index b0b4efe39c81e747..5ebdce9acdbd3560 100644\n> > --- a/src/libcamera/stream.cpp\n> > +++ b/src/libcamera/stream.cpp\n> > @@ -73,4 +73,9 @@ namespace libcamera {\n> >   * format described in V4L2 using the V4L2_PIX_FMT_* definitions.\n> >   */\n> >  \n> > +/**\n> > + * \\var StreamConfiguration::bufferCount\n> > + * \\brief Number of buffers to allocate for the stream\n> \n> This is fine - but do we need to say this is a 'request'?:\n> \n> \"Requested number of buffers to allocate for the stream\"\n> \n> Either way is fine with me.\n> \n> --\n> Kieran\n> \n> \n> > + */\n> > +\n> >  } /* namespace libcamera */\n> > \n> \n> -- \n> Regards\n> --\n> Kieran","headers":{"Return-Path":"<niklas.soderlund@ragnatech.se>","Received":["from mail-lj1-x243.google.com (mail-lj1-x243.google.com\n\t[IPv6:2a00:1450:4864:20::243])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 6091260DB4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  4 Feb 2019 20:31:24 +0100 (CET)","by mail-lj1-x243.google.com with SMTP id v1-v6so929046ljd.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 04 Feb 2019 11:31:24 -0800 (PST)","from localhost (89-233-230-99.cust.bredband2.com. [89.233.230.99])\n\tby smtp.gmail.com with ESMTPSA id\n\tm199sm1064414lfg.16.2019.02.04.11.31.22\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tMon, 04 Feb 2019 11:31:22 -0800 (PST)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=ragnatech-se.20150623.gappssmtp.com; s=20150623;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:content-transfer-encoding:in-reply-to\n\t:user-agent; bh=SX/OJ88n2f6U7Anqh8qZDLiVf2YNlra/te32kfrK0Wo=;\n\tb=jyomfEHiz2ZY0tSVn1Mpf1LU5iCipZd9J66Ilrgzgk0v9vexlE6EDhhuB3GncAHSYL\n\tIvdjT7r/K772k4uzh4Jp2N8M5d6hfiHLs0lEgOtcqBoVoGj2/STV79dcHgNzT12iO7Ye\n\tCzQpjZPruWhbjs34KvQ4MtwEYvC+ZNAgChwRxYH5pMQWRzw/j0jbDJRb5G7wzNWNpxxb\n\twuWc9sUseGGnhhNivNBvDzDdv4S77czEiEyzJ4LRshJllms3ldkhlPWV8BAM70V6fZqA\n\tICb7RhFWq3r97s0JDhGqyZa5peUxs3HnMsvFTBt2UJgkf5nnqZ9tcF0dmemgLmUpiOo+\n\tDgag==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:content-transfer-encoding\n\t:in-reply-to:user-agent;\n\tbh=SX/OJ88n2f6U7Anqh8qZDLiVf2YNlra/te32kfrK0Wo=;\n\tb=jbjkSb3WWra0/ClXdmXcE3gYnhY1/FQN3x3sJgifwE6wNQ2SOZGJnDSud86JoGTx1g\n\tLXSp7a+rfyAJJceiuRoywdaQutlcn045GZiY3KqnpOkl1kGZr6VEf/0DKp8AZ8bO3LAR\n\trIw2ONZLpDEGA0yuaMwzAdCbjf3ywAH0Ecc1ylNxYc+GGrsYwct8sSqCnSKcbsdT5X3z\n\tJAeuRbJgUuydBB0ZcGFVd2LXRp7POZyh49w0OzbaKeMuJrK8RZF4/aQCTim7oG9zlry8\n\tf7s7Nez5Kx10W9HKXH7Ye52+lCpaqL7oVvPrDlqm1bSoZWKztoXb4pyzG+kRQzFKvdWJ\n\tBalA==","X-Gm-Message-State":"AHQUAuYMeYN/CQ2hK2vMqbDPpvvufr5PWEdaNN7ZBM49L/MDj/yUfxCx\n\tricYpX3eGBUtL4krH9bn1MOA+WtPWDE=","X-Google-Smtp-Source":"AHgI3IamDeMkI5OPJTaB7T71zqOMW60OvIkoOFV4FiYxb9qd5COwb4gnRp0Ooo1ivWOfdz6ZfExGzg==","X-Received":"by 2002:a05:651c:c8:: with SMTP id 8mr581295ljr.53.1549308683368;\n\tMon, 04 Feb 2019 11:31:23 -0800 (PST)","Date":"Mon, 4 Feb 2019 20:31:21 +0100","From":"Niklas =?iso-8859-1?q?S=F6derlund?= <niklas.soderlund@ragnatech.se>","To":"Kieran Bingham <kieran.bingham@ideasonboard.com>","Cc":"libcamera-devel@lists.libcamera.org","Message-ID":"<20190204193121.GB16152@bigcity.dyn.berto.se>","References":"<20190204185521.23471-1-niklas.soderlund@ragnatech.se>\n\t<20190204185521.23471-2-niklas.soderlund@ragnatech.se>\n\t<9f7c2abe-fa5a-d5fa-566d-847d7798896c@ideasonboard.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=iso-8859-1","Content-Disposition":"inline","Content-Transfer-Encoding":"8bit","In-Reply-To":"<9f7c2abe-fa5a-d5fa-566d-847d7798896c@ideasonboard.com>","User-Agent":"Mutt/1.10.1 (2018-07-13)","Subject":"Re: [libcamera-devel] [PATCH 1/2] libcamera: streams: extend stream\n\tconfiguration with buffer count","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Mon, 04 Feb 2019 19:31:24 -0000"}}]