Blame view

src/daqian_test/include/VideoStructMonitor.h 928 Bytes
e30d6793   Zou XiKun   v0.0.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  #pragma once
  
  #include "RedisJobMonitor.h"
  //#include "DxSqliteInterface.h"
  
  #define KEY_VIDEO_STRUCT_RESULT_POSTFIX  ".result"
  #define KEY_VIDEO_STRUCT_TRACK_POSTFIX   ".track"
  
  //
  // 转码任务状态检测类(转码服务使用)
  //
  class CVideoStructMonitor : public CBaseRedisJobMonitor
  {
  public:
  	CVideoStructMonitor(void);
      virtual ~CVideoStructMonitor(void);
  
      // 关闭任务监测器
      void uninit(void);
  
  	// 获取key的值(除了pid)
  	int get_value(const std::string& key_postfix);
  
  	// 设置key的值(除了pid)
  	bool set_value(const std::string& key_postfix, const int& value);
  
  	bool add_segment(const std::string& segment_json);
  
  	bool retrieve_new_segment_list(int old_item_count, int new_item_count, std::vector<std::string>& segment_list);
  
  	//bool add_tracks(const int& obj_id, const DxSqliteInterface::OBJECT_INFO_LIST& obj_tracks);
  
  	//bool retrieve_tracks(const int& obj_id, DxSqliteInterface::OBJECT_INFO_LIST& obj_tracks);
  };