• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * soft_geo_tasks_priv.h - soft geometry map tasks
3  *
4  *  Copyright (c) 2017 Intel Corporation
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  * Author: Wind Yuan <feng.yuan@intel.com>
19  */
20 
21 #include <xcam_std.h>
22 #include <soft/soft_worker.h>
23 #include <soft/soft_image.h>
24 #include <soft/soft_handler.h>
25 
26 namespace XCam {
27 
28 namespace XCamSoftTasks {
29 
30 class GeoMapTask
31     : public SoftWorker
32 {
33 public:
34     struct Args : SoftArgs {
35         SmartPtr<UcharImage>        in_luma, out_luma;
36         SmartPtr<Uchar2Image>       in_uv, out_uv;
37         SmartPtr<Float2Image>       lookup_table;
38         Float2                      factors;
39 
ArgsArgs40         Args (
41             const SmartPtr<ImageHandler::Parameters> &param)
42             : SoftArgs (param)
43         {}
44     };
45 
46 public:
GeoMapTask(const SmartPtr<Worker::Callback> & cb)47     explicit GeoMapTask (const SmartPtr<Worker::Callback> &cb)
48         : SoftWorker ("GeoMapTask", cb)
49     {
50         set_work_uint (8, 2);
51     }
52 
53 private:
54     virtual XCamReturn work_range (const SmartPtr<Arguments> &args, const WorkRange &range);
55 };
56 
57 }
58 
59 }
60