GNU Linux-libre 4.14.332-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / isp / kernels / fc / fc_1.0 / ia_css_formats.host.c
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 #include "ia_css_formats.host.h"
16 #include "ia_css_types.h"
17 #include "sh_css_defs.h"
18
19 /*#include "sh_css_frac.h"*/
20 #ifndef IA_CSS_NO_DEBUG
21 /* FIXME: See BZ 4427 */
22 #include "ia_css_debug.h"
23 #endif
24
25 const struct ia_css_formats_config default_formats_config = {
26         1
27 };
28
29 void
30 ia_css_formats_encode(
31         struct sh_css_isp_formats_params *to,
32         const struct ia_css_formats_config *from,
33         unsigned size)
34 {
35         (void)size;
36         to->video_full_range_flag = from->video_full_range_flag;
37 }
38 #ifndef IA_CSS_NO_DEBUG
39 /* FIXME: See BZ 4427 */
40 void
41 ia_css_formats_dump(
42         const struct sh_css_isp_formats_params *formats,
43         unsigned level)
44 {
45         if (!formats) return;
46         ia_css_debug_dtrace(level, "\t%-32s = %d\n",
47                         "video_full_range_flag", formats->video_full_range_flag);
48 }
49 #endif
50
51 #ifndef IA_CSS_NO_DEBUG
52 /* FIXME: See BZ 4427 */
53 void
54 ia_css_formats_debug_dtrace(
55         const struct ia_css_formats_config *config,
56         unsigned level)
57 {
58         ia_css_debug_dtrace(level,
59                 "config.video_full_range_flag=%d\n",
60                 config->video_full_range_flag);
61 }
62 #endif