/* * main_pipe_manager.h -main pipe manager * * Copyright (c) 2016 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Author: Yinhang Liu */ #ifndef XCAMFILTER_MAIN_PIPE_MANAGER_H #define XCAMFILTER_MAIN_PIPE_MANAGER_H #include #include #include #include #include namespace GstXCam { class MainPipeManager : public XCam::PipeManager { public: MainPipeManager () {}; ~MainPipeManager () {}; XCam::SmartPtr dequeue_buffer (const int32_t timeout); void pause_dequeue (); void resume_dequeue (); void set_image_processor (XCam::SmartPtr &processor) { _image_processor = processor; } XCam::SmartPtr &get_image_processor () { return _image_processor; } protected: virtual void post_buffer (const XCam::SmartPtr &buf); private: XCam::SafeList _ready_buffers; XCam::SmartPtr _image_processor; }; }; #endif // XCAMFILTER_MAIN_PIPE_MANAGER_H