/bootable/recovery/minui/ |
D | graphics_fbdev.cpp | 36 size_t row_bytes, size_t pixel_bytes) { in Create() argument 38 return std::unique_ptr<GRSurfaceFbdev>(new GRSurfaceFbdev(width, height, row_bytes, pixel_bytes)); in Create() 107 memset(gr_framebuffer[0]->buffer_, 0, gr_framebuffer[0]->height * gr_framebuffer[0]->row_bytes); in Init() 111 gr_framebuffer[0]->row_bytes, gr_framebuffer[0]->pixel_bytes); in Init() 118 gr_framebuffer[0]->buffer_ + gr_framebuffer[0]->height * gr_framebuffer[0]->row_bytes; in Init() 124 memory_buffer.resize(gr_framebuffer[1]->height * gr_framebuffer[1]->row_bytes); in Init() 129 memset(gr_draw->buffer_, 0, gr_draw->height * gr_draw->row_bytes); in Init() 149 memcpy(gr_framebuffer[0]->buffer_, gr_draw->buffer_, gr_draw->height * gr_draw->row_bytes); in Flip()
|
D | graphics.cpp | 179 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_text() 181 (bold ? font->char_height * font->texture->row_bytes : 0); in gr_text() 184 TextBlend(src_p, font->texture->row_bytes, dst_p, row_pixels, font->char_width, in gr_text() 204 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_texticon() 207 TextBlend(src_p, icon->row_bytes, dst_p, row_pixels, icon->width, icon->height); in gr_texticon() 223 gr_draw->row_bytes == gr_draw->width * gr_draw->pixel_bytes) { in gr_clear() 224 memset(gr_draw->data(), gr_current & 0xff, gr_draw->height * gr_draw->row_bytes); in gr_clear() 227 int row_diff = gr_draw->row_bytes / gr_draw->pixel_bytes - gr_draw->width; in gr_clear() 246 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_fill() 275 int src_row_pixels = source->row_bytes / source->pixel_bytes; in gr_blit() [all …]
|
D | resources.cpp | 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() 209 TransformRgbToDraw(p_row.data(), surface->data() + y * surface->row_bytes, in res_create_display_surface() 282 uint8_t* out_row = surface[frame]->data() + (y / *frames) * surface[frame]->row_bytes; in res_create_multi_display_surface() 325 uint8_t* p_row = surface->data() + y * surface->row_bytes; in res_create_alpha_surface()
|
D | graphics_adf.h | 44 GRSurfaceAdf(size_t width, size_t height, size_t row_bytes, size_t pixel_bytes, __u32 offset, in GRSurfaceAdf() argument 46 : GRSurface(width, height, row_bytes, pixel_bytes), offset(offset), pitch(pitch), fd(fd) {} in GRSurfaceAdf()
|
D | graphics_drm.h | 43 GRSurfaceDrm(size_t width, size_t height, size_t row_bytes, size_t pixel_bytes, int drm_fd, in GRSurfaceDrm() argument 45 : GRSurface(width, height, row_bytes, pixel_bytes), drm_fd_(drm_fd), handle(handle) {} in GRSurfaceDrm()
|
D | graphics_fbdev.h | 34 static std::unique_ptr<GRSurfaceFbdev> Create(size_t width, size_t height, size_t row_bytes,
|
D | graphics_drm.cpp | 40 munmap(mmapped_buffer_, row_bytes * height); in ~GRSurfaceDrm() 131 auto mmapped = mmap(nullptr, surface->height * surface->row_bytes, PROT_READ | PROT_WRITE, in Create()
|
/bootable/recovery/minui/include/minui/ |
D | minui.h | 45 static std::unique_ptr<GRSurface> Create(size_t width, size_t height, size_t row_bytes, 65 size_t row_bytes; variable 69 GRSurface(size_t width, size_t height, size_t row_bytes, size_t pixel_bytes) in GRSurface() argument 70 : width(width), height(height), row_bytes(row_bytes), pixel_bytes(pixel_bytes) {} in GRSurface()
|
/bootable/recovery/recovery_ui/ |
D | screen_ui.cpp | 286 if (surface->pixel_bytes != 1 || surface->width != surface->row_bytes) { in ValidateGraphicSurface() 288 surface->pixel_bytes, surface->width, surface->row_bytes); in ValidateGraphicSurface()
|