cc4fd2934d
All convertions from the ARGB16161616 format follow the same structure. Instead of repeting the same structure for each supported format, create a function to encapsulate the common logic and isolate the pixel conversion functions in a callback function. Suggested-by: Melissa Wen <mwen@igalia.com> Signed-off-by: Maíra Canal <mcanal@igalia.com> Reviewed-by: Arthur Grillo <arthurgrillo@riseup.net> Signed-off-by: Maíra Canal <mairacanal@riseup.net> Link: https://patchwork.freedesktop.org/patch/msgid/20230515135204.115393-4-mcanal@igalia.com
13 lines
240 B
C
13 lines
240 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
#ifndef _VKMS_FORMATS_H_
|
|
#define _VKMS_FORMATS_H_
|
|
|
|
#include "vkms_drv.h"
|
|
|
|
void *get_pixel_conversion_function(u32 format);
|
|
|
|
void *get_pixel_write_function(u32 format);
|
|
|
|
#endif /* _VKMS_FORMATS_H_ */
|