xref: /OK3568_Linux_fs/external/drm-cursor/drm_egl.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  *  Copyright (c) 2021, Jeffy Chen <jeffy.chen@rock-chips.com>
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  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  */
14 
15 #ifndef __DRM_EGL_H_
16 #define __DRM_EGL_H_
17 
18 #include <stdint.h>
19 
20 #include "drm_common.h"
21 
22 drm_private void *egl_init_ctx(int fd, int num_surfaces, int format, uint64_t modifier);
23 drm_private void egl_free_ctx(void *data);
24 drm_private uint32_t egl_convert_fb(int fd, void *data, uint32_t handle, int w, int h, int scaled_w, int scaled_h, int x, int y);
25 
26 #endif
27