Lines Matching refs:height
43 std::unique_ptr<GRSurface> GRSurface::Create(size_t width, size_t height, size_t row_bytes, in Create() argument
45 if (width == 0 || row_bytes == 0 || height == 0 || pixel_bytes == 0) return nullptr; in Create()
46 if (std::numeric_limits<size_t>::max() / row_bytes < height) return nullptr; in Create()
49 auto result = std::unique_ptr<GRSurface>(new GRSurface(width, height, row_bytes, pixel_bytes)); in Create()
50 size_t data_size = row_bytes * height; in Create()
60 auto result = GRSurface::Create(width, height, row_bytes, pixel_bytes); in Clone()
194 png_uint_32 height = png_handler.height(); in res_create_display_surface() local
196 auto surface = GRSurface::Create(width, height, width * 4, 4); in res_create_display_surface()
206 for (png_uint_32 y = 0; y < height; ++y) { in res_create_display_surface()
228 png_uint_32 height = png_handler.height(); in res_create_multi_display_surface() local
254 if (height % *frames != 0) { in res_create_multi_display_surface()
255 printf("bad height (%d) for frame count (%d)\n", height, *frames); in res_create_multi_display_surface()
266 auto created_surface = GRSurface::Create(width, height / *frames, width * 4, 4); in res_create_multi_display_surface()
278 for (png_uint_32 y = 0; y < height; ++y) { in res_create_multi_display_surface()
312 png_uint_32 height = png_handler.height(); in res_create_alpha_surface() local
314 auto surface = GRSurface::Create(width, height, width, 1); in res_create_alpha_surface()
324 for (png_uint_32 y = 0; y < height; ++y) { in res_create_alpha_surface()
379 for (png_uint_32 y = 0; y < png_handler.height(); ++y) { in get_locales_in_png()
411 png_uint_32 height = png_handler.height(); in res_create_localized_alpha_surface() local
413 for (png_uint_32 y = 0; y < height; ++y) { in res_create_localized_alpha_surface()
422 if (y + 1 + h > height) { in res_create_localized_alpha_surface()
423 printf("Read exceeds the image boundary, y %u, h %d, height %u\n", y, h, height); in res_create_localized_alpha_surface()