Lines Matching refs:width
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()
49 auto result = std::unique_ptr<GRSurface>(new GRSurface(width, height, row_bytes, pixel_bytes)); in Create()
60 auto result = GRSurface::Create(width, height, row_bytes, pixel_bytes); in Clone()
153 int width) { in TransformRgbToDraw() argument
160 for (int x = 0; x < width; ++x) { in TransformRgbToDraw()
171 for (int x = 0; x < width; ++x) { in TransformRgbToDraw()
181 memcpy(output_row, input_row, width * 4); in TransformRgbToDraw()
193 png_uint_32 width = png_handler.width(); in res_create_display_surface() local
196 auto surface = GRSurface::Create(width, height, width * 4, 4); in res_create_display_surface()
207 std::vector<uint8_t> p_row(width * 4); in res_create_display_surface()
210 png_handler.channels(), width); in res_create_display_surface()
227 png_uint_32 width = png_handler.width(); in res_create_multi_display_surface() local
266 auto created_surface = GRSurface::Create(width, height / *frames, width * 4, 4); in res_create_multi_display_surface()
279 std::vector<uint8_t> p_row(width * 4); in res_create_multi_display_surface()
283 TransformRgbToDraw(p_row.data(), out_row, png_handler.channels(), width); in res_create_multi_display_surface()
311 png_uint_32 width = png_handler.width(); in res_create_alpha_surface() local
314 auto surface = GRSurface::Create(width, height, width, 1); in res_create_alpha_surface()
378 std::vector<uint8_t> row(png_handler.width()); in get_locales_in_png()
410 png_uint_32 width = png_handler.width(); in res_create_localized_alpha_surface() local
414 std::vector<uint8_t> row(width); in res_create_localized_alpha_surface()