linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] media: staging: ipu3-imgu: clarify the limitation of grid config
@ 2021-10-18  2:48 Bingbu Cao
  2021-10-19 10:21 ` Kieran Bingham
  0 siblings, 1 reply; 3+ messages in thread
From: Bingbu Cao @ 2021-10-18  2:48 UTC (permalink / raw)
  To: linux-media, sakari.ailus, laurent.pinchart
  Cc: tfiga, bingbu.cao, bingbu.cao, jeanmichel.hautbois

There are some grid configuration limitations for ImgU, which was
not described clearly in current uAPI header file, add the description
to help user to set the grid configuration correctly.

Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 drivers/staging/media/ipu3/include/uapi/intel-ipu3.h | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/media/ipu3/include/uapi/intel-ipu3.h b/drivers/staging/media/ipu3/include/uapi/intel-ipu3.h
index fa3d6ee5adf2..6d3ebb880a64 100644
--- a/drivers/staging/media/ipu3/include/uapi/intel-ipu3.h
+++ b/drivers/staging/media/ipu3/include/uapi/intel-ipu3.h
@@ -34,11 +34,17 @@
  * struct ipu3_uapi_grid_config - Grid plane config
  *
  * @width:	Grid horizontal dimensions, in number of grid blocks(cells).
+ *		For AWB, the range is (16, 80).
+ *		For AF/AE, the range is (16, 32).
  * @height:	Grid vertical dimensions, in number of grid cells.
+ *		For AWB, the range is (16, 60).
+ *		For AF/AE, the range is (16, 24).
  * @block_width_log2:	Log2 of the width of each cell in pixels.
- *			for (2^3, 2^4, 2^5, 2^6, 2^7), values [3, 7].
+ *			For AWB, the range is [3, 6].
+ *			For AF/AE, the range is [3, 7].
  * @block_height_log2:	Log2 of the height of each cell in pixels.
- *			for (2^3, 2^4, 2^5, 2^6, 2^7), values [3, 7].
+ *			For AWB, the range is [3, 6].
+ *			For AF/AE, the range is [3, 7].
  * @height_per_slice:	The number of blocks in vertical axis per slice.
  *			Default 2.
  * @x_start: X value of top left corner of Region of Interest(ROI).
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] media: staging: ipu3-imgu: clarify the limitation of grid config
  2021-10-18  2:48 [PATCH v2] media: staging: ipu3-imgu: clarify the limitation of grid config Bingbu Cao
@ 2021-10-19 10:21 ` Kieran Bingham
  2021-10-19 12:10   ` Jean-Michel Hautbois
  0 siblings, 1 reply; 3+ messages in thread
From: Kieran Bingham @ 2021-10-19 10:21 UTC (permalink / raw)
  To: Bingbu Cao, laurent.pinchart, linux-media, sakari.ailus
  Cc: tfiga, bingbu.cao, bingbu.cao, jeanmichel.hautbois

Quoting Bingbu Cao (2021-10-18 03:48:15)
> There are some grid configuration limitations for ImgU, which was
> not described clearly in current uAPI header file, add the description
> to help user to set the grid configuration correctly.
> 
> Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>

> ---
>  drivers/staging/media/ipu3/include/uapi/intel-ipu3.h | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/media/ipu3/include/uapi/intel-ipu3.h b/drivers/staging/media/ipu3/include/uapi/intel-ipu3.h
> index fa3d6ee5adf2..6d3ebb880a64 100644
> --- a/drivers/staging/media/ipu3/include/uapi/intel-ipu3.h
> +++ b/drivers/staging/media/ipu3/include/uapi/intel-ipu3.h
> @@ -34,11 +34,17 @@
>   * struct ipu3_uapi_grid_config - Grid plane config
>   *
>   * @width:     Grid horizontal dimensions, in number of grid blocks(cells).
> + *             For AWB, the range is (16, 80).
> + *             For AF/AE, the range is (16, 32).
>   * @height:    Grid vertical dimensions, in number of grid cells.
> + *             For AWB, the range is (16, 60).
> + *             For AF/AE, the range is (16, 24).
>   * @block_width_log2:  Log2 of the width of each cell in pixels.
> - *                     for (2^3, 2^4, 2^5, 2^6, 2^7), values [3, 7].
> + *                     For AWB, the range is [3, 6].
> + *                     For AF/AE, the range is [3, 7].
>   * @block_height_log2: Log2 of the height of each cell in pixels.
> - *                     for (2^3, 2^4, 2^5, 2^6, 2^7), values [3, 7].
> + *                     For AWB, the range is [3, 6].
> + *                     For AF/AE, the range is [3, 7].
>   * @height_per_slice:  The number of blocks in vertical axis per slice.
>   *                     Default 2.
>   * @x_start: X value of top left corner of Region of Interest(ROI).
> -- 
> 2.7.4
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] media: staging: ipu3-imgu: clarify the limitation of grid config
  2021-10-19 10:21 ` Kieran Bingham
