• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * soft_copy_task.h - soft copy class
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: Yinhang Liu <yinhangx.liu@intel.com>
19  */
20 
21 #ifndef XCAM_SOFT_COPY_TASK_H
22 #define XCAM_SOFT_COPY_TASK_H
23 
24 #include <xcam_std.h>
25 #include <soft/soft_worker.h>
26 #include <soft/soft_handler.h>
27 #include <soft/soft_image.h>
28 #include <interface/stitcher.h>
29 
30 namespace XCam {
31 
32 namespace XCamSoftTasks {
33 
34 class CopyTask
35     : public SoftWorker
36 {
37 public:
38     struct Args : SoftArgs {
39         SmartPtr<UcharImage>         in_luma, out_luma;
40         SmartPtr<Uchar2Image>        in_uv, out_uv;
41 
ArgsArgs42         Args (const SmartPtr<ImageHandler::Parameters> &param)
43             : SoftArgs (param)
44         {}
45     };
46 
47 public:
CopyTask(const SmartPtr<Worker::Callback> & cb)48     explicit CopyTask (const SmartPtr<Worker::Callback> &cb)
49         : SoftWorker ("CopyTask", cb)
50     {}
51 
52 private:
53     virtual XCamReturn work_range (const SmartPtr<Arguments> &args, const WorkRange &range);
54 };
55 
56 }
57 
58 }
59 
60 #endif // XCAM_SOFT_COPY_TASK_H