4c79a319a771288cca2bef4875341c614d58aea0
[openwrt/staging/blogic.git] /
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 #define IA_CSS_INCLUDE_PARAMETERS
16 #include "sh_css_params.h"
17 #include "isp/kernels/aa/aa_2/ia_css_aa2.host.h"
18 #include "isp/kernels/anr/anr_1.0/ia_css_anr.host.h"
19 #include "isp/kernels/anr/anr_2/ia_css_anr2.host.h"
20 #include "isp/kernels/bh/bh_2/ia_css_bh.host.h"
21 #include "isp/kernels/bnr/bnr_1.0/ia_css_bnr.host.h"
22 #include "isp/kernels/bnr/bnr2_2/ia_css_bnr2_2.host.h"
23 #include "isp/kernels/cnr/cnr_2/ia_css_cnr2.host.h"
24 #include "isp/kernels/crop/crop_1.0/ia_css_crop.host.h"
25 #include "isp/kernels/csc/csc_1.0/ia_css_csc.host.h"
26 #include "isp/kernels/ctc/ctc_1.0/ia_css_ctc.host.h"
27 #include "isp/kernels/ctc/ctc1_5/ia_css_ctc1_5.host.h"
28 #include "isp/kernels/ctc/ctc2/ia_css_ctc2.host.h"
29 #include "isp/kernels/de/de_1.0/ia_css_de.host.h"
30 #include "isp/kernels/de/de_2/ia_css_de2.host.h"
31 #include "isp/kernels/dp/dp_1.0/ia_css_dp.host.h"
32 #include "isp/kernels/fixedbds/fixedbds_1.0/ia_css_fixedbds.host.h"
33 #include "isp/kernels/fpn/fpn_1.0/ia_css_fpn.host.h"
34 #include "isp/kernels/gc/gc_1.0/ia_css_gc.host.h"
35 #include "isp/kernels/gc/gc_2/ia_css_gc2.host.h"
36 #include "isp/kernels/macc/macc_1.0/ia_css_macc.host.h"
37 #include "isp/kernels/macc/macc1_5/ia_css_macc1_5.host.h"
38 #include "isp/kernels/ob/ob_1.0/ia_css_ob.host.h"
39 #include "isp/kernels/ob/ob2/ia_css_ob2.host.h"
40 #include "isp/kernels/output/output_1.0/ia_css_output.host.h"
41 #include "isp/kernels/raw_aa_binning/raw_aa_binning_1.0/ia_css_raa.host.h"
42 #include "isp/kernels/s3a/s3a_1.0/ia_css_s3a.host.h"
43 #include "isp/kernels/sc/sc_1.0/ia_css_sc.host.h"
44 #include "isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.h"
45 #include "isp/kernels/sdis/sdis_2/ia_css_sdis2.host.h"
46 #include "isp/kernels/tnr/tnr_1.0/ia_css_tnr.host.h"
47 #include "isp/kernels/uds/uds_1.0/ia_css_uds.host.h"
48 #include "isp/kernels/wb/wb_1.0/ia_css_wb.host.h"
49 #include "isp/kernels/xnr/xnr_1.0/ia_css_xnr.host.h"
50 #include "isp/kernels/xnr/xnr_3.0/ia_css_xnr3.host.h"
51 #include "isp/kernels/ynr/ynr_1.0/ia_css_ynr.host.h"
52 #include "isp/kernels/ynr/ynr_2/ia_css_ynr2.host.h"
53 #include "isp/kernels/fc/fc_1.0/ia_css_formats.host.h"
54 #include "isp/kernels/tdf/tdf_1.0/ia_css_tdf.host.h"
55 #include "isp/kernels/dpc2/ia_css_dpc2.host.h"
56 #include "isp/kernels/eed1_8/ia_css_eed1_8.host.h"
57 #include "isp/kernels/bnlm/ia_css_bnlm.host.h"
58 #include "isp/kernels/conversion/conversion_1.0/ia_css_conversion.host.h"
59 /* Generated code: do not edit or commmit. */
60
61 #include "ia_css_pipeline.h"
62 #include "ia_css_isp_params.h"
63 #include "ia_css_debug.h"
64 #include "assert_support.h"
65
66 /* Code generated by genparam/gencode.c:gen_process_function() */
67
68 static void
69 ia_css_process_aa(
70 unsigned pipe_id,
71 const struct ia_css_pipeline_stage *stage,
72 struct ia_css_isp_parameters *params)
73 {
74 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.aa.size;
75 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.aa.offset;
76
77 if (size) {
78 struct sh_css_isp_aa_params *t = (struct sh_css_isp_aa_params *)
79 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset];
80 t->strength = params->aa_config.strength;
81 }
82 }
83
84 /* Code generated by genparam/gencode.c:gen_process_function() */
85
86 static void
87 ia_css_process_anr(
88 unsigned pipe_id,
89 const struct ia_css_pipeline_stage *stage,
90 struct ia_css_isp_parameters *params)
91 {
92 assert(params != NULL);
93
94 {
95 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.anr.size;
96
97 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.anr.offset;
98
99 if (size) {
100 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_anr() enter:\n");
101
102 ia_css_anr_encode((struct sh_css_isp_anr_params *)
103 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
104 &params->anr_config,
105 size);
106 params->isp_params_changed = true;
107 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
108
109 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_anr() leave:\n");
110 }
111
112 }
113 }
114
115 /* Code generated by genparam/gencode.c:gen_process_function() */
116
117 static void
118 ia_css_process_anr2(
119 unsigned pipe_id,
120 const struct ia_css_pipeline_stage *stage,
121 struct ia_css_isp_parameters *params)
122 {
123 assert(params != NULL);
124
125 {
126 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.anr2.size;
127
128 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.anr2.offset;
129
130 if (size) {
131 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_anr2() enter:\n");
132
133 ia_css_anr2_vmem_encode((struct ia_css_isp_anr2_params *)
134 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
135 &params->anr_thres,
136 size);
137 params->isp_params_changed = true;
138 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
139
140 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_anr2() leave:\n");
141 }
142
143 }
144 }
145
146 /* Code generated by genparam/gencode.c:gen_process_function() */
147
148 static void
149 ia_css_process_bh(
150 unsigned pipe_id,
151 const struct ia_css_pipeline_stage *stage,
152 struct ia_css_isp_parameters *params)
153 {
154 assert(params != NULL);
155
156 {
157 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.bh.size;
158
159 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.bh.offset;
160
161 if (size) {
162 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bh() enter:\n");
163
164 ia_css_bh_encode((struct sh_css_isp_bh_params *)
165 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
166 &params->s3a_config,
167 size);
168 params->isp_params_changed = true;
169 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
170
171 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bh() leave:\n");
172 }
173
174 }
175 {
176 unsigned size = stage->binary->info->mem_offsets.offsets.param->hmem0.bh.size;
177
178 if (size) {
179 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bh() enter:\n");
180
181 params->isp_params_changed = true;
182 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_HMEM0] = true;
183
184 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bh() leave:\n");
185 }
186
187 }
188 }
189
190 /* Code generated by genparam/gencode.c:gen_process_function() */
191
192 static void
193 ia_css_process_cnr(
194 unsigned pipe_id,
195 const struct ia_css_pipeline_stage *stage,
196 struct ia_css_isp_parameters *params)
197 {
198 assert(params != NULL);
199
200 {
201 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.cnr.size;
202
203 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.cnr.offset;
204
205 if (size) {
206 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_cnr() enter:\n");
207
208 ia_css_cnr_encode((struct sh_css_isp_cnr_params *)
209 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
210 &params->cnr_config,
211 size);
212 params->isp_params_changed = true;
213 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
214
215 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_cnr() leave:\n");
216 }
217
218 }
219 }
220
221 /* Code generated by genparam/gencode.c:gen_process_function() */
222
223 static void
224 ia_css_process_crop(
225 unsigned pipe_id,
226 const struct ia_css_pipeline_stage *stage,
227 struct ia_css_isp_parameters *params)
228 {
229 assert(params != NULL);
230
231 {
232 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.crop.size;
233
234 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.crop.offset;
235
236 if (size) {
237 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_crop() enter:\n");
238
239 ia_css_crop_encode((struct sh_css_isp_crop_isp_params *)
240 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
241 &params->crop_config,
242 size);
243 params->isp_params_changed = true;
244 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
245
246 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_crop() leave:\n");
247 }
248
249 }
250 }
251
252 /* Code generated by genparam/gencode.c:gen_process_function() */
253
254 static void
255 ia_css_process_csc(
256 unsigned pipe_id,
257 const struct ia_css_pipeline_stage *stage,
258 struct ia_css_isp_parameters *params)
259 {
260 assert(params != NULL);
261
262 {
263 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.csc.size;
264
265 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.csc.offset;
266
267 if (size) {
268 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_csc() enter:\n");
269
270 ia_css_csc_encode((struct sh_css_isp_csc_params *)
271 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
272 &params->cc_config,
273 size);
274 params->isp_params_changed = true;
275 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
276
277 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_csc() leave:\n");
278 }
279
280 }
281 }
282
283 /* Code generated by genparam/gencode.c:gen_process_function() */
284
285 static void
286 ia_css_process_dp(
287 unsigned pipe_id,
288 const struct ia_css_pipeline_stage *stage,
289 struct ia_css_isp_parameters *params)
290 {
291 assert(params != NULL);
292
293 {
294 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.dp.size;
295
296 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.dp.offset;
297
298 if (size) {
299 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_dp() enter:\n");
300
301 ia_css_dp_encode((struct sh_css_isp_dp_params *)
302 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
303 &params->dp_config,
304 size);
305 params->isp_params_changed = true;
306 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
307
308 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_dp() leave:\n");
309 }
310
311 }
312 }
313
314 /* Code generated by genparam/gencode.c:gen_process_function() */
315
316 static void
317 ia_css_process_bnr(
318 unsigned pipe_id,
319 const struct ia_css_pipeline_stage *stage,
320 struct ia_css_isp_parameters *params)
321 {
322 assert(params != NULL);
323
324 {
325 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.bnr.size;
326
327 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.bnr.offset;
328
329 if (size) {
330 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bnr() enter:\n");
331
332 ia_css_bnr_encode((struct sh_css_isp_bnr_params *)
333 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
334 &params->nr_config,
335 size);
336 params->isp_params_changed = true;
337 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
338
339 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bnr() leave:\n");
340 }
341
342 }
343 }
344
345 /* Code generated by genparam/gencode.c:gen_process_function() */
346
347 static void
348 ia_css_process_de(
349 unsigned pipe_id,
350 const struct ia_css_pipeline_stage *stage,
351 struct ia_css_isp_parameters *params)
352 {
353 assert(params != NULL);
354
355 {
356 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.de.size;
357
358 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.de.offset;
359
360 if (size) {
361 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_de() enter:\n");
362
363 ia_css_de_encode((struct sh_css_isp_de_params *)
364 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
365 &params->de_config,
366 size);
367 params->isp_params_changed = true;
368 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
369
370 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_de() leave:\n");
371 }
372
373 }
374 }
375
376 /* Code generated by genparam/gencode.c:gen_process_function() */
377
378 static void
379 ia_css_process_ecd(
380 unsigned pipe_id,
381 const struct ia_css_pipeline_stage *stage,
382 struct ia_css_isp_parameters *params)
383 {
384 assert(params != NULL);
385
386 {
387 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.ecd.size;
388
389 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.ecd.offset;
390
391 if (size) {
392 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ecd() enter:\n");
393
394 ia_css_ecd_encode((struct sh_css_isp_ecd_params *)
395 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
396 &params->ecd_config,
397 size);
398 params->isp_params_changed = true;
399 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
400
401 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ecd() leave:\n");
402 }
403
404 }
405 }
406
407 /* Code generated by genparam/gencode.c:gen_process_function() */
408
409 static void
410 ia_css_process_formats(
411 unsigned pipe_id,
412 const struct ia_css_pipeline_stage *stage,
413 struct ia_css_isp_parameters *params)
414 {
415 assert(params != NULL);
416
417 {
418 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.formats.size;
419
420 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.formats.offset;
421
422 if (size) {
423 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_formats() enter:\n");
424
425 ia_css_formats_encode((struct sh_css_isp_formats_params *)
426 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
427 &params->formats_config,
428 size);
429 params->isp_params_changed = true;
430 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
431
432 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_formats() leave:\n");
433 }
434
435 }
436 }
437
438 /* Code generated by genparam/gencode.c:gen_process_function() */
439
440 static void
441 ia_css_process_fpn(
442 unsigned pipe_id,
443 const struct ia_css_pipeline_stage *stage,
444 struct ia_css_isp_parameters *params)
445 {
446 assert(params != NULL);
447
448 {
449 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.fpn.size;
450
451 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.fpn.offset;
452
453 if (size) {
454 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_fpn() enter:\n");
455
456 ia_css_fpn_encode((struct sh_css_isp_fpn_params *)
457 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
458 &params->fpn_config,
459 size);
460 params->isp_params_changed = true;
461 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
462
463 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_fpn() leave:\n");
464 }
465
466 }
467 }
468
469 /* Code generated by genparam/gencode.c:gen_process_function() */
470
471 static void
472 ia_css_process_gc(
473 unsigned pipe_id,
474 const struct ia_css_pipeline_stage *stage,
475 struct ia_css_isp_parameters *params)
476 {
477 assert(params != NULL);
478
479 {
480 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.gc.size;
481
482 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.gc.offset;
483
484 if (size) {
485 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_gc() enter:\n");
486
487 ia_css_gc_encode((struct sh_css_isp_gc_params *)
488 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
489 &params->gc_config,
490 size);
491 params->isp_params_changed = true;
492 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
493
494 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_gc() leave:\n");
495 }
496
497 }
498 {
499 unsigned size = stage->binary->info->mem_offsets.offsets.param->vamem1.gc.size;
500
501 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vamem1.gc.offset;
502
503 if (size) {
504 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_gc() enter:\n");
505
506 ia_css_gc_vamem_encode((struct sh_css_isp_gc_vamem_params *)
507 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VAMEM1].address[offset],
508 &params->gc_table,
509 size);
510 params->isp_params_changed = true;
511 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VAMEM1] = true;
512
513 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_gc() leave:\n");
514 }
515
516 }
517 }
518
519 /* Code generated by genparam/gencode.c:gen_process_function() */
520
521 static void
522 ia_css_process_ce(
523 unsigned pipe_id,
524 const struct ia_css_pipeline_stage *stage,
525 struct ia_css_isp_parameters *params)
526 {
527 assert(params != NULL);
528
529 {
530 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.ce.size;
531
532 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.ce.offset;
533
534 if (size) {
535 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ce() enter:\n");
536
537 ia_css_ce_encode((struct sh_css_isp_ce_params *)
538 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
539 &params->ce_config,
540 size);
541 params->isp_params_changed = true;
542 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
543
544 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ce() leave:\n");
545 }
546
547 }
548 }
549
550 /* Code generated by genparam/gencode.c:gen_process_function() */
551
552 static void
553 ia_css_process_yuv2rgb(
554 unsigned pipe_id,
555 const struct ia_css_pipeline_stage *stage,
556 struct ia_css_isp_parameters *params)
557 {
558 assert(params != NULL);
559
560 {
561 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.yuv2rgb.size;
562
563 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.yuv2rgb.offset;
564
565 if (size) {
566 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_yuv2rgb() enter:\n");
567
568 ia_css_yuv2rgb_encode((struct sh_css_isp_csc_params *)
569 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
570 &params->yuv2rgb_cc_config,
571 size);
572 params->isp_params_changed = true;
573 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
574
575 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_yuv2rgb() leave:\n");
576 }
577
578 }
579 }
580
581 /* Code generated by genparam/gencode.c:gen_process_function() */
582
583 static void
584 ia_css_process_rgb2yuv(
585 unsigned pipe_id,
586 const struct ia_css_pipeline_stage *stage,
587 struct ia_css_isp_parameters *params)
588 {
589 assert(params != NULL);
590
591 {
592 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.rgb2yuv.size;
593
594 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.rgb2yuv.offset;
595
596 if (size) {
597 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_rgb2yuv() enter:\n");
598
599 ia_css_rgb2yuv_encode((struct sh_css_isp_csc_params *)
600 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
601 &params->rgb2yuv_cc_config,
602 size);
603 params->isp_params_changed = true;
604 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
605
606 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_rgb2yuv() leave:\n");
607 }
608
609 }
610 }
611
612 /* Code generated by genparam/gencode.c:gen_process_function() */
613
614 static void
615 ia_css_process_r_gamma(
616 unsigned pipe_id,
617 const struct ia_css_pipeline_stage *stage,
618 struct ia_css_isp_parameters *params)
619 {
620 assert(params != NULL);
621
622 {
623 unsigned size = stage->binary->info->mem_offsets.offsets.param->vamem0.r_gamma.size;
624
625 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vamem0.r_gamma.offset;
626
627 if (size) {
628 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_r_gamma() enter:\n");
629
630 ia_css_r_gamma_vamem_encode((struct sh_css_isp_rgb_gamma_vamem_params *)
631 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VAMEM0].address[offset],
632 &params->r_gamma_table,
633 size);
634 params->isp_params_changed = true;
635 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VAMEM0] = true;
636
637 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_r_gamma() leave:\n");
638 }
639
640 }
641 }
642
643 /* Code generated by genparam/gencode.c:gen_process_function() */
644
645 static void
646 ia_css_process_g_gamma(
647 unsigned pipe_id,
648 const struct ia_css_pipeline_stage *stage,
649 struct ia_css_isp_parameters *params)
650 {
651 assert(params != NULL);
652
653 {
654 unsigned size = stage->binary->info->mem_offsets.offsets.param->vamem1.g_gamma.size;
655
656 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vamem1.g_gamma.offset;
657
658 if (size) {
659 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_g_gamma() enter:\n");
660
661 ia_css_g_gamma_vamem_encode((struct sh_css_isp_rgb_gamma_vamem_params *)
662 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VAMEM1].address[offset],
663 &params->g_gamma_table,
664 size);
665 params->isp_params_changed = true;
666 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VAMEM1] = true;
667
668 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_g_gamma() leave:\n");
669 }
670
671 }
672 }
673
674 /* Code generated by genparam/gencode.c:gen_process_function() */
675
676 static void
677 ia_css_process_b_gamma(
678 unsigned pipe_id,
679 const struct ia_css_pipeline_stage *stage,
680 struct ia_css_isp_parameters *params)
681 {
682 assert(params != NULL);
683
684 {
685 unsigned size = stage->binary->info->mem_offsets.offsets.param->vamem2.b_gamma.size;
686
687 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vamem2.b_gamma.offset;
688
689 if (size) {
690 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_b_gamma() enter:\n");
691
692 ia_css_b_gamma_vamem_encode((struct sh_css_isp_rgb_gamma_vamem_params *)
693 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VAMEM2].address[offset],
694 &params->b_gamma_table,
695 size);
696 params->isp_params_changed = true;
697 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VAMEM2] = true;
698
699 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_b_gamma() leave:\n");
700 }
701
702 }
703 }
704
705 /* Code generated by genparam/gencode.c:gen_process_function() */
706
707 static void
708 ia_css_process_uds(
709 unsigned pipe_id,
710 const struct ia_css_pipeline_stage *stage,
711 struct ia_css_isp_parameters *params)
712 {
713 assert(params != NULL);
714
715 {
716 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.uds.size;
717
718 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.uds.offset;
719
720 if (size) {
721 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_uds() enter:\n");
722
723 ia_css_uds_encode((struct sh_css_sp_uds_params *)
724 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
725 &params->uds_config,
726 size);
727 params->isp_params_changed = true;
728 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
729
730 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_uds() leave:\n");
731 }
732
733 }
734 }
735
736 /* Code generated by genparam/gencode.c:gen_process_function() */
737
738 static void
739 ia_css_process_raa(
740 unsigned pipe_id,
741 const struct ia_css_pipeline_stage *stage,
742 struct ia_css_isp_parameters *params)
743 {
744 assert(params != NULL);
745
746 {
747 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.raa.size;
748
749 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.raa.offset;
750
751 if (size) {
752 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_raa() enter:\n");
753
754 ia_css_raa_encode((struct sh_css_isp_aa_params *)
755 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
756 &params->raa_config,
757 size);
758 params->isp_params_changed = true;
759 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
760
761 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_raa() leave:\n");
762 }
763
764 }
765 }
766
767 /* Code generated by genparam/gencode.c:gen_process_function() */
768
769 static void
770 ia_css_process_s3a(
771 unsigned pipe_id,
772 const struct ia_css_pipeline_stage *stage,
773 struct ia_css_isp_parameters *params)
774 {
775 assert(params != NULL);
776
777 {
778 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.s3a.size;
779
780 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.s3a.offset;
781
782 if (size) {
783 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_s3a() enter:\n");
784
785 ia_css_s3a_encode((struct sh_css_isp_s3a_params *)
786 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
787 &params->s3a_config,
788 size);
789 params->isp_params_changed = true;
790 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
791
792 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_s3a() leave:\n");
793 }
794
795 }
796 }
797
798 /* Code generated by genparam/gencode.c:gen_process_function() */
799
800 static void
801 ia_css_process_ob(
802 unsigned pipe_id,
803 const struct ia_css_pipeline_stage *stage,
804 struct ia_css_isp_parameters *params)
805 {
806 assert(params != NULL);
807
808 {
809 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.ob.size;
810
811 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.ob.offset;
812
813 if (size) {
814 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ob() enter:\n");
815
816 ia_css_ob_encode((struct sh_css_isp_ob_params *)
817 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
818 &params->ob_config,
819 &params->stream_configs.ob, size);
820 params->isp_params_changed = true;
821 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
822
823 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ob() leave:\n");
824 }
825
826 }
827 {
828 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.ob.size;
829
830 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.ob.offset;
831
832 if (size) {
833 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ob() enter:\n");
834
835 ia_css_ob_vmem_encode((struct sh_css_isp_ob_vmem_params *)
836 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
837 &params->ob_config,
838 &params->stream_configs.ob, size);
839 params->isp_params_changed = true;
840 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
841
842 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ob() leave:\n");
843 }
844
845 }
846 }
847
848 /* Code generated by genparam/gencode.c:gen_process_function() */
849
850 static void
851 ia_css_process_output(
852 unsigned pipe_id,
853 const struct ia_css_pipeline_stage *stage,
854 struct ia_css_isp_parameters *params)
855 {
856 assert(params != NULL);
857
858 {
859 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.output.size;
860
861 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.output.offset;
862
863 if (size) {
864 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_output() enter:\n");
865
866 ia_css_output_encode((struct sh_css_isp_output_params *)
867 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
868 &params->output_config,
869 size);
870 params->isp_params_changed = true;
871 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
872
873 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_output() leave:\n");
874 }
875
876 }
877 }
878
879 /* Code generated by genparam/gencode.c:gen_process_function() */
880
881 static void
882 ia_css_process_sc(
883 unsigned pipe_id,
884 const struct ia_css_pipeline_stage *stage,
885 struct ia_css_isp_parameters *params)
886 {
887 assert(params != NULL);
888
889 {
890 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.sc.size;
891
892 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.sc.offset;
893
894 if (size) {
895 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sc() enter:\n");
896
897 ia_css_sc_encode((struct sh_css_isp_sc_params *)
898 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
899 &params->sc_config,
900 size);
901 params->isp_params_changed = true;
902 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
903
904 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sc() leave:\n");
905 }
906
907 }
908 }
909
910 /* Code generated by genparam/gencode.c:gen_process_function() */
911
912 static void
913 ia_css_process_bds(
914 unsigned pipe_id,
915 const struct ia_css_pipeline_stage *stage,
916 struct ia_css_isp_parameters *params)
917 {
918 assert(params != NULL);
919
920 {
921 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.bds.size;
922
923 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.bds.offset;
924
925 if (size) {
926 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bds() enter:\n");
927
928 ia_css_bds_encode((struct sh_css_isp_bds_params *)
929 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
930 &params->bds_config,
931 size);
932 params->isp_params_changed = true;
933 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
934
935 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bds() leave:\n");
936 }
937
938 }
939 }
940
941 /* Code generated by genparam/gencode.c:gen_process_function() */
942
943 static void
944 ia_css_process_tnr(
945 unsigned pipe_id,
946 const struct ia_css_pipeline_stage *stage,
947 struct ia_css_isp_parameters *params)
948 {
949 assert(params != NULL);
950
951 {
952 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.tnr.size;
953
954 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.tnr.offset;
955
956 if (size) {
957 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_tnr() enter:\n");
958
959 ia_css_tnr_encode((struct sh_css_isp_tnr_params *)
960 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
961 &params->tnr_config,
962 size);
963 params->isp_params_changed = true;
964 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
965
966 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_tnr() leave:\n");
967 }
968
969 }
970 }
971
972 /* Code generated by genparam/gencode.c:gen_process_function() */
973
974 static void
975 ia_css_process_macc(
976 unsigned pipe_id,
977 const struct ia_css_pipeline_stage *stage,
978 struct ia_css_isp_parameters *params)
979 {
980 assert(params != NULL);
981
982 {
983 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.macc.size;
984
985 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.macc.offset;
986
987 if (size) {
988 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_macc() enter:\n");
989
990 ia_css_macc_encode((struct sh_css_isp_macc_params *)
991 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
992 &params->macc_config,
993 size);
994 params->isp_params_changed = true;
995 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
996
997 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_macc() leave:\n");
998 }
999
1000 }
1001 }
1002
1003 /* Code generated by genparam/gencode.c:gen_process_function() */
1004
1005 static void
1006 ia_css_process_sdis_horicoef(
1007 unsigned pipe_id,
1008 const struct ia_css_pipeline_stage *stage,
1009 struct ia_css_isp_parameters *params)
1010 {
1011 assert(params != NULL);
1012
1013 {
1014 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.sdis_horicoef.size;
1015
1016 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.sdis_horicoef.offset;
1017
1018 if (size) {
1019 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_horicoef() enter:\n");
1020
1021 ia_css_sdis_horicoef_vmem_encode((struct sh_css_isp_sdis_hori_coef_tbl *)
1022 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
1023 &params->dvs_coefs,
1024 size);
1025 params->isp_params_changed = true;
1026 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
1027
1028 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_horicoef() leave:\n");
1029 }
1030
1031 }
1032 }
1033
1034 /* Code generated by genparam/gencode.c:gen_process_function() */
1035
1036 static void
1037 ia_css_process_sdis_vertcoef(
1038 unsigned pipe_id,
1039 const struct ia_css_pipeline_stage *stage,
1040 struct ia_css_isp_parameters *params)
1041 {
1042 assert(params != NULL);
1043
1044 {
1045 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.sdis_vertcoef.size;
1046
1047 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.sdis_vertcoef.offset;
1048
1049 if (size) {
1050 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_vertcoef() enter:\n");
1051
1052 ia_css_sdis_vertcoef_vmem_encode((struct sh_css_isp_sdis_vert_coef_tbl *)
1053 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
1054 &params->dvs_coefs,
1055 size);
1056 params->isp_params_changed = true;
1057 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
1058
1059 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_vertcoef() leave:\n");
1060 }
1061
1062 }
1063 }
1064
1065 /* Code generated by genparam/gencode.c:gen_process_function() */
1066
1067 static void
1068 ia_css_process_sdis_horiproj(
1069 unsigned pipe_id,
1070 const struct ia_css_pipeline_stage *stage,
1071 struct ia_css_isp_parameters *params)
1072 {
1073 assert(params != NULL);
1074
1075 {
1076 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.sdis_horiproj.size;
1077
1078 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.sdis_horiproj.offset;
1079
1080 if (size) {
1081 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_horiproj() enter:\n");
1082
1083 ia_css_sdis_horiproj_encode((struct sh_css_isp_sdis_hori_proj_tbl *)
1084 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1085 &params->dvs_coefs,
1086 size);
1087 params->isp_params_changed = true;
1088 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1089
1090 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_horiproj() leave:\n");
1091 }
1092
1093 }
1094 }
1095
1096 /* Code generated by genparam/gencode.c:gen_process_function() */
1097
1098 static void
1099 ia_css_process_sdis_vertproj(
1100 unsigned pipe_id,
1101 const struct ia_css_pipeline_stage *stage,
1102 struct ia_css_isp_parameters *params)
1103 {
1104 assert(params != NULL);
1105
1106 {
1107 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.sdis_vertproj.size;
1108
1109 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.sdis_vertproj.offset;
1110
1111 if (size) {
1112 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_vertproj() enter:\n");
1113
1114 ia_css_sdis_vertproj_encode((struct sh_css_isp_sdis_vert_proj_tbl *)
1115 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1116 &params->dvs_coefs,
1117 size);
1118 params->isp_params_changed = true;
1119 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1120
1121 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_vertproj() leave:\n");
1122 }
1123
1124 }
1125 }
1126
1127 /* Code generated by genparam/gencode.c:gen_process_function() */
1128
1129 static void
1130 ia_css_process_sdis2_horicoef(
1131 unsigned pipe_id,
1132 const struct ia_css_pipeline_stage *stage,
1133 struct ia_css_isp_parameters *params)
1134 {
1135 assert(params != NULL);
1136
1137 {
1138 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.sdis2_horicoef.size;
1139
1140 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.sdis2_horicoef.offset;
1141
1142 if (size) {
1143 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_horicoef() enter:\n");
1144
1145 ia_css_sdis2_horicoef_vmem_encode((struct sh_css_isp_sdis_hori_coef_tbl *)
1146 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
1147 &params->dvs2_coefs,
1148 size);
1149 params->isp_params_changed = true;
1150 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
1151
1152 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_horicoef() leave:\n");
1153 }
1154
1155 }
1156 }
1157
1158 /* Code generated by genparam/gencode.c:gen_process_function() */
1159
1160 static void
1161 ia_css_process_sdis2_vertcoef(
1162 unsigned pipe_id,
1163 const struct ia_css_pipeline_stage *stage,
1164 struct ia_css_isp_parameters *params)
1165 {
1166 assert(params != NULL);
1167
1168 {
1169 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.sdis2_vertcoef.size;
1170
1171 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.sdis2_vertcoef.offset;
1172
1173 if (size) {
1174 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_vertcoef() enter:\n");
1175
1176 ia_css_sdis2_vertcoef_vmem_encode((struct sh_css_isp_sdis_vert_coef_tbl *)
1177 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
1178 &params->dvs2_coefs,
1179 size);
1180 params->isp_params_changed = true;
1181 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
1182
1183 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_vertcoef() leave:\n");
1184 }
1185
1186 }
1187 }
1188
1189 /* Code generated by genparam/gencode.c:gen_process_function() */
1190
1191 static void
1192 ia_css_process_sdis2_horiproj(
1193 unsigned pipe_id,
1194 const struct ia_css_pipeline_stage *stage,
1195 struct ia_css_isp_parameters *params)
1196 {
1197 assert(params != NULL);
1198
1199 {
1200 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.sdis2_horiproj.size;
1201
1202 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.sdis2_horiproj.offset;
1203
1204 if (size) {
1205 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_horiproj() enter:\n");
1206
1207 ia_css_sdis2_horiproj_encode((struct sh_css_isp_sdis_hori_proj_tbl *)
1208 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1209 &params->dvs2_coefs,
1210 size);
1211 params->isp_params_changed = true;
1212 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1213
1214 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_horiproj() leave:\n");
1215 }
1216
1217 }
1218 }
1219
1220 /* Code generated by genparam/gencode.c:gen_process_function() */
1221
1222 static void
1223 ia_css_process_sdis2_vertproj(
1224 unsigned pipe_id,
1225 const struct ia_css_pipeline_stage *stage,
1226 struct ia_css_isp_parameters *params)
1227 {
1228 assert(params != NULL);
1229
1230 {
1231 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.sdis2_vertproj.size;
1232
1233 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.sdis2_vertproj.offset;
1234
1235 if (size) {
1236 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_vertproj() enter:\n");
1237
1238 ia_css_sdis2_vertproj_encode((struct sh_css_isp_sdis_vert_proj_tbl *)
1239 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1240 &params->dvs2_coefs,
1241 size);
1242 params->isp_params_changed = true;
1243 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1244
1245 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_vertproj() leave:\n");
1246 }
1247
1248 }
1249 }
1250
1251 /* Code generated by genparam/gencode.c:gen_process_function() */
1252
1253 static void
1254 ia_css_process_wb(
1255 unsigned pipe_id,
1256 const struct ia_css_pipeline_stage *stage,
1257 struct ia_css_isp_parameters *params)
1258 {
1259 assert(params != NULL);
1260
1261 {
1262 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.wb.size;
1263
1264 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.wb.offset;
1265
1266 if (size) {
1267 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_wb() enter:\n");
1268
1269 ia_css_wb_encode((struct sh_css_isp_wb_params *)
1270 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1271 &params->wb_config,
1272 size);
1273 params->isp_params_changed = true;
1274 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1275
1276 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_wb() leave:\n");
1277 }
1278
1279 }
1280 }
1281
1282 /* Code generated by genparam/gencode.c:gen_process_function() */
1283
1284 static void
1285 ia_css_process_nr(
1286 unsigned pipe_id,
1287 const struct ia_css_pipeline_stage *stage,
1288 struct ia_css_isp_parameters *params)
1289 {
1290 assert(params != NULL);
1291
1292 {
1293 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.nr.size;
1294
1295 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.nr.offset;
1296
1297 if (size) {
1298 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_nr() enter:\n");
1299
1300 ia_css_nr_encode((struct sh_css_isp_ynr_params *)
1301 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1302 &params->nr_config,
1303 size);
1304 params->isp_params_changed = true;
1305 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1306
1307 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_nr() leave:\n");
1308 }
1309
1310 }
1311 }
1312
1313 /* Code generated by genparam/gencode.c:gen_process_function() */
1314
1315 static void
1316 ia_css_process_yee(
1317 unsigned pipe_id,
1318 const struct ia_css_pipeline_stage *stage,
1319 struct ia_css_isp_parameters *params)
1320 {
1321 assert(params != NULL);
1322
1323 {
1324 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.yee.size;
1325
1326 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.yee.offset;
1327
1328 if (size) {
1329 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_yee() enter:\n");
1330
1331 ia_css_yee_encode((struct sh_css_isp_yee_params *)
1332 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1333 &params->yee_config,
1334 size);
1335 params->isp_params_changed = true;
1336 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1337
1338 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_yee() leave:\n");
1339 }
1340
1341 }
1342 }
1343
1344 /* Code generated by genparam/gencode.c:gen_process_function() */
1345
1346 static void
1347 ia_css_process_ynr(
1348 unsigned pipe_id,
1349 const struct ia_css_pipeline_stage *stage,
1350 struct ia_css_isp_parameters *params)
1351 {
1352 assert(params != NULL);
1353
1354 {
1355 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.ynr.size;
1356
1357 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.ynr.offset;
1358
1359 if (size) {
1360 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ynr() enter:\n");
1361
1362 ia_css_ynr_encode((struct sh_css_isp_yee2_params *)
1363 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1364 &params->ynr_config,
1365 size);
1366 params->isp_params_changed = true;
1367 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1368
1369 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ynr() leave:\n");
1370 }
1371
1372 }
1373 }
1374
1375 /* Code generated by genparam/gencode.c:gen_process_function() */
1376
1377 static void
1378 ia_css_process_fc(
1379 unsigned pipe_id,
1380 const struct ia_css_pipeline_stage *stage,
1381 struct ia_css_isp_parameters *params)
1382 {
1383 assert(params != NULL);
1384
1385 {
1386 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.fc.size;
1387
1388 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.fc.offset;
1389
1390 if (size) {
1391 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_fc() enter:\n");
1392
1393 ia_css_fc_encode((struct sh_css_isp_fc_params *)
1394 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1395 &params->fc_config,
1396 size);
1397 params->isp_params_changed = true;
1398 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1399
1400 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_fc() leave:\n");
1401 }
1402
1403 }
1404 }
1405
1406 /* Code generated by genparam/gencode.c:gen_process_function() */
1407
1408 static void
1409 ia_css_process_ctc(
1410 unsigned pipe_id,
1411 const struct ia_css_pipeline_stage *stage,
1412 struct ia_css_isp_parameters *params)
1413 {
1414 assert(params != NULL);
1415
1416 {
1417 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.ctc.size;
1418
1419 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.ctc.offset;
1420
1421 if (size) {
1422 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ctc() enter:\n");
1423
1424 ia_css_ctc_encode((struct sh_css_isp_ctc_params *)
1425 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1426 &params->ctc_config,
1427 size);
1428 params->isp_params_changed = true;
1429 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1430
1431 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ctc() leave:\n");
1432 }
1433
1434 }
1435 {
1436 unsigned size = stage->binary->info->mem_offsets.offsets.param->vamem0.ctc.size;
1437
1438 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vamem0.ctc.offset;
1439
1440 if (size) {
1441 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ctc() enter:\n");
1442
1443 ia_css_ctc_vamem_encode((struct sh_css_isp_ctc_vamem_params *)
1444 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VAMEM0].address[offset],
1445 &params->ctc_table,
1446 size);
1447 params->isp_params_changed = true;
1448 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VAMEM0] = true;
1449
1450 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ctc() leave:\n");
1451 }
1452
1453 }
1454 }
1455
1456 /* Code generated by genparam/gencode.c:gen_process_function() */
1457
1458 static void
1459 ia_css_process_xnr_table(
1460 unsigned pipe_id,
1461 const struct ia_css_pipeline_stage *stage,
1462 struct ia_css_isp_parameters *params)
1463 {
1464 assert(params != NULL);
1465
1466 {
1467 unsigned size = stage->binary->info->mem_offsets.offsets.param->vamem1.xnr_table.size;
1468
1469 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vamem1.xnr_table.offset;
1470
1471 if (size) {
1472 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr_table() enter:\n");
1473
1474 ia_css_xnr_table_vamem_encode((struct sh_css_isp_xnr_vamem_params *)
1475 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VAMEM1].address[offset],
1476 &params->xnr_table,
1477 size);
1478 params->isp_params_changed = true;
1479 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VAMEM1] = true;
1480
1481 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr_table() leave:\n");
1482 }
1483
1484 }
1485 }
1486
1487 /* Code generated by genparam/gencode.c:gen_process_function() */
1488
1489 static void
1490 ia_css_process_xnr(
1491 unsigned pipe_id,
1492 const struct ia_css_pipeline_stage *stage,
1493 struct ia_css_isp_parameters *params)
1494 {
1495 assert(params != NULL);
1496
1497 {
1498 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.xnr.size;
1499
1500 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.xnr.offset;
1501
1502 if (size) {
1503 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr() enter:\n");
1504
1505 ia_css_xnr_encode((struct sh_css_isp_xnr_params *)
1506 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1507 &params->xnr_config,
1508 size);
1509 params->isp_params_changed = true;
1510 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1511
1512 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr() leave:\n");
1513 }
1514
1515 }
1516 }
1517
1518 /* Code generated by genparam/gencode.c:gen_process_function() */
1519
1520 static void
1521 ia_css_process_xnr3(
1522 unsigned pipe_id,
1523 const struct ia_css_pipeline_stage *stage,
1524 struct ia_css_isp_parameters *params)
1525 {
1526 assert(params != NULL);
1527
1528 {
1529 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.xnr3.size;
1530
1531 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.xnr3.offset;
1532
1533 if (size) {
1534 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr3() enter:\n");
1535
1536 ia_css_xnr3_encode((struct sh_css_isp_xnr3_params *)
1537 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1538 &params->xnr3_config,
1539 size);
1540 params->isp_params_changed = true;
1541 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1542
1543 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr3() leave:\n");
1544 }
1545
1546 }
1547 #ifdef ISP2401
1548 {
1549 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.xnr3.size;
1550
1551 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.xnr3.offset;
1552
1553 if (size) {
1554 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr3() enter:\n");
1555
1556 ia_css_xnr3_vmem_encode((struct sh_css_isp_xnr3_vmem_params *)
1557 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
1558 &params->xnr3_config,
1559 size);
1560 params->isp_params_changed = true;
1561 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
1562
1563 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr3() leave:\n");
1564 }
1565
1566 }
1567 #endif
1568 }
1569
1570 /* Code generated by genparam/gencode.c:gen_param_process_table() */
1571
1572 void (* ia_css_kernel_process_param[IA_CSS_NUM_PARAMETER_IDS])(
1573 unsigned pipe_id,
1574 const struct ia_css_pipeline_stage *stage,
1575 struct ia_css_isp_parameters *params) = {
1576 ia_css_process_aa,
1577 ia_css_process_anr,
1578 ia_css_process_anr2,
1579 ia_css_process_bh,
1580 ia_css_process_cnr,
1581 ia_css_process_crop,
1582 ia_css_process_csc,
1583 ia_css_process_dp,
1584 ia_css_process_bnr,
1585 ia_css_process_de,
1586 ia_css_process_ecd,
1587 ia_css_process_formats,
1588 ia_css_process_fpn,
1589 ia_css_process_gc,
1590 ia_css_process_ce,
1591 ia_css_process_yuv2rgb,
1592 ia_css_process_rgb2yuv,
1593 ia_css_process_r_gamma,
1594 ia_css_process_g_gamma,
1595 ia_css_process_b_gamma,
1596 ia_css_process_uds,
1597 ia_css_process_raa,
1598 ia_css_process_s3a,
1599 ia_css_process_ob,
1600 ia_css_process_output,
1601 ia_css_process_sc,
1602 ia_css_process_bds,
1603 ia_css_process_tnr,
1604 ia_css_process_macc,
1605 ia_css_process_sdis_horicoef,
1606 ia_css_process_sdis_vertcoef,
1607 ia_css_process_sdis_horiproj,
1608 ia_css_process_sdis_vertproj,
1609 ia_css_process_sdis2_horicoef,
1610 ia_css_process_sdis2_vertcoef,
1611 ia_css_process_sdis2_horiproj,
1612 ia_css_process_sdis2_vertproj,
1613 ia_css_process_wb,
1614 ia_css_process_nr,
1615 ia_css_process_yee,
1616 ia_css_process_ynr,
1617 ia_css_process_fc,
1618 ia_css_process_ctc,
1619 ia_css_process_xnr_table,
1620 ia_css_process_xnr,
1621 ia_css_process_xnr3,
1622 };
1623
1624 /* Code generated by genparam/gencode.c:gen_get_function() */
1625
1626 static void
1627 ia_css_get_dp_config(const struct ia_css_isp_parameters *params,
1628 struct ia_css_dp_config *config){
1629 if (config == NULL)
1630 return;
1631
1632 assert(params != NULL);
1633 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_dp_config() enter: "
1634 "config=%p\n",config);
1635
1636 *config = params->dp_config;
1637
1638 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_dp_config() leave\n");
1639 ia_css_dp_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1640 }
1641
1642 /* Code generated by genparam/gencode.c:gen_set_function() */
1643
1644 void
1645 ia_css_set_dp_config(struct ia_css_isp_parameters *params,
1646 const struct ia_css_dp_config *config)
1647 {
1648 if (config == NULL)
1649 return;
1650
1651 assert(params != NULL);
1652 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_dp_config() enter:\n");
1653 ia_css_dp_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1654 params->dp_config = *config;
1655 params->config_changed[IA_CSS_DP_ID] = true;
1656 #ifndef ISP2401
1657 params->config_changed[IA_CSS_DP_ID] = true;
1658
1659 #endif
1660 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_dp_config() leave: "
1661 "return_void\n");
1662 }
1663
1664 /* Code generated by genparam/gencode.c:gen_get_function() */
1665
1666 static void
1667 ia_css_get_wb_config(const struct ia_css_isp_parameters *params,
1668 struct ia_css_wb_config *config){
1669 if (config == NULL)
1670 return;
1671
1672 assert(params != NULL);
1673 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_wb_config() enter: "
1674 "config=%p\n",config);
1675
1676 *config = params->wb_config;
1677
1678 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_wb_config() leave\n");
1679 ia_css_wb_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1680 }
1681
1682 /* Code generated by genparam/gencode.c:gen_set_function() */
1683
1684 void
1685 ia_css_set_wb_config(struct ia_css_isp_parameters *params,
1686 const struct ia_css_wb_config *config)
1687 {
1688 if (config == NULL)
1689 return;
1690
1691 assert(params != NULL);
1692 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_wb_config() enter:\n");
1693 ia_css_wb_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1694 params->wb_config = *config;
1695 params->config_changed[IA_CSS_WB_ID] = true;
1696 #ifndef ISP2401
1697 params->config_changed[IA_CSS_WB_ID] = true;
1698
1699 #endif
1700 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_wb_config() leave: "
1701 "return_void\n");
1702 }
1703
1704 /* Code generated by genparam/gencode.c:gen_get_function() */
1705
1706 static void
1707 ia_css_get_tnr_config(const struct ia_css_isp_parameters *params,
1708 struct ia_css_tnr_config *config){
1709 if (config == NULL)
1710 return;
1711
1712 assert(params != NULL);
1713 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_tnr_config() enter: "
1714 "config=%p\n",config);
1715
1716 *config = params->tnr_config;
1717
1718 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_tnr_config() leave\n");
1719 ia_css_tnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1720 }
1721
1722 /* Code generated by genparam/gencode.c:gen_set_function() */
1723
1724 void
1725 ia_css_set_tnr_config(struct ia_css_isp_parameters *params,
1726 const struct ia_css_tnr_config *config)
1727 {
1728 if (config == NULL)
1729 return;
1730
1731 assert(params != NULL);
1732 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_tnr_config() enter:\n");
1733 ia_css_tnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1734 params->tnr_config = *config;
1735 params->config_changed[IA_CSS_TNR_ID] = true;
1736 #ifndef ISP2401
1737 params->config_changed[IA_CSS_TNR_ID] = true;
1738
1739 #endif
1740 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_tnr_config() leave: "
1741 "return_void\n");
1742 }
1743
1744 /* Code generated by genparam/gencode.c:gen_get_function() */
1745
1746 static void
1747 ia_css_get_ob_config(const struct ia_css_isp_parameters *params,
1748 struct ia_css_ob_config *config){
1749 if (config == NULL)
1750 return;
1751
1752 assert(params != NULL);
1753 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ob_config() enter: "
1754 "config=%p\n",config);
1755
1756 *config = params->ob_config;
1757
1758 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ob_config() leave\n");
1759 ia_css_ob_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1760 }
1761
1762 /* Code generated by genparam/gencode.c:gen_set_function() */
1763
1764 void
1765 ia_css_set_ob_config(struct ia_css_isp_parameters *params,
1766 const struct ia_css_ob_config *config)
1767 {
1768 if (config == NULL)
1769 return;
1770
1771 assert(params != NULL);
1772 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_ob_config() enter:\n");
1773 ia_css_ob_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1774 params->ob_config = *config;
1775 params->config_changed[IA_CSS_OB_ID] = true;
1776 #ifndef ISP2401
1777 params->config_changed[IA_CSS_OB_ID] = true;
1778
1779 #endif
1780 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_ob_config() leave: "
1781 "return_void\n");
1782 }
1783
1784 /* Code generated by genparam/gencode.c:gen_get_function() */
1785
1786 static void
1787 ia_css_get_de_config(const struct ia_css_isp_parameters *params,
1788 struct ia_css_de_config *config){
1789 if (config == NULL)
1790 return;
1791
1792 assert(params != NULL);
1793 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_de_config() enter: "
1794 "config=%p\n",config);
1795
1796 *config = params->de_config;
1797
1798 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_de_config() leave\n");
1799 ia_css_de_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1800 }
1801
1802 /* Code generated by genparam/gencode.c:gen_set_function() */
1803
1804 void
1805 ia_css_set_de_config(struct ia_css_isp_parameters *params,
1806 const struct ia_css_de_config *config)
1807 {
1808 if (config == NULL)
1809 return;
1810
1811 assert(params != NULL);
1812 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_de_config() enter:\n");
1813 ia_css_de_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1814 params->de_config = *config;
1815 params->config_changed[IA_CSS_DE_ID] = true;
1816 #ifndef ISP2401
1817 params->config_changed[IA_CSS_DE_ID] = true;
1818
1819 #endif
1820 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_de_config() leave: "
1821 "return_void\n");
1822 }
1823
1824 /* Code generated by genparam/gencode.c:gen_get_function() */
1825
1826 static void
1827 ia_css_get_anr_config(const struct ia_css_isp_parameters *params,
1828 struct ia_css_anr_config *config){
1829 if (config == NULL)
1830 return;
1831
1832 assert(params != NULL);
1833 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_anr_config() enter: "
1834 "config=%p\n",config);
1835
1836 *config = params->anr_config;
1837
1838 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_anr_config() leave\n");
1839 ia_css_anr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1840 }
1841
1842 /* Code generated by genparam/gencode.c:gen_set_function() */
1843
1844 void
1845 ia_css_set_anr_config(struct ia_css_isp_parameters *params,
1846 const struct ia_css_anr_config *config)
1847 {
1848 if (config == NULL)
1849 return;
1850
1851 assert(params != NULL);
1852 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_anr_config() enter:\n");
1853 ia_css_anr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1854 params->anr_config = *config;
1855 params->config_changed[IA_CSS_ANR_ID] = true;
1856 #ifndef ISP2401
1857 params->config_changed[IA_CSS_ANR_ID] = true;
1858
1859 #endif
1860 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_anr_config() leave: "
1861 "return_void\n");
1862 }
1863
1864 /* Code generated by genparam/gencode.c:gen_get_function() */
1865
1866 static void
1867 ia_css_get_anr2_config(const struct ia_css_isp_parameters *params,
1868 struct ia_css_anr_thres *config){
1869 if (config == NULL)
1870 return;
1871
1872 assert(params != NULL);
1873 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_anr2_config() enter: "
1874 "config=%p\n",config);
1875
1876 *config = params->anr_thres;
1877
1878 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_anr2_config() leave\n");
1879 ia_css_anr2_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1880 }
1881
1882 /* Code generated by genparam/gencode.c:gen_set_function() */
1883
1884 void
1885 ia_css_set_anr2_config(struct ia_css_isp_parameters *params,
1886 const struct ia_css_anr_thres *config)
1887 {
1888 if (config == NULL)
1889 return;
1890
1891 assert(params != NULL);
1892 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_anr2_config() enter:\n");
1893 ia_css_anr2_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1894 params->anr_thres = *config;
1895 params->config_changed[IA_CSS_ANR2_ID] = true;
1896 #ifndef ISP2401
1897 params->config_changed[IA_CSS_ANR2_ID] = true;
1898
1899 #endif
1900 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_anr2_config() leave: "
1901 "return_void\n");
1902 }
1903
1904 /* Code generated by genparam/gencode.c:gen_get_function() */
1905
1906 static void
1907 ia_css_get_ce_config(const struct ia_css_isp_parameters *params,
1908 struct ia_css_ce_config *config){
1909 if (config == NULL)
1910 return;
1911
1912 assert(params != NULL);
1913 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ce_config() enter: "
1914 "config=%p\n",config);
1915
1916 *config = params->ce_config;
1917
1918 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ce_config() leave\n");
1919 ia_css_ce_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1920 }
1921
1922 /* Code generated by genparam/gencode.c:gen_set_function() */
1923
1924 void
1925 ia_css_set_ce_config(struct ia_css_isp_parameters *params,
1926 const struct ia_css_ce_config *config)
1927 {
1928 if (config == NULL)
1929 return;
1930
1931 assert(params != NULL);
1932 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_ce_config() enter:\n");
1933 ia_css_ce_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1934 params->ce_config = *config;
1935 params->config_changed[IA_CSS_CE_ID] = true;
1936 #ifndef ISP2401
1937 params->config_changed[IA_CSS_CE_ID] = true;
1938
1939 #endif
1940 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_ce_config() leave: "
1941 "return_void\n");
1942 }
1943
1944 /* Code generated by genparam/gencode.c:gen_get_function() */
1945
1946 static void
1947 ia_css_get_ecd_config(const struct ia_css_isp_parameters *params,
1948 struct ia_css_ecd_config *config){
1949 if (config == NULL)
1950 return;
1951
1952 assert(params != NULL);
1953 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ecd_config() enter: "
1954 "config=%p\n",config);
1955
1956 *config = params->ecd_config;
1957
1958 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ecd_config() leave\n");
1959 ia_css_ecd_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1960 }
1961
1962 /* Code generated by genparam/gencode.c:gen_set_function() */
1963
1964 void
1965 ia_css_set_ecd_config(struct ia_css_isp_parameters *params,
1966 const struct ia_css_ecd_config *config)
1967 {
1968 if (config == NULL)
1969 return;
1970
1971 assert(params != NULL);
1972 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_ecd_config() enter:\n");
1973 ia_css_ecd_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1974 params->ecd_config = *config;
1975 params->config_changed[IA_CSS_ECD_ID] = true;
1976 #ifndef ISP2401
1977 params->config_changed[IA_CSS_ECD_ID] = true;
1978
1979 #endif
1980 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_ecd_config() leave: "
1981 "return_void\n");
1982 }
1983
1984 /* Code generated by genparam/gencode.c:gen_get_function() */
1985
1986 static void
1987 ia_css_get_ynr_config(const struct ia_css_isp_parameters *params,
1988 struct ia_css_ynr_config *config){
1989 if (config == NULL)
1990 return;
1991
1992 assert(params != NULL);
1993 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ynr_config() enter: "
1994 "config=%p\n",config);
1995
1996 *config = params->ynr_config;
1997
1998 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ynr_config() leave\n");
1999 ia_css_ynr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2000 }
2001
2002 /* Code generated by genparam/gencode.c:gen_set_function() */
2003
2004 void
2005 ia_css_set_ynr_config(struct ia_css_isp_parameters *params,
2006 const struct ia_css_ynr_config *config)
2007 {
2008 if (config == NULL)
2009 return;
2010
2011 assert(params != NULL);
2012 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_ynr_config() enter:\n");
2013 ia_css_ynr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2014 params->ynr_config = *config;
2015 params->config_changed[IA_CSS_YNR_ID] = true;
2016 #ifndef ISP2401
2017 params->config_changed[IA_CSS_YNR_ID] = true;
2018
2019 #endif
2020 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_ynr_config() leave: "
2021 "return_void\n");
2022 }
2023
2024 /* Code generated by genparam/gencode.c:gen_get_function() */
2025
2026 static void
2027 ia_css_get_fc_config(const struct ia_css_isp_parameters *params,
2028 struct ia_css_fc_config *config){
2029 if (config == NULL)
2030 return;
2031
2032 assert(params != NULL);
2033 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_fc_config() enter: "
2034 "config=%p\n",config);
2035
2036 *config = params->fc_config;
2037
2038 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_fc_config() leave\n");
2039 ia_css_fc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2040 }
2041
2042 /* Code generated by genparam/gencode.c:gen_set_function() */
2043
2044 void
2045 ia_css_set_fc_config(struct ia_css_isp_parameters *params,
2046 const struct ia_css_fc_config *config)
2047 {
2048 if (config == NULL)
2049 return;
2050
2051 assert(params != NULL);
2052 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_fc_config() enter:\n");
2053 ia_css_fc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2054 params->fc_config = *config;
2055 params->config_changed[IA_CSS_FC_ID] = true;
2056 #ifndef ISP2401
2057 params->config_changed[IA_CSS_FC_ID] = true;
2058
2059 #endif
2060 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_fc_config() leave: "
2061 "return_void\n");
2062 }
2063
2064 /* Code generated by genparam/gencode.c:gen_get_function() */
2065
2066 static void
2067 ia_css_get_cnr_config(const struct ia_css_isp_parameters *params,
2068 struct ia_css_cnr_config *config){
2069 if (config == NULL)
2070 return;
2071
2072 assert(params != NULL);
2073 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_cnr_config() enter: "
2074 "config=%p\n",config);
2075
2076 *config = params->cnr_config;
2077
2078 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_cnr_config() leave\n");
2079 ia_css_cnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2080 }
2081
2082 /* Code generated by genparam/gencode.c:gen_set_function() */
2083
2084 void
2085 ia_css_set_cnr_config(struct ia_css_isp_parameters *params,
2086 const struct ia_css_cnr_config *config)
2087 {
2088 if (config == NULL)
2089 return;
2090
2091 assert(params != NULL);
2092 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_cnr_config() enter:\n");
2093 ia_css_cnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2094 params->cnr_config = *config;
2095 params->config_changed[IA_CSS_CNR_ID] = true;
2096 #ifndef ISP2401
2097 params->config_changed[IA_CSS_CNR_ID] = true;
2098
2099 #endif
2100 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_cnr_config() leave: "
2101 "return_void\n");
2102 }
2103
2104 /* Code generated by genparam/gencode.c:gen_get_function() */
2105
2106 static void
2107 ia_css_get_macc_config(const struct ia_css_isp_parameters *params,
2108 struct ia_css_macc_config *config){
2109 if (config == NULL)
2110 return;
2111
2112 assert(params != NULL);
2113 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_macc_config() enter: "
2114 "config=%p\n",config);
2115
2116 *config = params->macc_config;
2117
2118 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_macc_config() leave\n");
2119 ia_css_macc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2120 }
2121
2122 /* Code generated by genparam/gencode.c:gen_set_function() */
2123
2124 void
2125 ia_css_set_macc_config(struct ia_css_isp_parameters *params,
2126 const struct ia_css_macc_config *config)
2127 {
2128 if (config == NULL)
2129 return;
2130
2131 assert(params != NULL);
2132 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_macc_config() enter:\n");
2133 ia_css_macc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2134 params->macc_config = *config;
2135 params->config_changed[IA_CSS_MACC_ID] = true;
2136 #ifndef ISP2401
2137 params->config_changed[IA_CSS_MACC_ID] = true;
2138
2139 #endif
2140 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_macc_config() leave: "
2141 "return_void\n");
2142 }
2143
2144 /* Code generated by genparam/gencode.c:gen_get_function() */
2145
2146 static void
2147 ia_css_get_ctc_config(const struct ia_css_isp_parameters *params,
2148 struct ia_css_ctc_config *config){
2149 if (config == NULL)
2150 return;
2151
2152 assert(params != NULL);
2153 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ctc_config() enter: "
2154 "config=%p\n",config);
2155
2156 *config = params->ctc_config;
2157
2158 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ctc_config() leave\n");
2159 ia_css_ctc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2160 }
2161
2162 /* Code generated by genparam/gencode.c:gen_set_function() */
2163
2164 void
2165 ia_css_set_ctc_config(struct ia_css_isp_parameters *params,
2166 const struct ia_css_ctc_config *config)
2167 {
2168 if (config == NULL)
2169 return;
2170
2171 assert(params != NULL);
2172 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_ctc_config() enter:\n");
2173 ia_css_ctc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2174 params->ctc_config = *config;
2175 params->config_changed[IA_CSS_CTC_ID] = true;
2176 #ifndef ISP2401
2177 params->config_changed[IA_CSS_CTC_ID] = true;
2178
2179 #endif
2180 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_ctc_config() leave: "
2181 "return_void\n");
2182 }
2183
2184 /* Code generated by genparam/gencode.c:gen_get_function() */
2185
2186 static void
2187 ia_css_get_aa_config(const struct ia_css_isp_parameters *params,
2188 struct ia_css_aa_config *config){
2189 if (config == NULL)
2190 return;
2191
2192 assert(params != NULL);
2193 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_aa_config() enter: "
2194 "config=%p\n",config);
2195
2196 *config = params->aa_config;
2197
2198 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_aa_config() leave\n");
2199 }
2200
2201 /* Code generated by genparam/gencode.c:gen_set_function() */
2202
2203 void
2204 ia_css_set_aa_config(struct ia_css_isp_parameters *params,
2205 const struct ia_css_aa_config *config)
2206 {
2207 if (config == NULL)
2208 return;
2209
2210 assert(params != NULL);
2211 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_aa_config() enter:\n");
2212 params->aa_config = *config;
2213 params->config_changed[IA_CSS_AA_ID] = true;
2214 #ifndef ISP2401
2215 params->config_changed[IA_CSS_AA_ID] = true;
2216
2217 #endif
2218 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_aa_config() leave: "
2219 "return_void\n");
2220 }
2221
2222 /* Code generated by genparam/gencode.c:gen_get_function() */
2223
2224 static void
2225 ia_css_get_yuv2rgb_config(const struct ia_css_isp_parameters *params,
2226 struct ia_css_cc_config *config){
2227 if (config == NULL)
2228 return;
2229
2230 assert(params != NULL);
2231 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_yuv2rgb_config() enter: "
2232 "config=%p\n",config);
2233
2234 *config = params->yuv2rgb_cc_config;
2235
2236 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_yuv2rgb_config() leave\n");
2237 ia_css_yuv2rgb_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2238 }
2239
2240 /* Code generated by genparam/gencode.c:gen_set_function() */
2241
2242 void
2243 ia_css_set_yuv2rgb_config(struct ia_css_isp_parameters *params,
2244 const struct ia_css_cc_config *config)
2245 {
2246 if (config == NULL)
2247 return;
2248
2249 assert(params != NULL);
2250 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_yuv2rgb_config() enter:\n");
2251 ia_css_yuv2rgb_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2252 params->yuv2rgb_cc_config = *config;
2253 params->config_changed[IA_CSS_YUV2RGB_ID] = true;
2254 #ifndef ISP2401
2255 params->config_changed[IA_CSS_YUV2RGB_ID] = true;
2256
2257 #endif
2258 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_yuv2rgb_config() leave: "
2259 "return_void\n");
2260 }
2261
2262 /* Code generated by genparam/gencode.c:gen_get_function() */
2263
2264 static void
2265 ia_css_get_rgb2yuv_config(const struct ia_css_isp_parameters *params,
2266 struct ia_css_cc_config *config){
2267 if (config == NULL)
2268 return;
2269
2270 assert(params != NULL);
2271 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_rgb2yuv_config() enter: "
2272 "config=%p\n",config);
2273
2274 *config = params->rgb2yuv_cc_config;
2275
2276 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_rgb2yuv_config() leave\n");
2277 ia_css_rgb2yuv_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2278 }
2279
2280 /* Code generated by genparam/gencode.c:gen_set_function() */
2281
2282 void
2283 ia_css_set_rgb2yuv_config(struct ia_css_isp_parameters *params,
2284 const struct ia_css_cc_config *config)
2285 {
2286 if (config == NULL)
2287 return;
2288
2289 assert(params != NULL);
2290 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_rgb2yuv_config() enter:\n");
2291 ia_css_rgb2yuv_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2292 params->rgb2yuv_cc_config = *config;
2293 params->config_changed[IA_CSS_RGB2YUV_ID] = true;
2294 #ifndef ISP2401
2295 params->config_changed[IA_CSS_RGB2YUV_ID] = true;
2296
2297 #endif
2298 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_rgb2yuv_config() leave: "
2299 "return_void\n");
2300 }
2301
2302 /* Code generated by genparam/gencode.c:gen_get_function() */
2303
2304 static void
2305 ia_css_get_csc_config(const struct ia_css_isp_parameters *params,
2306 struct ia_css_cc_config *config){
2307 if (config == NULL)
2308 return;
2309
2310 assert(params != NULL);
2311 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_csc_config() enter: "
2312 "config=%p\n",config);
2313
2314 *config = params->cc_config;
2315
2316 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_csc_config() leave\n");
2317 ia_css_csc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2318 }
2319
2320 /* Code generated by genparam/gencode.c:gen_set_function() */
2321
2322 void
2323 ia_css_set_csc_config(struct ia_css_isp_parameters *params,
2324 const struct ia_css_cc_config *config)
2325 {
2326 if (config == NULL)
2327 return;
2328
2329 assert(params != NULL);
2330 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_csc_config() enter:\n");
2331 ia_css_csc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2332 params->cc_config = *config;
2333 params->config_changed[IA_CSS_CSC_ID] = true;
2334 #ifndef ISP2401
2335 params->config_changed[IA_CSS_CSC_ID] = true;
2336
2337 #endif
2338 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_csc_config() leave: "
2339 "return_void\n");
2340 }
2341
2342 /* Code generated by genparam/gencode.c:gen_get_function() */
2343
2344 static void
2345 ia_css_get_nr_config(const struct ia_css_isp_parameters *params,
2346 struct ia_css_nr_config *config){
2347 if (config == NULL)
2348 return;
2349
2350 assert(params != NULL);
2351 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_nr_config() enter: "
2352 "config=%p\n",config);
2353
2354 *config = params->nr_config;
2355
2356 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_nr_config() leave\n");
2357 ia_css_nr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2358 }
2359
2360 /* Code generated by genparam/gencode.c:gen_set_function() */
2361
2362 void
2363 ia_css_set_nr_config(struct ia_css_isp_parameters *params,
2364 const struct ia_css_nr_config *config)
2365 {
2366 if (config == NULL)
2367 return;
2368
2369 assert(params != NULL);
2370 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_nr_config() enter:\n");
2371 ia_css_nr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2372 params->nr_config = *config;
2373 params->config_changed[IA_CSS_BNR_ID] = true;
2374 params->config_changed[IA_CSS_NR_ID] = true;
2375 #ifndef ISP2401
2376 params->config_changed[IA_CSS_NR_ID] = true;
2377
2378 #endif
2379 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_nr_config() leave: "
2380 "return_void\n");
2381 }
2382
2383 /* Code generated by genparam/gencode.c:gen_get_function() */
2384
2385 static void
2386 ia_css_get_gc_config(const struct ia_css_isp_parameters *params,
2387 struct ia_css_gc_config *config){
2388 if (config == NULL)
2389 return;
2390
2391 assert(params != NULL);
2392 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_gc_config() enter: "
2393 "config=%p\n",config);
2394
2395 *config = params->gc_config;
2396
2397 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_gc_config() leave\n");
2398 ia_css_gc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2399 }
2400
2401 /* Code generated by genparam/gencode.c:gen_set_function() */
2402
2403 void
2404 ia_css_set_gc_config(struct ia_css_isp_parameters *params,
2405 const struct ia_css_gc_config *config)
2406 {
2407 if (config == NULL)
2408 return;
2409
2410 assert(params != NULL);
2411 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_gc_config() enter:\n");
2412 ia_css_gc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2413 params->gc_config = *config;
2414 params->config_changed[IA_CSS_GC_ID] = true;
2415 #ifndef ISP2401
2416 params->config_changed[IA_CSS_GC_ID] = true;
2417
2418 #endif
2419 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_gc_config() leave: "
2420 "return_void\n");
2421 }
2422
2423 /* Code generated by genparam/gencode.c:gen_get_function() */
2424
2425 static void
2426 ia_css_get_sdis_horicoef_config(const struct ia_css_isp_parameters *params,
2427 struct ia_css_dvs_coefficients *config){
2428 if (config == NULL)
2429 return;
2430
2431 assert(params != NULL);
2432 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_horicoef_config() enter: "
2433 "config=%p\n",config);
2434
2435 *config = params->dvs_coefs;
2436
2437 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_horicoef_config() leave\n");
2438 ia_css_sdis_horicoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2439 }
2440
2441 /* Code generated by genparam/gencode.c:gen_set_function() */
2442
2443 void
2444 ia_css_set_sdis_horicoef_config(struct ia_css_isp_parameters *params,
2445 const struct ia_css_dvs_coefficients *config)
2446 {
2447 if (config == NULL)
2448 return;
2449
2450 assert(params != NULL);
2451 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis_horicoef_config() enter:\n");
2452 ia_css_sdis_horicoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2453 params->dvs_coefs = *config;
2454 params->config_changed[IA_CSS_SDIS_HORICOEF_ID] = true;
2455 params->config_changed[IA_CSS_SDIS_VERTCOEF_ID] = true;
2456 params->config_changed[IA_CSS_SDIS_HORIPROJ_ID] = true;
2457 params->config_changed[IA_CSS_SDIS_VERTPROJ_ID] = true;
2458 #ifndef ISP2401
2459 params->config_changed[IA_CSS_SDIS_HORICOEF_ID] = true;
2460
2461 #endif
2462 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis_horicoef_config() leave: "
2463 "return_void\n");
2464 }
2465
2466 /* Code generated by genparam/gencode.c:gen_get_function() */
2467
2468 static void
2469 ia_css_get_sdis_vertcoef_config(const struct ia_css_isp_parameters *params,
2470 struct ia_css_dvs_coefficients *config){
2471 if (config == NULL)
2472 return;
2473
2474 assert(params != NULL);
2475 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_vertcoef_config() enter: "
2476 "config=%p\n",config);
2477
2478 *config = params->dvs_coefs;
2479
2480 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_vertcoef_config() leave\n");
2481 ia_css_sdis_vertcoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2482 }
2483
2484 /* Code generated by genparam/gencode.c:gen_set_function() */
2485
2486 void
2487 ia_css_set_sdis_vertcoef_config(struct ia_css_isp_parameters *params,
2488 const struct ia_css_dvs_coefficients *config)
2489 {
2490 if (config == NULL)
2491 return;
2492
2493 assert(params != NULL);
2494 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis_vertcoef_config() enter:\n");
2495 ia_css_sdis_vertcoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2496 params->dvs_coefs = *config;
2497 params->config_changed[IA_CSS_SDIS_HORICOEF_ID] = true;
2498 params->config_changed[IA_CSS_SDIS_VERTCOEF_ID] = true;
2499 params->config_changed[IA_CSS_SDIS_HORIPROJ_ID] = true;
2500 params->config_changed[IA_CSS_SDIS_VERTPROJ_ID] = true;
2501 #ifndef ISP2401
2502 params->config_changed[IA_CSS_SDIS_VERTCOEF_ID] = true;
2503
2504 #endif
2505 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis_vertcoef_config() leave: "
2506 "return_void\n");
2507 }
2508
2509 /* Code generated by genparam/gencode.c:gen_get_function() */
2510
2511 static void
2512 ia_css_get_sdis_horiproj_config(const struct ia_css_isp_parameters *params,
2513 struct ia_css_dvs_coefficients *config){
2514 if (config == NULL)
2515 return;
2516
2517 assert(params != NULL);
2518 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_horiproj_config() enter: "
2519 "config=%p\n",config);
2520
2521 *config = params->dvs_coefs;
2522
2523 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_horiproj_config() leave\n");
2524 ia_css_sdis_horiproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2525 }
2526
2527 /* Code generated by genparam/gencode.c:gen_set_function() */
2528
2529 void
2530 ia_css_set_sdis_horiproj_config(struct ia_css_isp_parameters *params,
2531 const struct ia_css_dvs_coefficients *config)
2532 {
2533 if (config == NULL)
2534 return;
2535
2536 assert(params != NULL);
2537 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis_horiproj_config() enter:\n");
2538 ia_css_sdis_horiproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2539 params->dvs_coefs = *config;
2540 params->config_changed[IA_CSS_SDIS_HORICOEF_ID] = true;
2541 params->config_changed[IA_CSS_SDIS_VERTCOEF_ID] = true;
2542 params->config_changed[IA_CSS_SDIS_HORIPROJ_ID] = true;
2543 params->config_changed[IA_CSS_SDIS_VERTPROJ_ID] = true;
2544 #ifndef ISP2401
2545 params->config_changed[IA_CSS_SDIS_HORIPROJ_ID] = true;
2546
2547 #endif
2548 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis_horiproj_config() leave: "
2549 "return_void\n");
2550 }
2551
2552 /* Code generated by genparam/gencode.c:gen_get_function() */
2553
2554 static void
2555 ia_css_get_sdis_vertproj_config(const struct ia_css_isp_parameters *params,
2556 struct ia_css_dvs_coefficients *config){
2557 if (config == NULL)
2558 return;
2559
2560 assert(params != NULL);
2561 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_vertproj_config() enter: "
2562 "config=%p\n",config);
2563
2564 *config = params->dvs_coefs;
2565
2566 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_vertproj_config() leave\n");
2567 ia_css_sdis_vertproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2568 }
2569
2570 /* Code generated by genparam/gencode.c:gen_set_function() */
2571
2572 void
2573 ia_css_set_sdis_vertproj_config(struct ia_css_isp_parameters *params,
2574 const struct ia_css_dvs_coefficients *config)
2575 {
2576 if (config == NULL)
2577 return;
2578
2579 assert(params != NULL);
2580 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis_vertproj_config() enter:\n");
2581 ia_css_sdis_vertproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2582 params->dvs_coefs = *config;
2583 params->config_changed[IA_CSS_SDIS_HORICOEF_ID] = true;
2584 params->config_changed[IA_CSS_SDIS_VERTCOEF_ID] = true;
2585 params->config_changed[IA_CSS_SDIS_HORIPROJ_ID] = true;
2586 params->config_changed[IA_CSS_SDIS_VERTPROJ_ID] = true;
2587 #ifndef ISP2401
2588 params->config_changed[IA_CSS_SDIS_VERTPROJ_ID] = true;
2589
2590 #endif
2591 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis_vertproj_config() leave: "
2592 "return_void\n");
2593 }
2594
2595 /* Code generated by genparam/gencode.c:gen_get_function() */
2596
2597 static void
2598 ia_css_get_sdis2_horicoef_config(const struct ia_css_isp_parameters *params,
2599 struct ia_css_dvs2_coefficients *config){
2600 if (config == NULL)
2601 return;
2602
2603 assert(params != NULL);
2604 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_horicoef_config() enter: "
2605 "config=%p\n",config);
2606
2607 *config = params->dvs2_coefs;
2608
2609 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_horicoef_config() leave\n");
2610 ia_css_sdis2_horicoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2611 }
2612
2613 /* Code generated by genparam/gencode.c:gen_set_function() */
2614
2615 void
2616 ia_css_set_sdis2_horicoef_config(struct ia_css_isp_parameters *params,
2617 const struct ia_css_dvs2_coefficients *config)
2618 {
2619 if (config == NULL)
2620 return;
2621
2622 assert(params != NULL);
2623 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis2_horicoef_config() enter:\n");
2624 ia_css_sdis2_horicoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2625 params->dvs2_coefs = *config;
2626 params->config_changed[IA_CSS_SDIS2_HORICOEF_ID] = true;
2627 params->config_changed[IA_CSS_SDIS2_VERTCOEF_ID] = true;
2628 params->config_changed[IA_CSS_SDIS2_HORIPROJ_ID] = true;
2629 params->config_changed[IA_CSS_SDIS2_VERTPROJ_ID] = true;
2630 #ifndef ISP2401
2631 params->config_changed[IA_CSS_SDIS2_HORICOEF_ID] = true;
2632
2633 #endif
2634 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis2_horicoef_config() leave: "
2635 "return_void\n");
2636 }
2637
2638 /* Code generated by genparam/gencode.c:gen_get_function() */
2639
2640 static void
2641 ia_css_get_sdis2_vertcoef_config(const struct ia_css_isp_parameters *params,
2642 struct ia_css_dvs2_coefficients *config){
2643 if (config == NULL)
2644 return;
2645
2646 assert(params != NULL);
2647 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_vertcoef_config() enter: "
2648 "config=%p\n",config);
2649
2650 *config = params->dvs2_coefs;
2651
2652 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_vertcoef_config() leave\n");
2653 ia_css_sdis2_vertcoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2654 }
2655
2656 /* Code generated by genparam/gencode.c:gen_set_function() */
2657
2658 void
2659 ia_css_set_sdis2_vertcoef_config(struct ia_css_isp_parameters *params,
2660 const struct ia_css_dvs2_coefficients *config)
2661 {
2662 if (config == NULL)
2663 return;
2664
2665 assert(params != NULL);
2666 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis2_vertcoef_config() enter:\n");
2667 ia_css_sdis2_vertcoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2668 params->dvs2_coefs = *config;
2669 params->config_changed[IA_CSS_SDIS2_HORICOEF_ID] = true;
2670 params->config_changed[IA_CSS_SDIS2_VERTCOEF_ID] = true;
2671 params->config_changed[IA_CSS_SDIS2_HORIPROJ_ID] = true;
2672 params->config_changed[IA_CSS_SDIS2_VERTPROJ_ID] = true;
2673 #ifndef ISP2401
2674 params->config_changed[IA_CSS_SDIS2_VERTCOEF_ID] = true;
2675
2676 #endif
2677 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis2_vertcoef_config() leave: "
2678 "return_void\n");
2679 }
2680
2681 /* Code generated by genparam/gencode.c:gen_get_function() */
2682
2683 static void
2684 ia_css_get_sdis2_horiproj_config(const struct ia_css_isp_parameters *params,
2685 struct ia_css_dvs2_coefficients *config){
2686 if (config == NULL)
2687 return;
2688
2689 assert(params != NULL);
2690 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_horiproj_config() enter: "
2691 "config=%p\n",config);
2692
2693 *config = params->dvs2_coefs;
2694
2695 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_horiproj_config() leave\n");
2696 ia_css_sdis2_horiproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2697 }
2698
2699 /* Code generated by genparam/gencode.c:gen_set_function() */
2700
2701 void
2702 ia_css_set_sdis2_horiproj_config(struct ia_css_isp_parameters *params,
2703 const struct ia_css_dvs2_coefficients *config)
2704 {
2705 if (config == NULL)
2706 return;
2707
2708 assert(params != NULL);
2709 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis2_horiproj_config() enter:\n");
2710 ia_css_sdis2_horiproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2711 params->dvs2_coefs = *config;
2712 params->config_changed[IA_CSS_SDIS2_HORICOEF_ID] = true;
2713 params->config_changed[IA_CSS_SDIS2_VERTCOEF_ID] = true;
2714 params->config_changed[IA_CSS_SDIS2_HORIPROJ_ID] = true;
2715 params->config_changed[IA_CSS_SDIS2_VERTPROJ_ID] = true;
2716 #ifndef ISP2401
2717 params->config_changed[IA_CSS_SDIS2_HORIPROJ_ID] = true;
2718
2719 #endif
2720 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis2_horiproj_config() leave: "
2721 "return_void\n");
2722 }
2723
2724 /* Code generated by genparam/gencode.c:gen_get_function() */
2725
2726 static void
2727 ia_css_get_sdis2_vertproj_config(const struct ia_css_isp_parameters *params,
2728 struct ia_css_dvs2_coefficients *config){
2729 if (config == NULL)
2730 return;
2731
2732 assert(params != NULL);
2733 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_vertproj_config() enter: "
2734 "config=%p\n",config);
2735
2736 *config = params->dvs2_coefs;
2737
2738 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_vertproj_config() leave\n");
2739 ia_css_sdis2_vertproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2740 }
2741
2742 /* Code generated by genparam/gencode.c:gen_set_function() */
2743
2744 void
2745 ia_css_set_sdis2_vertproj_config(struct ia_css_isp_parameters *params,
2746 const struct ia_css_dvs2_coefficients *config)
2747 {
2748 if (config == NULL)
2749 return;
2750
2751 assert(params != NULL);
2752 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis2_vertproj_config() enter:\n");
2753 ia_css_sdis2_vertproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2754 params->dvs2_coefs = *config;
2755 params->config_changed[IA_CSS_SDIS2_HORICOEF_ID] = true;
2756 params->config_changed[IA_CSS_SDIS2_VERTCOEF_ID] = true;
2757 params->config_changed[IA_CSS_SDIS2_HORIPROJ_ID] = true;
2758 params->config_changed[IA_CSS_SDIS2_VERTPROJ_ID] = true;
2759 #ifndef ISP2401
2760 params->config_changed[IA_CSS_SDIS2_VERTPROJ_ID] = true;
2761
2762 #endif
2763 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis2_vertproj_config() leave: "
2764 "return_void\n");
2765 }
2766
2767 /* Code generated by genparam/gencode.c:gen_get_function() */
2768
2769 static void
2770 ia_css_get_r_gamma_config(const struct ia_css_isp_parameters *params,
2771 struct ia_css_rgb_gamma_table *config){
2772 if (config == NULL)
2773 return;
2774
2775 assert(params != NULL);
2776 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_r_gamma_config() enter: "
2777 "config=%p\n",config);
2778
2779 *config = params->r_gamma_table;
2780
2781 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_r_gamma_config() leave\n");
2782 ia_css_r_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2783 }
2784
2785 /* Code generated by genparam/gencode.c:gen_set_function() */
2786
2787 void
2788 ia_css_set_r_gamma_config(struct ia_css_isp_parameters *params,
2789 const struct ia_css_rgb_gamma_table *config)
2790 {
2791 if (config == NULL)
2792 return;
2793
2794 assert(params != NULL);
2795 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_r_gamma_config() enter:\n");
2796 ia_css_r_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2797 params->r_gamma_table = *config;
2798 params->config_changed[IA_CSS_R_GAMMA_ID] = true;
2799 #ifndef ISP2401
2800 params->config_changed[IA_CSS_R_GAMMA_ID] = true;
2801
2802 #endif
2803 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_r_gamma_config() leave: "
2804 "return_void\n");
2805 }
2806
2807 /* Code generated by genparam/gencode.c:gen_get_function() */
2808
2809 static void
2810 ia_css_get_g_gamma_config(const struct ia_css_isp_parameters *params,
2811 struct ia_css_rgb_gamma_table *config){
2812 if (config == NULL)
2813 return;
2814
2815 assert(params != NULL);
2816 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_g_gamma_config() enter: "
2817 "config=%p\n",config);
2818
2819 *config = params->g_gamma_table;
2820
2821 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_g_gamma_config() leave\n");
2822 ia_css_g_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2823 }
2824
2825 /* Code generated by genparam/gencode.c:gen_set_function() */
2826
2827 void
2828 ia_css_set_g_gamma_config(struct ia_css_isp_parameters *params,
2829 const struct ia_css_rgb_gamma_table *config)
2830 {
2831 if (config == NULL)
2832 return;
2833
2834 assert(params != NULL);
2835 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_g_gamma_config() enter:\n");
2836 ia_css_g_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2837 params->g_gamma_table = *config;
2838 params->config_changed[IA_CSS_G_GAMMA_ID] = true;
2839 #ifndef ISP2401
2840 params->config_changed[IA_CSS_G_GAMMA_ID] = true;
2841
2842 #endif
2843 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_g_gamma_config() leave: "
2844 "return_void\n");
2845 }
2846
2847 /* Code generated by genparam/gencode.c:gen_get_function() */
2848
2849 static void
2850 ia_css_get_b_gamma_config(const struct ia_css_isp_parameters *params,
2851 struct ia_css_rgb_gamma_table *config){
2852 if (config == NULL)
2853 return;
2854
2855 assert(params != NULL);
2856 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_b_gamma_config() enter: "
2857 "config=%p\n",config);
2858
2859 *config = params->b_gamma_table;
2860
2861 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_b_gamma_config() leave\n");
2862 ia_css_b_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2863 }
2864
2865 /* Code generated by genparam/gencode.c:gen_set_function() */
2866
2867 void
2868 ia_css_set_b_gamma_config(struct ia_css_isp_parameters *params,
2869 const struct ia_css_rgb_gamma_table *config)
2870 {
2871 if (config == NULL)
2872 return;
2873
2874 assert(params != NULL);
2875 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_b_gamma_config() enter:\n");
2876 ia_css_b_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2877 params->b_gamma_table = *config;
2878 params->config_changed[IA_CSS_B_GAMMA_ID] = true;
2879 #ifndef ISP2401
2880 params->config_changed[IA_CSS_B_GAMMA_ID] = true;
2881
2882 #endif
2883 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_b_gamma_config() leave: "
2884 "return_void\n");
2885 }
2886
2887 /* Code generated by genparam/gencode.c:gen_get_function() */
2888
2889 static void
2890 ia_css_get_xnr_table_config(const struct ia_css_isp_parameters *params,
2891 struct ia_css_xnr_table *config){
2892 if (config == NULL)
2893 return;
2894
2895 assert(params != NULL);
2896 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr_table_config() enter: "
2897 "config=%p\n",config);
2898
2899 *config = params->xnr_table;
2900
2901 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr_table_config() leave\n");
2902 ia_css_xnr_table_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2903 }
2904
2905 /* Code generated by genparam/gencode.c:gen_set_function() */
2906
2907 void
2908 ia_css_set_xnr_table_config(struct ia_css_isp_parameters *params,
2909 const struct ia_css_xnr_table *config)
2910 {
2911 if (config == NULL)
2912 return;
2913
2914 assert(params != NULL);
2915 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_xnr_table_config() enter:\n");
2916 ia_css_xnr_table_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2917 params->xnr_table = *config;
2918 params->config_changed[IA_CSS_XNR_TABLE_ID] = true;
2919 #ifndef ISP2401
2920 params->config_changed[IA_CSS_XNR_TABLE_ID] = true;
2921
2922 #endif
2923 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_xnr_table_config() leave: "
2924 "return_void\n");
2925 }
2926
2927 /* Code generated by genparam/gencode.c:gen_get_function() */
2928
2929 static void
2930 ia_css_get_formats_config(const struct ia_css_isp_parameters *params,
2931 struct ia_css_formats_config *config){
2932 if (config == NULL)
2933 return;
2934
2935 assert(params != NULL);
2936 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_formats_config() enter: "
2937 "config=%p\n",config);
2938
2939 *config = params->formats_config;
2940
2941 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_formats_config() leave\n");
2942 ia_css_formats_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2943 }
2944
2945 /* Code generated by genparam/gencode.c:gen_set_function() */
2946
2947 void
2948 ia_css_set_formats_config(struct ia_css_isp_parameters *params,
2949 const struct ia_css_formats_config *config)
2950 {
2951 if (config == NULL)
2952 return;
2953
2954 assert(params != NULL);
2955 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_formats_config() enter:\n");
2956 ia_css_formats_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2957 params->formats_config = *config;
2958 params->config_changed[IA_CSS_FORMATS_ID] = true;
2959 #ifndef ISP2401
2960 params->config_changed[IA_CSS_FORMATS_ID] = true;
2961
2962 #endif
2963 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_formats_config() leave: "
2964 "return_void\n");
2965 }
2966
2967 /* Code generated by genparam/gencode.c:gen_get_function() */
2968
2969 static void
2970 ia_css_get_xnr_config(const struct ia_css_isp_parameters *params,
2971 struct ia_css_xnr_config *config){
2972 if (config == NULL)
2973 return;
2974
2975 assert(params != NULL);
2976 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr_config() enter: "
2977 "config=%p\n",config);
2978
2979 *config = params->xnr_config;
2980
2981 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr_config() leave\n");
2982 ia_css_xnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2983 }
2984
2985 /* Code generated by genparam/gencode.c:gen_set_function() */
2986
2987 void
2988 ia_css_set_xnr_config(struct ia_css_isp_parameters *params,
2989 const struct ia_css_xnr_config *config)
2990 {
2991 if (config == NULL)
2992 return;
2993
2994 assert(params != NULL);
2995 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_xnr_config() enter:\n");
2996 ia_css_xnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2997 params->xnr_config = *config;
2998 params->config_changed[IA_CSS_XNR_ID] = true;
2999 #ifndef ISP2401
3000 params->config_changed[IA_CSS_XNR_ID] = true;
3001
3002 #endif
3003 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_xnr_config() leave: "
3004 "return_void\n");
3005 }
3006
3007 /* Code generated by genparam/gencode.c:gen_get_function() */
3008
3009 static void
3010 ia_css_get_xnr3_config(const struct ia_css_isp_parameters *params,
3011 struct ia_css_xnr3_config *config){
3012 if (config == NULL)
3013 return;
3014
3015 assert(params != NULL);
3016 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr3_config() enter: "
3017 "config=%p\n",config);
3018
3019 *config = params->xnr3_config;
3020
3021 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr3_config() leave\n");
3022 ia_css_xnr3_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3023 }
3024
3025 /* Code generated by genparam/gencode.c:gen_set_function() */
3026
3027 void
3028 ia_css_set_xnr3_config(struct ia_css_isp_parameters *params,
3029 const struct ia_css_xnr3_config *config)
3030 {
3031 if (config == NULL)
3032 return;
3033
3034 assert(params != NULL);
3035 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_xnr3_config() enter:\n");
3036 ia_css_xnr3_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3037 params->xnr3_config = *config;
3038 params->config_changed[IA_CSS_XNR3_ID] = true;
3039 #ifndef ISP2401
3040 params->config_changed[IA_CSS_XNR3_ID] = true;
3041
3042 #endif
3043 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_xnr3_config() leave: "
3044 "return_void\n");
3045 }
3046
3047 /* Code generated by genparam/gencode.c:gen_get_function() */
3048
3049 static void
3050 ia_css_get_s3a_config(const struct ia_css_isp_parameters *params,
3051 struct ia_css_3a_config *config){
3052 if (config == NULL)
3053 return;
3054
3055 assert(params != NULL);
3056 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_s3a_config() enter: "
3057 "config=%p\n",config);
3058
3059 *config = params->s3a_config;
3060
3061 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_s3a_config() leave\n");
3062 ia_css_s3a_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3063 }
3064
3065 /* Code generated by genparam/gencode.c:gen_set_function() */
3066
3067 void
3068 ia_css_set_s3a_config(struct ia_css_isp_parameters *params,
3069 const struct ia_css_3a_config *config)
3070 {
3071 if (config == NULL)
3072 return;
3073
3074 assert(params != NULL);
3075 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_s3a_config() enter:\n");
3076 ia_css_s3a_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3077 params->s3a_config = *config;
3078 params->config_changed[IA_CSS_BH_ID] = true;
3079 params->config_changed[IA_CSS_S3A_ID] = true;
3080 #ifndef ISP2401
3081 params->config_changed[IA_CSS_S3A_ID] = true;
3082
3083 #endif
3084 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_s3a_config() leave: "
3085 "return_void\n");
3086 }
3087
3088 /* Code generated by genparam/gencode.c:gen_get_function() */
3089
3090 static void
3091 ia_css_get_output_config(const struct ia_css_isp_parameters *params,
3092 struct ia_css_output_config *config){
3093 if (config == NULL)
3094 return;
3095
3096 assert(params != NULL);
3097 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_output_config() enter: "
3098 "config=%p\n",config);
3099
3100 *config = params->output_config;
3101
3102 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_output_config() leave\n");
3103 ia_css_output_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3104 }
3105
3106 /* Code generated by genparam/gencode.c:gen_set_function() */
3107
3108 void
3109 ia_css_set_output_config(struct ia_css_isp_parameters *params,
3110 const struct ia_css_output_config *config)
3111 {
3112 if (config == NULL)
3113 return;
3114
3115 assert(params != NULL);
3116 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_output_config() enter:\n");
3117 ia_css_output_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3118 params->output_config = *config;
3119 params->config_changed[IA_CSS_OUTPUT_ID] = true;
3120 #ifndef ISP2401
3121 params->config_changed[IA_CSS_OUTPUT_ID] = true;
3122
3123 #endif
3124 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_output_config() leave: "
3125 "return_void\n");
3126 }
3127
3128 /* Code generated by genparam/gencode.c:gen_global_access_function() */
3129
3130 void
3131 ia_css_get_configs(struct ia_css_isp_parameters *params,
3132 const struct ia_css_isp_config *config)
3133 {
3134 ia_css_get_dp_config(params, config->dp_config);
3135 ia_css_get_wb_config(params, config->wb_config);
3136 ia_css_get_tnr_config(params, config->tnr_config);
3137 ia_css_get_ob_config(params, config->ob_config);
3138 ia_css_get_de_config(params, config->de_config);
3139 ia_css_get_anr_config(params, config->anr_config);
3140 ia_css_get_anr2_config(params, config->anr_thres);
3141 ia_css_get_ce_config(params, config->ce_config);
3142 ia_css_get_ecd_config(params, config->ecd_config);
3143 ia_css_get_ynr_config(params, config->ynr_config);
3144 ia_css_get_fc_config(params, config->fc_config);
3145 ia_css_get_cnr_config(params, config->cnr_config);
3146 ia_css_get_macc_config(params, config->macc_config);
3147 ia_css_get_ctc_config(params, config->ctc_config);
3148 ia_css_get_aa_config(params, config->aa_config);
3149 ia_css_get_yuv2rgb_config(params, config->yuv2rgb_cc_config);
3150 ia_css_get_rgb2yuv_config(params, config->rgb2yuv_cc_config);
3151 ia_css_get_csc_config(params, config->cc_config);
3152 ia_css_get_nr_config(params, config->nr_config);
3153 ia_css_get_gc_config(params, config->gc_config);
3154 ia_css_get_sdis_horicoef_config(params, config->dvs_coefs);
3155 ia_css_get_sdis_vertcoef_config(params, config->dvs_coefs);
3156 ia_css_get_sdis_horiproj_config(params, config->dvs_coefs);
3157 ia_css_get_sdis_vertproj_config(params, config->dvs_coefs);
3158 ia_css_get_sdis2_horicoef_config(params, config->dvs2_coefs);
3159 ia_css_get_sdis2_vertcoef_config(params, config->dvs2_coefs);
3160 ia_css_get_sdis2_horiproj_config(params, config->dvs2_coefs);
3161 ia_css_get_sdis2_vertproj_config(params, config->dvs2_coefs);
3162 ia_css_get_r_gamma_config(params, config->r_gamma_table);
3163 ia_css_get_g_gamma_config(params, config->g_gamma_table);
3164 ia_css_get_b_gamma_config(params, config->b_gamma_table);
3165 ia_css_get_xnr_table_config(params, config->xnr_table);
3166 ia_css_get_formats_config(params, config->formats_config);
3167 ia_css_get_xnr_config(params, config->xnr_config);
3168 ia_css_get_xnr3_config(params, config->xnr3_config);
3169 ia_css_get_s3a_config(params, config->s3a_config);
3170 ia_css_get_output_config(params, config->output_config);
3171 }
3172
3173 /* Code generated by genparam/gencode.c:gen_global_access_function() */
3174
3175 void
3176 ia_css_set_configs(struct ia_css_isp_parameters *params,
3177 const struct ia_css_isp_config *config)
3178 {
3179 ia_css_set_dp_config(params, config->dp_config);
3180 ia_css_set_wb_config(params, config->wb_config);
3181 ia_css_set_tnr_config(params, config->tnr_config);
3182 ia_css_set_ob_config(params, config->ob_config);
3183 ia_css_set_de_config(params, config->de_config);
3184 ia_css_set_anr_config(params, config->anr_config);
3185 ia_css_set_anr2_config(params, config->anr_thres);
3186 ia_css_set_ce_config(params, config->ce_config);
3187 ia_css_set_ecd_config(params, config->ecd_config);
3188 ia_css_set_ynr_config(params, config->ynr_config);
3189 ia_css_set_fc_config(params, config->fc_config);
3190 ia_css_set_cnr_config(params, config->cnr_config);
3191 ia_css_set_macc_config(params, config->macc_config);
3192 ia_css_set_ctc_config(params, config->ctc_config);
3193 ia_css_set_aa_config(params, config->aa_config);
3194 ia_css_set_yuv2rgb_config(params, config->yuv2rgb_cc_config);
3195 ia_css_set_rgb2yuv_config(params, config->rgb2yuv_cc_config);
3196 ia_css_set_csc_config(params, config->cc_config);
3197 ia_css_set_nr_config(params, config->nr_config);
3198 ia_css_set_gc_config(params, config->gc_config);
3199 ia_css_set_sdis_horicoef_config(params, config->dvs_coefs);
3200 ia_css_set_sdis_vertcoef_config(params, config->dvs_coefs);
3201 ia_css_set_sdis_horiproj_config(params, config->dvs_coefs);
3202 ia_css_set_sdis_vertproj_config(params, config->dvs_coefs);
3203 ia_css_set_sdis2_horicoef_config(params, config->dvs2_coefs);
3204 ia_css_set_sdis2_vertcoef_config(params, config->dvs2_coefs);
3205 ia_css_set_sdis2_horiproj_config(params, config->dvs2_coefs);
3206 ia_css_set_sdis2_vertproj_config(params, config->dvs2_coefs);
3207 ia_css_set_r_gamma_config(params, config->r_gamma_table);
3208 ia_css_set_g_gamma_config(params, config->g_gamma_table);
3209 ia_css_set_b_gamma_config(params, config->b_gamma_table);
3210 ia_css_set_xnr_table_config(params, config->xnr_table);
3211 ia_css_set_formats_config(params, config->formats_config);
3212 ia_css_set_xnr_config(params, config->xnr_config);
3213 ia_css_set_xnr3_config(params, config->xnr3_config);
3214 ia_css_set_s3a_config(params, config->s3a_config);
3215 ia_css_set_output_config(params, config->output_config);
3216 }
3217