[v1,3/4] libcamera: controls: Add missing size to control_type<Point>
diff mbox series

Message ID 20241015203820.574326-4-stefan.klug@ideasonboard.com
State Accepted
Headers show
Series
  • A few small fixes
Related show

Commit Message

Stefan Klug Oct. 15, 2024, 8:38 p.m. UTC
The size member is missing in control_type<Point>. Add it.

Fixes: 200d535ca85f ("libcamera: controls: Add ControlTypePoint")
Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
---
 include/libcamera/controls.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Kieran Bingham Oct. 16, 2024, 2:22 p.m. UTC | #1
Quoting Stefan Klug (2024-10-15 21:38:14)
> The size member is missing in control_type<Point>. Add it.
> 
> Fixes: 200d535ca85f ("libcamera: controls: Add ControlTypePoint")
> Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>


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

> ---
>  include/libcamera/controls.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h
> index ca60bbacad17..28fec767fae1 100644
> --- a/include/libcamera/controls.h
> +++ b/include/libcamera/controls.h
> @@ -101,6 +101,7 @@ struct control_type<Size> {
>  template<>
>  struct control_type<Point> {
>         static constexpr ControlType value = ControlTypePoint;
> +       static constexpr std::size_t size = 0;
>  };
>  
>  template<typename T, std::size_t N>
> -- 
> 2.43.0
>
Laurent Pinchart Oct. 16, 2024, 2:40 p.m. UTC | #2
Hi Stefan,

Thank you for the patch.

On Tue, Oct 15, 2024 at 10:38:14PM +0200, Stefan Klug wrote:
> The size member is missing in control_type<Point>. Add it.

You may want to describe here what issue(s) this causes.

> Fixes: 200d535ca85f ("libcamera: controls: Add ControlTypePoint")
> Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  include/libcamera/controls.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h
> index ca60bbacad17..28fec767fae1 100644
> --- a/include/libcamera/controls.h
> +++ b/include/libcamera/controls.h
> @@ -101,6 +101,7 @@ struct control_type<Size> {
>  template<>
>  struct control_type<Point> {
>  	static constexpr ControlType value = ControlTypePoint;
> +	static constexpr std::size_t size = 0;
>  };
>  
>  template<typename T, std::size_t N>
Paul Elder Oct. 17, 2024, 1:32 a.m. UTC | #3
On Tue, Oct 15, 2024 at 10:38:14PM +0200, Stefan Klug wrote:
> The size member is missing in control_type<Point>. Add it.

Oops.

Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>

> 
> Fixes: 200d535ca85f ("libcamera: controls: Add ControlTypePoint")
> Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
> ---
>  include/libcamera/controls.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h
> index ca60bbacad17..28fec767fae1 100644
> --- a/include/libcamera/controls.h
> +++ b/include/libcamera/controls.h
> @@ -101,6 +101,7 @@ struct control_type<Size> {
>  template<>
>  struct control_type<Point> {
>  	static constexpr ControlType value = ControlTypePoint;
> +	static constexpr std::size_t size = 0;
>  };
>  
>  template<typename T, std::size_t N>
> -- 
> 2.43.0
>

Patch
diff mbox series

diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h
index ca60bbacad17..28fec767fae1 100644
--- a/include/libcamera/controls.h
+++ b/include/libcamera/controls.h
@@ -101,6 +101,7 @@  struct control_type<Size> {
 template<>
 struct control_type<Point> {
 	static constexpr ControlType value = ControlTypePoint;
+	static constexpr std::size_t size = 0;
 };
 
 template<typename T, std::size_t N>