#ifndef __ABANDCLIP_STRATEGY_H #define __ABANDCLIP_STRATEGY_H #include "Strategy.h" #include "AbandClipCfg.h" NAMESPACE_MAS_BEGIN NAMESPACE_ABANDCLIP_BEGIN class AbandClipStrategy : public Strategy { public: AbandClipStrategy (); virtual ~AbandClipStrategy(); virtual TZ_INT Initialize(); virtual TZ_INT Dispose(); virtual TZ_INT SetStrategyCfg(const std::string & param); virtual TZ_INT DoStrategy(SPtr & streamInfo); private: TZ_DOUBLE m_featureThreshold; std::vector m_textFeatureList; std::queue m_qClipQueue; std::queue m_qAbandClipQueue; tzc::Mutex m_clipLock; tzc::Mutex m_abandClipLock; TZ_FLOAT calculateDotProduct(const std::vector& matrix1, const std::vector& matrix2); }; NAMESPACE_ABANDCLIP_END NAMESPACE_MAS_END #endif