2 * Support for Intel Camera Imaging ISP subsystem.
3 * Copyright (c) 2015, Intel Corporation.
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.
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
15 #ifndef __IA_CSS_CSC_TYPES_H
16 #define __IA_CSS_CSC_TYPES_H
19 * CSS-API header file for Color Space Conversion parameters.
22 /** Color Correction configuration.
24 * This structure is used for 3 cases.
25 * ("YCgCo" is the output format of Demosaic.)
27 * 1. Color Space Conversion (YCgCo to YUV) for ISP1.
28 * ISP block: CSC1 (Color Space Conversion)
29 * struct ia_css_cc_config *cc_config
31 * 2. Color Correction Matrix (YCgCo to RGB) for ISP2.
32 * ISP block: CCM2 (Color Correction Matrix)
33 * struct ia_css_cc_config *yuv2rgb_cc_config
35 * 3. Color Space Conversion (RGB to YUV) for ISP2.
36 * ISP block: CSC2 (Color Space Conversion)
37 * struct ia_css_cc_config *rgb2yuv_cc_config
39 * default/ineffective:
62 * -0.16874 -0.33126 0.5
63 * 0.5 -0.41869 -0.08131
70 struct ia_css_cc_config {
71 uint32_t fraction_bits;/**< Fractional bits of matrix.
73 int32_t matrix[3 * 3]; /**< Conversion matrix.
74 s[13-fraction_bits].[fraction_bits],
78 #endif /* __IA_CSS_CSC_TYPES_H */