diff options
Diffstat (limited to 'modules/soft/soft_worker.h')
-rw-r--r-- | modules/soft/soft_worker.h | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/modules/soft/soft_worker.h b/modules/soft/soft_worker.h index a851893..e734328 100644 --- a/modules/soft/soft_worker.h +++ b/modules/soft/soft_worker.h @@ -24,15 +24,13 @@ #include <xcam_std.h> #include <worker.h> -#define SOFT_MAX_DIM 3 - namespace XCam { class ThreadPool; struct WorkRange { - uint32_t pos[SOFT_MAX_DIM]; - uint32_t pos_len[SOFT_MAX_DIM]; + uint32_t pos[WORK_MAX_DIM]; + uint32_t pos_len[WORK_MAX_DIM]; WorkRange () { xcam_mem_clear (pos); @@ -40,15 +38,6 @@ struct WorkRange { } }; -struct WorkSize { - uint32_t value[SOFT_MAX_DIM]; - WorkSize (uint32_t x = 1, uint32_t y = 1, uint32_t z = 1) { - value[0] = x; - value[1] = y; - value[2] = z; - } -}; - //multi-thread worker class SoftWorker : public Worker @@ -65,14 +54,6 @@ public: } bool set_threads (const SmartPtr<ThreadPool> &threads); - bool set_global_size (const WorkSize &size); - const WorkSize &get_global_size () const { - return _global; - } - bool set_local_size (const WorkSize &size); - const WorkSize &get_local_size () const { - return _local; - } // derived from Worker virtual XCamReturn work (const SmartPtr<Arguments> &args); @@ -91,8 +72,6 @@ private: private: SmartPtr<ThreadPool> _threads; - WorkSize _global; - WorkSize _local; WorkSize _work_unit; }; |