From 5f5e870de69efe56d571a2c93362942af5bb49a5 Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期四, 20 七月 2017 14:30:55 +0800 Subject: [PATCH] restart --- RtspFace/PipeLine.h | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/RtspFace/PipeLine.h b/RtspFace/PipeLine.h index 4848d69..7af5305 100644 --- a/RtspFace/PipeLine.h +++ b/RtspFace/PipeLine.h @@ -78,6 +78,7 @@ }; typedef PipeLineElem* (*elem_create_func_t)(); +typedef void (*elem_destory_func_t)(PipeLineElem* elem); // 0 (there is no elem). do nothing // 1 (there is one elem). gain --> pm.deleter @@ -96,22 +97,20 @@ 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); - + PipeLineElem* at(int idx); + + void finit(elem_destory_func_t elem_destory_func); + bool check_pipe_complete(PipeLineElem* lastRetElem) const; // do pipe sync. returns the element who returns false, or the last one. // if false return, the element should deal with pm, clean up. PipeLineElem* pipe(PipeMaterial* pm = nullptr); - - // do pipe async - void pipe_start(); - void pipe_notify(PipeLineElem*); - void pipe_stop(); void set_param(const std::string& name, const std::string& value); std::string get_param(const std::string& name) const; -- Gitblit v1.8.0