1 /* SPDX-License-Identifier: GPL-2.0+ */
2 
3 #ifndef _VKMS_FORMATS_H_
4 #define _VKMS_FORMATS_H_
5 
6 #include "vkms_drv.h"
7 
8 pixel_read_line_t get_pixel_read_line_function(u32 format);
9 
10 pixel_write_t get_pixel_write_function(u32 format);
11 
12 void get_conversion_matrix_to_argb_u16(u32 format, enum drm_color_encoding encoding,
13 				       enum drm_color_range range,
14 				       struct conversion_matrix *matrix);
15 
16 #if IS_ENABLED(CONFIG_KUNIT)
17 struct pixel_argb_u16 argb_u16_from_yuv888(u8 y, u8 channel_1, u8 channel_2,
18 					   const struct conversion_matrix *matrix);
19 #endif
20 
21 #endif /* _VKMS_FORMATS_H_ */
22