Lines Matching refs:height
50 png_uint_32* width, png_uint_32* height, png_byte* channels) { in open_png() argument
97 png_get_IHDR(*png_ptr, *info_ptr, width, height, &bit_depth, in open_png()
143 static GRSurface* init_display_surface(png_uint_32 width, png_uint_32 height) { in init_display_surface() argument
144 GRSurface* surface = malloc_surface(width * height * 4); in init_display_surface()
148 surface->height = height; in init_display_surface()
205 png_uint_32 width, height; in res_create_display_surface() local
212 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_display_surface()
215 surface = init_display_surface(width, height); in res_create_display_surface()
226 for (y = 0; y < height; ++y) { in res_create_display_surface()
245 png_uint_32 width, height; in res_create_multi_display_surface() local
256 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_multi_display_surface()
270 if (height % *frames != 0) { in res_create_multi_display_surface()
271 printf("bad height (%d) for frame count (%d)\n", height, *frames); in res_create_multi_display_surface()
282 surface[i] = init_display_surface(width, height / *frames); in res_create_multi_display_surface()
294 for (y = 0; y < height; ++y) { in res_create_multi_display_surface()
324 png_uint_32 width, height; in res_create_alpha_surface() local
329 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_alpha_surface()
337 surface = malloc_surface(width * height); in res_create_alpha_surface()
343 surface->height = height; in res_create_alpha_surface()
353 for (y = 0; y < height; ++y) { in res_create_alpha_surface()
390 png_uint_32 width, height; in res_create_localized_alpha_surface() local
400 surface->height = 0; in res_create_localized_alpha_surface()
406 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_localized_alpha_surface()
415 for (y = 0; y < height; ++y) { in res_create_localized_alpha_surface()
422 if (y+1+h >= height || matches_locale(loc, locale)) { in res_create_localized_alpha_surface()
431 surface->height = h; in res_create_localized_alpha_surface()