Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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
8pixel_read_line_t get_pixel_read_line_function(u32 format);
9
10pixel_write_t get_pixel_write_function(u32 format);
11
12void 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)
17struct pixel_argb_u16 argb_u16_from_yuv161616(const struct conversion_matrix *matrix,
18 u16 y, u16 channel_1, u16 channel_2);
19#endif
20
21#endif /* _VKMS_FORMATS_H_ */