Lines Matching refs:height
48 png_uint_32* width, png_uint_32* height, png_byte* channels) { in open_png() argument
94 png_get_IHDR(*png_ptr, *info_ptr, width, height, &bit_depth, in open_png()
140 static gr_surface init_display_surface(png_uint_32 width, png_uint_32 height) { in init_display_surface() argument
143 surface = malloc_surface(width * height * 4); in init_display_surface()
147 surface->height = height; in init_display_surface()
204 png_uint_32 width, height; in res_create_display_surface() local
209 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_display_surface()
212 surface = init_display_surface(width, height); in res_create_display_surface()
220 for (y = 0; y < height; ++y) { in res_create_display_surface()
239 png_uint_32 width, height; in res_create_multi_display_surface() local
246 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_multi_display_surface()
262 if (height % *frames != 0) { in res_create_multi_display_surface()
263 printf("bad height (%d) for frame count (%d)\n", height, *frames); in res_create_multi_display_surface()
274 surface[i] = init_display_surface(width, height / *frames); in res_create_multi_display_surface()
283 for (y = 0; y < height; ++y) { in res_create_multi_display_surface()
313 png_uint_32 width, height; in res_create_alpha_surface() local
318 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_alpha_surface()
326 surface = malloc_surface(width * height); in res_create_alpha_surface()
332 surface->height = height; in res_create_alpha_surface()
338 for (y = 0; y < height; ++y) { in res_create_alpha_surface()
375 png_uint_32 width, height; in res_create_localized_alpha_surface() local
383 surface->height = 0; in res_create_localized_alpha_surface()
389 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_localized_alpha_surface()
399 for (y = 0; y < height; ++y) { in res_create_localized_alpha_surface()
406 if (y+1+h >= height || matches_locale(loc, locale)) { in res_create_localized_alpha_surface()
415 surface->height = h; in res_create_localized_alpha_surface()