• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * cl_argument.cpp - CL kernel Argument
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 "cl_argument.h"
22 
23 namespace XCam {
24 
25 
CLWorkSize()26 CLWorkSize::CLWorkSize ()
27     : dim (XCAM_DEFAULT_IMAGE_DIM)
28 {
29     xcam_mem_clear (global);
30     xcam_mem_clear (local);
31 }
32 
CLArgument(uint32_t size)33 CLArgument::CLArgument (uint32_t size)
34     : _arg_adress (NULL)
35     , _arg_size (size)
36 {
37 }
38 
~CLArgument()39 CLArgument::~CLArgument ()
40 {
41 }
42 
43 void
get_value(void * & adress,uint32_t & size)44 CLArgument::get_value (void *&adress, uint32_t &size)
45 {
46     adress = _arg_adress;
47     size = _arg_size;
48 }
49 
50 
51 }
52