Lines Matching defs:img
103 _eglInitImage(_EGLImage *img, _EGLDisplay *disp)
105 _eglInitResource(&img->Resource, sizeof(*img), disp);
113 _eglGetImage(_EGLImage *img)
115 if (img)
116 _eglGetResource(&img->Resource);
117 return img;
125 _eglPutImage(_EGLImage *img)
127 return (img) ? _eglPutResource(&img->Resource) : EGL_FALSE;
136 _eglLinkImage(_EGLImage *img)
138 _eglLinkResource(&img->Resource, _EGL_RESOURCE_IMAGE);
139 return (EGLImage) img;
148 _eglUnlinkImage(_EGLImage *img)
150 _eglUnlinkResource(&img->Resource, _EGL_RESOURCE_IMAGE);
161 _EGLImage *img = (_EGLImage *) image;
162 if (!disp || !_eglCheckResource((void *) img, _EGL_RESOURCE_IMAGE, disp))
163 img = NULL;
164 return img;
172 _eglGetImageHandle(_EGLImage *img)
174 _EGLResource *res = (_EGLResource *) img;
176 (EGLImage) img : EGL_NO_IMAGE_KHR;