From d4109b2cef809daba0f95f244029456613383f01 Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期五, 06 一月 2017 11:31:42 +0800 Subject: [PATCH] add pm list test --- RtspFace/PipeLine.h | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/RtspFace/PipeLine.h b/RtspFace/PipeLine.h index 79e1984..b208240 100644 --- a/RtspFace/PipeLine.h +++ b/RtspFace/PipeLine.h @@ -76,8 +76,12 @@ ~PipeLine(); bool register_elem_creator(const std::string& type, elem_create_func_t func); + static bool register_global_elem_creator(const std::string& type, elem_create_func_t func); + void push_elem(PipeLineElem* elem); PipeLineElem* push_elem(const std::string& type); + void push_front_elem(PipeLineElem* elem); + bool remove_elem(PipeLineElem* elem); // do pipe sync. returns the element who returns false, or the last one. // if false return, the element should deal with pm, clean up. @@ -88,18 +92,19 @@ void pipe_notify(PipeLineElem*); void pipe_stop(); - void set_global_param(const std::string& name, const std::string& value); - std::string get_global_param(const std::string& name) const; + void set_param(const std::string& name, const std::string& value); + std::string get_param(const std::string& name) const; private: typedef std::map<const std::string, elem_create_func_t> elem_create_func_map_t; elem_create_func_map_t elem_create_func_map; + static elem_create_func_map_t global_elem_create_func_map; typedef std::vector<PipeLineElem*> elem_vec_t; elem_vec_t elems; - typedef std::map<const std::string, std::string> global_params_map_t; - global_params_map_t global_params_map; + typedef std::map<const std::string, std::string> params_map_t; + params_map_t params_map; }; #endif -- Gitblit v1.8.0