Re: [PATCH v4 2/6] media: Add video statistics computation functions

2016-05-23 Thread Hans Verkuil
On 05/20/2016 01:40 AM, Laurent Pinchart wrote:
> The video statistics function describes entities such as video histogram
> engines or 3A statistics engines.
> 
> Signed-off-by: Laurent Pinchart 

Acked-by: Hans Verkuil 

Regards,

Hans

> ---
>  Documentation/DocBook/media/v4l/media-types.xml | 9 +
>  include/uapi/linux/media.h  | 1 +
>  2 files changed, 10 insertions(+)
> 
> diff --git a/Documentation/DocBook/media/v4l/media-types.xml 
> b/Documentation/DocBook/media/v4l/media-types.xml
> index 60fe841f8846..95aa1f9c836a 100644
> --- a/Documentation/DocBook/media/v4l/media-types.xml
> +++ b/Documentation/DocBook/media/v4l/media-types.xml
> @@ -176,6 +176,15 @@
>  skipping are considered as scaling.
>   
> 
> +   
> + 
> MEDIA_ENT_F_PROC_VIDEO_STATISTICS
> + Video statistics computation (histogram, 3A, ...). An entity
> +capable of statistics computation must have one sink pad and
> +one source pad. It computes statistics over the frames
> +received on its sink pad and outputs the statistics data on
> +its source pad.
> + 
> +   
>   
>
>  
> diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h
> index bff3ffdfd55f..4580328c4093 100644
> --- a/include/uapi/linux/media.h
> +++ b/include/uapi/linux/media.h
> @@ -103,6 +103,7 @@ struct media_device_info {
>  #define MEDIA_ENT_F_PROC_VIDEO_PIXEL_ENC_CONV(MEDIA_ENT_F_BASE + 
> 0x4003)
>  #define MEDIA_ENT_F_PROC_VIDEO_LUT   (MEDIA_ENT_F_BASE + 0x4004)
>  #define MEDIA_ENT_F_PROC_VIDEO_SCALER(MEDIA_ENT_F_BASE + 
> 0x4005)
> +#define MEDIA_ENT_F_PROC_VIDEO_STATISTICS(MEDIA_ENT_F_BASE + 0x4006)
>  
>  /*
>   * Connectors
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH v4 2/6] media: Add video statistics computation functions

2016-05-19 Thread Laurent Pinchart
The video statistics function describes entities such as video histogram
engines or 3A statistics engines.

Signed-off-by: Laurent Pinchart 
---
 Documentation/DocBook/media/v4l/media-types.xml | 9 +
 include/uapi/linux/media.h  | 1 +
 2 files changed, 10 insertions(+)

diff --git a/Documentation/DocBook/media/v4l/media-types.xml 
b/Documentation/DocBook/media/v4l/media-types.xml
index 60fe841f8846..95aa1f9c836a 100644
--- a/Documentation/DocBook/media/v4l/media-types.xml
+++ b/Documentation/DocBook/media/v4l/media-types.xml
@@ -176,6 +176,15 @@
   skipping are considered as scaling.

  
+ 
+   
MEDIA_ENT_F_PROC_VIDEO_STATISTICS
+   Video statistics computation (histogram, 3A, ...). An entity
+  capable of statistics computation must have one sink pad and
+  one source pad. It computes statistics over the frames
+  received on its sink pad and outputs the statistics data on
+  its source pad.
+   
+ 

   
 
diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h
index bff3ffdfd55f..4580328c4093 100644
--- a/include/uapi/linux/media.h
+++ b/include/uapi/linux/media.h
@@ -103,6 +103,7 @@ struct media_device_info {
 #define MEDIA_ENT_F_PROC_VIDEO_PIXEL_ENC_CONV  (MEDIA_ENT_F_BASE + 0x4003)
 #define MEDIA_ENT_F_PROC_VIDEO_LUT (MEDIA_ENT_F_BASE + 0x4004)
 #define MEDIA_ENT_F_PROC_VIDEO_SCALER  (MEDIA_ENT_F_BASE + 0x4005)
+#define MEDIA_ENT_F_PROC_VIDEO_STATISTICS  (MEDIA_ENT_F_BASE + 0x4006)
 
 /*
  * Connectors
-- 
2.7.3

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html