diff options
author | Umang Jain <umang.jain@ideasonboard.com> | 2021-05-21 10:27:24 +0530 |
---|---|---|
committer | Umang Jain <umang.jain@ideasonboard.com> | 2021-06-28 14:12:06 +0530 |
commit | f21b9306a7893017b9f7e6b95001da9abade30f7 (patch) | |
tree | 82332eb640a9725ceef3ec487033b524cd49ecd7 /include/ia_imaging/yuvp1_common_public.h | |
parent | d05fd744448d37739cf4f919578d0ac8c73bc0a1 (diff) |
include: Link to ia_imaging library and import headers
libia_imaging is provided by the ChromeOS system, however the headers
aren't installed at the system's $includedir locations. We need to carry
them in-tree, to be able to use them.
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Diffstat (limited to 'include/ia_imaging/yuvp1_common_public.h')
-rw-r--r-- | include/ia_imaging/yuvp1_common_public.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/include/ia_imaging/yuvp1_common_public.h b/include/ia_imaging/yuvp1_common_public.h new file mode 100644 index 0000000..1958973 --- /dev/null +++ b/include/ia_imaging/yuvp1_common_public.h @@ -0,0 +1,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 |