VideoStructMonitor.h 928 Bytes
#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);
};