[media] media: Add video statistics computation functions
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 2 Mar 2016 00:12:27 +0000 (21:12 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 28 Jun 2016 15:06:20 +0000 (12:06 -0300)
The video statistics function describes entities such as video histogram
engines or 3A statistics engines.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Documentation/DocBook/media/v4l/media-types.xml
include/uapi/linux/media.h

index 60fe841f8846557f9d0d146c26965c95713a1a90..95aa1f9c836a057fb1cc5361c5a0733b44b37a03 100644 (file)
                   skipping are considered as scaling.
            </entry>
          </row>
+         <row>
+           <entry><constant>MEDIA_ENT_F_PROC_VIDEO_STATISTICS</constant></entry>
+           <entry>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.
+           </entry>
+         </row>
        </tbody>
       </tgroup>
     </table>
index 3136686c4bd02930375d67465e8f3aebb09f60e2..7acf0f634f707695ada24dfd2bb45a335be1acc2 100644 (file)
@@ -102,6 +102,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