summaryrefslogtreecommitdiff
path: root/include/ia_imaging/yuvp1_common_public.h
blob: 1958973033d3d6d55b7fb0c619909e766565f20c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
 * Copyright (C) 2015 - 2017 Intel Corporation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef _YUVP1_COMMON_PUBLIC_H_
#define _YUVP1_COMMON_PUBLIC_H_

/** @file
* CSS-API header file for 2500/Skycam specific noice reduction (YUV_P1 component) kernel/accelerator.
*/

/* All structs in this file will be visible to the CSS API User.
 * The User will be able to set each one of the config params separately by
 * specifying a different config type (see sh_config_type in sh_css.h).
 * If one of those config structs is not set explicitly, a default value will
 * be use instead.
 */

struct yuvp1_yds_public_config {

	unsigned char c00;
	unsigned char c01;
	unsigned char c02;
	unsigned char c03;
	unsigned char c10;
	unsigned char c11;
	unsigned char c12;
	unsigned char c13;
	unsigned char norm_factor;
	unsigned char bin_output;

};

struct yuvp1_chnr_coring_public_config {

	unsigned short u;
	unsigned short v;

};

struct yuvp1_chnr_sense_gain_public_config {

	unsigned char vy;
	unsigned char vu;
	unsigned char vv;

	unsigned char hy;
	unsigned char hu;
	unsigned char hv;
};

struct yuvp1_chnr_iir_fir_public_config {

	unsigned char fir_0h;
	unsigned char fir_1h;
	unsigned char fir_2h;
	unsigned short iir_min_prev; /* like in the ATE filter */

};

struct yuvp1_chnr_public_config {

	struct yuvp1_chnr_coring_public_config coring;
	struct yuvp1_chnr_sense_gain_public_config sense_gain;
	struct yuvp1_chnr_iir_fir_public_config iir_fir;

};

#endif