]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - include/drm/drm_format_helper.h
drm: add drm_fb_memcpy_dstclip() helper
[mirror_ubuntu-focal-kernel.git] / include / drm / drm_format_helper.h
CommitLineData
7415287e
GH
1/*
2 * Copyright (C) 2016 Noralf Trønnes
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 */
9
10#ifndef __LINUX_DRM_FORMAT_HELPER_H
11#define __LINUX_DRM_FORMAT_HELPER_H
12
13struct drm_framebuffer;
14struct drm_rect;
15
16void drm_fb_memcpy(void *dst, void *vaddr, struct drm_framebuffer *fb,
17 struct drm_rect *clip);
26f024f5
GH
18void drm_fb_memcpy_dstclip(void *dst, void *vaddr, struct drm_framebuffer *fb,
19 struct drm_rect *clip);
7415287e
GH
20void drm_fb_swab16(u16 *dst, void *vaddr, struct drm_framebuffer *fb,
21 struct drm_rect *clip);
22void drm_fb_xrgb8888_to_rgb565(u16 *dst, void *vaddr,
23 struct drm_framebuffer *fb,
24 struct drm_rect *clip, bool swap);
25void drm_fb_xrgb8888_to_gray8(u8 *dst, void *vaddr, struct drm_framebuffer *fb,
26 struct drm_rect *clip);
27
28#endif /* __LINUX_DRM_FORMAT_HELPER_H */