aboutsummaryrefslogtreecommitdiff
path: root/modules/soft/soft_handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/soft/soft_handler.h')
-rw-r--r--modules/soft/soft_handler.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/modules/soft/soft_handler.h b/modules/soft/soft_handler.h
index e2041bf..460762a 100644
--- a/modules/soft/soft_handler.h
+++ b/modules/soft/soft_handler.h
@@ -57,8 +57,6 @@ public:
~SoftHandler ();
bool set_threads (const SmartPtr<ThreadPool> &pool);
- bool set_out_video_info (const VideoBufferInfo &info);
- bool enable_allocator (bool enable);
// derive from ImageHandler
virtual XCamReturn execute_buffer (const SmartPtr<Parameters> &param, bool sync);
@@ -66,8 +64,10 @@ public:
virtual XCamReturn terminate ();
protected:
- virtual XCamReturn configure_resource (const SmartPtr<Parameters> &param) = 0;
- virtual XCamReturn start_work (const SmartPtr<Parameters> &param) = 0;
+ // derived from ImageHandler
+ virtual SmartPtr<BufferPool> create_allocator ();
+ virtual XCamReturn configure_rest ();
+
//virtual SmartPtr<Worker::Arguments> get_first_worker_args (const SmartPtr<SoftWorker> &worker, SmartPtr<Parameters> &params) = 0;
virtual void work_well_done (const SmartPtr<ImageHandler::Parameters> &param, XCamReturn err);
virtual void work_broken (const SmartPtr<ImageHandler::Parameters> &param, XCamReturn err);
@@ -76,7 +76,6 @@ protected:
bool check_work_continue (const SmartPtr<ImageHandler::Parameters> &param, XCamReturn err);
private:
- XCamReturn confirm_configured ();
void param_ended (SmartPtr<ImageHandler::Parameters> param, XCamReturn err);
static bool is_param_error (const SmartPtr<ImageHandler::Parameters> &param);
@@ -85,10 +84,7 @@ private:
private:
SmartPtr<ThreadPool> _threads;
- VideoBufferInfo _out_video_info;
SmartPtr<SyncMeta> _cur_sync;
- bool _need_configure;
- bool _enable_allocator;
SafeList<Parameters> _params;
mutable std::atomic<int32_t> _wip_buf_count;
};