Lines Matching refs:img
101 _eglInitImage(_EGLImage *img, _EGLDisplay *disp)
103 _eglInitResource(&img->Resource, sizeof(*img), disp);
111 _eglGetImage(_EGLImage *img)
113 if (img)
114 _eglGetResource(&img->Resource);
115 return img;
123 _eglPutImage(_EGLImage *img)
125 return (img) ? _eglPutResource(&img->Resource) : EGL_FALSE;
134 _eglLinkImage(_EGLImage *img)
136 _eglLinkResource(&img->Resource, _EGL_RESOURCE_IMAGE);
137 return (EGLImage) img;
146 _eglUnlinkImage(_EGLImage *img)
148 _eglUnlinkResource(&img->Resource, _EGL_RESOURCE_IMAGE);
159 _EGLImage *img = (_EGLImage *) image;
160 if (!disp || !_eglCheckResource((void *) img, _EGL_RESOURCE_IMAGE, disp))
161 img = NULL;
162 return img;
170 _eglGetImageHandle(_EGLImage *img)
172 _EGLResource *res = (_EGLResource *) img;
174 (EGLImage) img : EGL_NO_IMAGE_KHR;