[Libva] [PATCH] VPP: Add scene change detection filter definition

Li,Xiaowei xiaowei.a.li at intel.com
Wed Oct 17 10:35:56 PDT 2012


From: "Li,Xiaowei" <xiaowei.a.li at intel.com>

Signed-off-by: Li,Xiaowei A <xiaowei.a.li at intel.com>
---
 va/va_vpp.h | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/va/va_vpp.h b/va/va_vpp.h
index edc108a..a237d1b 100644
--- a/va/va_vpp.h
+++ b/va/va_vpp.h
@@ -251,6 +251,8 @@ typedef enum _VAProcFilterType {
     VAProcFilterColorStandard,
     /** \brief Frame rate conversion. */
     VAProcFilterFrameRateConversion,
+    /** \brief Scene change detection. */
+    VAProcFilterSceneChangeDetection,
     /** \brief Number of video filters. */
     VAProcFilterCount
 } VAProcFilterType;
@@ -634,6 +636,21 @@ typedef struct _VAProcFilterParamterBufferFrameRateConversion {
     VASurfaceID* output_frames;
 } VAProcFilterParameterBufferFrameRateConversion;
 
+/** \brief Scene change detection filter parameterization. */
+typedef struct _VAProcFilterParameterBufferSceneChangeDetection {
+    /** \brief Filter type. Shall be set to #VAProcFilterSceneChangeDetection. */
+    VAProcFilterType            type;
+    /**
+     *  \brief The threshold to be used to judge whether a new scene start.
+     *  When the similarity of current and preview frame features exceed
+     *  the threshold, the current frame will be judged as a new scene. 
+     *  This value should be in range of 0.0 to 1.0 .
+    */
+    float                       similarity_threshold;
+    /** \brief output the detection result, 1 for scene changed, 0 for not. */
+    unsigned int                is_scene_changed;
+} VAProcFilterParameterBufferSceneChangeDetection;
+
 /**
  * \brief Default filter cap specification (single range value).
  *
-- 
1.7.12-rc1



More information about the Libva mailing list