• Home
  • Raw
  • Download

Lines Matching refs:width

48                     png_uint_32* width, png_uint_32* height, png_byte* channels) {  in open_png()  argument
95 png_get_IHDR(*png_ptr, *info_ptr, width, height, &bit_depth, in open_png()
141 static GRSurface* init_display_surface(png_uint_32 width, png_uint_32 height) { in init_display_surface() argument
142 GRSurface* surface = malloc_surface(width * height * 4); in init_display_surface()
145 surface->width = width; in init_display_surface()
147 surface->row_bytes = width * 4; in init_display_surface()
164 int channels, int width) { in transform_rgb_to_draw() argument
172 for (x = 0; x < width; ++x) { in transform_rgb_to_draw()
183 for (x = 0; x < width; ++x) { in transform_rgb_to_draw()
193 memcpy(output_row, input_row, width*4); in transform_rgb_to_draw()
203 png_uint_32 width, height; in res_create_display_surface() local
210 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_display_surface()
213 surface = init_display_surface(width, height); in res_create_display_surface()
223 p_row = reinterpret_cast<unsigned char*>(malloc(width * 4)); in res_create_display_surface()
226 transform_rgb_to_draw(p_row, surface->data + y * surface->row_bytes, channels, width); in res_create_display_surface()
244 png_uint_32 width, height; in res_create_multi_display_surface() local
254 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_multi_display_surface()
289 surface[i] = init_display_surface(width, height / *frames); in res_create_multi_display_surface()
300 p_row = reinterpret_cast<unsigned char*>(malloc(width * 4)); in res_create_multi_display_surface()
306 transform_rgb_to_draw(p_row, out_row, channels, width); in res_create_multi_display_surface()
331 png_uint_32 width, height; in res_create_alpha_surface() local
336 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_alpha_surface()
344 surface = malloc_surface(width * height); in res_create_alpha_surface()
349 surface->width = width; in res_create_alpha_surface()
351 surface->row_bytes = width; in res_create_alpha_surface()
392 png_uint_32 width, height; in res_create_localized_alpha_surface() local
401 surface->width = 0; in res_create_localized_alpha_surface()
408 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_localized_alpha_surface()
416 row = reinterpret_cast<unsigned char*>(malloc(width)); in res_create_localized_alpha_surface()
432 surface->width = w; in res_create_localized_alpha_surface()