GNU Linux-libre 4.14.332-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / isp / kernels / anr / anr_2 / ia_css_anr2.host.c
1 /*
2  * Support for Intel Camera Imaging ISP subsystem.
3  * Copyright (c) 2015, Intel Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms and conditions of the GNU General Public License,
7  * version 2, as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  */
14
15 #include "ia_css_types.h"
16 #include "sh_css_defs.h"
17 #include "ia_css_debug.h"
18
19 #include "ia_css_anr2.host.h"
20
21 void
22 ia_css_anr2_vmem_encode(
23         struct ia_css_isp_anr2_params *to,
24         const struct ia_css_anr_thres *from,
25         size_t size)
26 {
27         unsigned i;
28
29         (void)size;
30         for (i = 0; i < ANR_PARAM_SIZE; i++) {
31                 unsigned j;
32                 for (j = 0; j < ISP_VEC_NELEMS; j++) {
33                         to->data[i][j] = from->data[i*ISP_VEC_NELEMS+j];
34                 }
35         }
36 }
37
38 void
39 ia_css_anr2_debug_dtrace(
40         const struct ia_css_anr_thres *config,
41         unsigned level)
42 {
43         (void)config;
44         (void)level;
45 }
46