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 int size) 34 { 35 (void)size; 36 to->video_full_range_flag = from->video_full_range_flag; 37 } 38 39 #ifndef IA_CSS_NO_DEBUG 40 /* FIXME: See BZ 4427 */ 41 void 42 ia_css_formats_dump( 43 const struct sh_css_isp_formats_params *formats, 44 unsigned int level) 45 { 46 if (!formats) return; 47 ia_css_debug_dtrace(level, "\t%-32s = %d\n", 48 "video_full_range_flag", formats->video_full_range_flag); 49 } 50 #endif 51 52 #ifndef IA_CSS_NO_DEBUG 53 /* FIXME: See BZ 4427 */ 54 void 55 ia_css_formats_debug_dtrace( 56 const struct ia_css_formats_config *config, 57 unsigned int level) 58 { 59 ia_css_debug_dtrace(level, 60 "config.video_full_range_flag=%d\n", 61 config->video_full_range_flag); 62 } 63 #endif 64