1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Support for Intel Camera Imaging ISP subsystem.
4 * Copyright (c) 2015, Intel Corporation.
5 */
6
7 #include "ia_css_formats.host.h"
8 #include "ia_css_types.h"
9 #include "sh_css_defs.h"
10
11 /*#include "sh_css_frac.h"*/
12 #ifndef IA_CSS_NO_DEBUG
13 /* FIXME: See BZ 4427 */
14 #include "ia_css_debug.h"
15 #endif
16
17 const struct ia_css_formats_config default_formats_config = {
18 1
19 };
20
21 void
ia_css_formats_encode(struct sh_css_isp_formats_params * to,const struct ia_css_formats_config * from,unsigned int size)22 ia_css_formats_encode(
23 struct sh_css_isp_formats_params *to,
24 const struct ia_css_formats_config *from,
25 unsigned int size)
26 {
27 (void)size;
28 to->video_full_range_flag = from->video_full_range_flag;
29 }
30
31 #ifndef IA_CSS_NO_DEBUG
32 /* FIXME: See BZ 4427 */
33 void
ia_css_formats_dump(const struct sh_css_isp_formats_params * formats,unsigned int level)34 ia_css_formats_dump(
35 const struct sh_css_isp_formats_params *formats,
36 unsigned int level)
37 {
38 if (!formats) return;
39 ia_css_debug_dtrace(level, "\t%-32s = %d\n",
40 "video_full_range_flag", formats->video_full_range_flag);
41 }
42 #endif
43
44 #ifndef IA_CSS_NO_DEBUG
45 /* FIXME: See BZ 4427 */
46 void
ia_css_formats_debug_dtrace(const struct ia_css_formats_config * config,unsigned int level)47 ia_css_formats_debug_dtrace(
48 const struct ia_css_formats_config *config,
49 unsigned int level)
50 {
51 ia_css_debug_dtrace(level,
52 "config.video_full_range_flag=%d\n",
53 config->video_full_range_flag);
54 }
55 #endif
56