xref: /OK3568_Linux_fs/external/drm-cursor/drm_egl.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  *  Copyright (c) 2021, Jeffy Chen <jeffy.chen@rock-chips.com>
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  *  This program is free software; you can redistribute it and/or modify
5*4882a593Smuzhiyun  *  it under the terms of the GNU General Public License as published by
6*4882a593Smuzhiyun  *  the Free Software Foundation; either version 2 of the License, or
7*4882a593Smuzhiyun  *  (at your option) any later version.
8*4882a593Smuzhiyun  *
9*4882a593Smuzhiyun  *  This program is distributed in the hope that it will be useful,
10*4882a593Smuzhiyun  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11*4882a593Smuzhiyun  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12*4882a593Smuzhiyun  *  GNU General Public License for more details.
13*4882a593Smuzhiyun  */
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #ifndef __DRM_EGL_H_
16*4882a593Smuzhiyun #define __DRM_EGL_H_
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun #include <stdint.h>
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun #include "drm_common.h"
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun drm_private void *egl_init_ctx(int fd, int num_surfaces, int format, uint64_t modifier);
23*4882a593Smuzhiyun drm_private void egl_free_ctx(void *data);
24*4882a593Smuzhiyun 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*4882a593Smuzhiyun 
26*4882a593Smuzhiyun #endif
27