Home | History | Annotate | Download | only in minui

Lines Matching full:surface

48     GGLSurface* surface = NULL;
113 surface = malloc(sizeof(GGLSurface) + pixelSize);
114 if (surface == NULL) {
118 unsigned char* pData = (unsigned char*) (surface + 1);
119 surface->version = sizeof(GGLSurface);
120 surface->width = width;
121 surface->height = height;
122 surface->stride = width; /* Yes, pixels, not bytes */
123 surface->data = pData;
124 surface->format = (channels == 3) ? GGL_PIXEL_FORMAT_RGBX_8888 :
166 *pSurface = (gr_surface) surface;
175 if (surface) {
176 free(surface);
201 GGLSurface* surface = NULL;
275 surface = malloc(sizeof(GGLSurface));
276 if (surface == NULL) {
282 surface->version = sizeof(GGLSurface);
283 surface->width = w;
284 surface->height = h;
285 surface->stride = w; /* Yes, pixels, not bytes */
286 surface->data = pData;
287 surface->format = GGL_PIXEL_FORMAT_A_8;
295 *pSurface = (gr_surface) surface;
312 if (surface) {
313 free(surface);
319 void res_free_surface(gr_surface surface) {
320 GGLSurface* pSurface = (GGLSurface*) surface;