1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2015, Intel Corporation.
5  */
6 
7 #include "ia_css_types.h"
8 #include "sh_css_defs.h"
9 #include "ia_css_debug.h"
10 
11 #include "ia_css_anr2.host.h"
12 
13 void
ia_css_anr2_vmem_encode(struct ia_css_isp_anr2_params * to,const struct ia_css_anr_thres * from,size_t size)14 ia_css_anr2_vmem_encode(
15     struct ia_css_isp_anr2_params *to,
16     const struct ia_css_anr_thres *from,
17     size_t size)
18 {
19 	unsigned int i;
20 
21 	(void)size;
22 	for (i = 0; i < ANR_PARAM_SIZE; i++) {
23 		unsigned int j;
24 
25 		for (j = 0; j < ISP_VEC_NELEMS; j++) {
26 			to->data[i][j] = from->data[i * ISP_VEC_NELEMS + j];
27 		}
28 	}
29 }
30 
31 void
ia_css_anr2_debug_dtrace(const struct ia_css_anr_thres * config,unsigned int level)32 ia_css_anr2_debug_dtrace(
33     const struct ia_css_anr_thres *config,
34     unsigned int level)
35 {
36 	(void)config;
37 	(void)level;
38 }
39