@ 2021-10-19 12:10   ` Jean-Michel Hautbois
  0 siblings, 0 replies; 3+ messages in thread
From: Jean-Michel Hautbois @ 2021-10-19 12:10 UTC (permalink / raw)
  To: Kieran Bingham, Bingbu Cao, laurent.pinchart, linux-media, sakari.ailus
  Cc: tfiga, bingbu.cao

Hi Bingbu !

On 19/10/2021 12:21, Kieran Bingham wrote:
> Quoting Bingbu Cao (2021-10-18 03:48:15)
>> There are some grid configuration limitations for ImgU, which was
>> not described clearly in current uAPI header file, add the description
>> to help user to set the grid configuration correctly.
>>
>> Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
>> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> 
> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>

Thanks a lot, it helps :-) !

Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
> 
>> ---
>>   drivers/staging/media/ipu3/include/uapi/intel-ipu3.h | 10 ++++++++--
>>   1 file changed, 8 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/staging/media/ipu3/include/uapi/intel-ipu3.h b/drivers/staging/media/ipu3/include/uapi/intel-ipu3.h
>> index fa3d6ee5adf2..6d3ebb880a64 100644
>> --- a/drivers/staging/media/ipu3/include/uapi/intel-ipu3.h
>> +++ b/drivers/staging/media/ipu3/include/uapi/intel-ipu3.h
>> @@ -34,11 +34,17 @@
>>    * struct ipu3_uapi_grid_config - Grid plane config
>>    *
>>    * @width:     Grid horizontal dimensions, in number of grid blocks(cells).
>> + *             For AWB, the range is (16, 80).
>> + *             For AF/AE, the range is (16, 32).
>>    * @height:    Grid vertical dimensions, in number of grid cells.
>> + *             For AWB, the range is (16, 60).
>> + *             For AF/AE, the range is (16, 24).
>>    * @block_width_log2:  Log2 of the width of each cell in pixels.
>> - *                     for (2^3, 2^4, 2^5, 2^6, 2^7), values [3, 7].
>> + *                     For AWB, the range is [3, 6].
>> + *                     For AF/AE, the range is [3, 7].
>>    * @block_height_log2: Log2 of the height of each cell in pixels.
>> - *                     for (2^3, 2^4, 2^5, 2^6, 2^7), values [3, 7].
>> + *                     For AWB, the range is [3, 6].
>> + *                     For AF/AE, the range is [3, 7].
>>    * @height_per_slice:  The number of blocks in vertical axis per slice.
>>    *                     Default 2.
>>    * @x_start: X value of top left corner of Region of Interest(ROI).
>> -- 
>> 2.7.4
>>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-19 12:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-18  2:48 [PATCH v2] media: staging: ipu3-imgu: clarify the limitation of grid config Bingbu Cao
2021-10-19 10:21 ` Kieran Bingham
2021-10-19 12:10   ` Jean-Michel Hautbois

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).