HeadCountStrategy.h 734 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef __HEADCOUNT_STRATEGY_H
  2. #define __HEADCOUNT_STRATEGY_H
  3. #include "Strategy.h"
  4. #include "HeadCountCfg.h"
  5. #include "YoloCrowdCfg.h"
  6. NAMESPACE_MAS_BEGIN
  7. NAMESPACE_HEADCOUNT_BEGIN
  8. class HeadCountStrategy : public Strategy {
  9. public:
  10. HeadCountStrategy ();
  11. virtual ~HeadCountStrategy();
  12. virtual TZ_INT Initialize();
  13. virtual TZ_INT Dispose();
  14. virtual TZ_INT SetStrategyCfg(const std::string & param);
  15. virtual TZ_INT DoStrategy(SPtr<StreamInfo> & streamInfo);
  16. private:
  17. //TZ_INT m_timeThreshold;
  18. std::queue<std::string> m_qYoloCrowdQueue;
  19. //std::queue<TZ_INT> m_headCountQueue;
  20. tzc::Mutex m_yoloCrowdLock;
  21. //tzc::Mutex m_headCountLock;
  22. };
  23. NAMESPACE_HEADCOUNT_END
  24. NAMESPACE_MAS_END
  25. #endif