Home | History | Annotate | Download | only in minui

Lines Matching refs:surface

41     gr_surface surface = (gr_surface) temp;
42 surface->data = temp + sizeof(GRSurface) +
44 return surface;
141 gr_surface surface;
143 surface = malloc_surface(width * height * 4);
144 if (surface == NULL) return NULL;
146 surface->width = width;
147 surface->height = height;
148 surface->row_bytes = width * 4;
149 surface->pixel_bytes = 4;
151 return surface;
200 gr_surface surface = NULL;
212 surface = init_display_surface(width, height);
213 if (surface == NULL) {
222 transform_rgb_to_draw(p_row, surface->data + y * surface->row_bytes, channels, width);
226 *pSurface = surface;
230 if (result < 0 && surface != NULL) free(surface);
235 gr_surface* surface = NULL;
268 surface = malloc(*frames * sizeof(gr_surface));
269 if (surface == NULL) {
274 surface[i] = init_display_surface(width, height / *frames);
275 if (surface[i] == NULL) {
286 unsigned char* out_row = surface[frame]->data +
287 (y / *frames) * surface[frame]->row_bytes;
292 *pSurface = (gr_surface*) surface;
298 if (surface) {
300 if (surface[i]) free(surface[i]);
302 free(surface);
309 gr_surface surface = NULL;
326 surface = malloc_surface(width * height);
327 if (surface == NULL) {
331 surface->width = width;
332 surface->height = height;
333 surface->row_bytes = width;
334 surface->pixel_bytes = 1;
339 p_row = surface->data + y * surface->row_bytes;
343 *pSurface = surface;
347 if (result < 0 && surface != NULL) free(surface);
371 gr_surface surface = NULL;
381 surface = malloc_surface(0);
382 surface->width = 0;
383 surface->height = 0;
384 surface->row_bytes = 0;
385 surface->pixel_bytes = 1;
409 surface = malloc_surface(w*h);
410 if (surface == NULL) {
414 surface->width = w;
415 surface->height = h;
416 surface->row_bytes = w;
417 surface->pixel_bytes = 1;
422 memcpy(surface->data + i*w, row, w);
425 *pSurface = (gr_surface) surface;
437 if (result < 0 && surface != NULL) free(surface);
441 void res_free_surface(gr_surface surface) {
442 free(surface);