Home
last modified time | relevance | path

Searched refs:width (Results 1 – 16 of 16) sorted by relevance

/bootable/recovery/minui/
Dresources.cpp43 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()
[all …]
Dgraphics.cpp48 return x < 0 || x >= (swapped ? gr_draw->height : gr_draw->width) || y < 0 || in outside()
49 y >= (swapped ? gr_draw->width : gr_draw->height); in outside()
128 return reinterpret_cast<uint32_t*>(surface->data()) + x * row_pixels + (surface->width - y); in PixelAt()
131 (surface->width - 1 - x); in PixelAt()
142 int width, int height) { in TextBlend() argument
147 for (int i = 0; i < width; ++i, incr_x(&px, dst_row_pixels)) { in TextBlend()
201 if (outside(x, y) || outside(x + icon->width - 1, y + icon->height - 1)) return; in gr_texticon()
206 TextBlend(src_p, icon->row_bytes, dst_p, row_pixels, icon->width, icon->height); in gr_texticon()
222 gr_draw->row_bytes == gr_draw->width * gr_draw->pixel_bytes) { in gr_clear()
226 int row_diff = gr_draw->row_bytes / gr_draw->pixel_bytes - gr_draw->width; in gr_clear()
[all …]
Dgraphics_drm.cpp79 std::unique_ptr<GRSurfaceDrm> GRSurfaceDrm::Create(int drm_fd, int width, int height) { in Create() argument
100 create_dumb.width = width; in Create()
111 width, height, create_dumb.pitch, create_dumb.bpp / 8, drm_fd, create_dumb.handle)); in Create()
118 if (drmModeAddFB2(drm_fd, width, height, format, handles, pitches, offsets, &surface->fb_id, 0) != in Create()
343 int width = main_monitor_crtc->mode.hdisplay; in Init() local
348 GRSurfaceDrms[0] = GRSurfaceDrm::Create(drm_fd, width, height); in Init()
349 GRSurfaceDrms[1] = GRSurfaceDrm::Create(drm_fd, width, height); in Init()
Dgraphics_drm.h34 static std::unique_ptr<GRSurfaceDrm> Create(int drm_fd, int width, int height);
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()
Dgraphics_fbdev.cpp35 std::unique_ptr<GRSurfaceFbdev> GRSurfaceFbdev::Create(size_t width, size_t height, in Create() argument
38 return std::unique_ptr<GRSurfaceFbdev>(new GRSurfaceFbdev(width, height, row_bytes, pixel_bytes)); in Create()
110 GRSurfaceFbdev::Create(gr_framebuffer[0]->width, gr_framebuffer[0]->height, in Init()
133 printf("framebuffer: %d (%zu x %zu)\n", fb_fd.get(), gr_draw->width, gr_draw->height); in Init()
Dgraphics_fbdev.h34 static std::unique_ptr<GRSurfaceFbdev> Create(size_t width, size_t height, size_t row_bytes,
/bootable/recovery/minui/include/minui/
Dminui.h45 static std::unique_ptr<GRSurface> Create(size_t width, size_t height, size_t row_bytes,
63 size_t width; 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/
Dscreen_ui.cpp286 if (surface->pixel_bytes != 1 || surface->width != surface->row_bytes) { in ValidateGraphicSurface()
288 surface->pixel_bytes, surface->width, surface->row_bytes); in ValidateGraphicSurface()
292 if (surface->width > max_width || surface->height > max_height - y) { in ValidateGraphicSurface()
296 surface->width, surface->height, max_width, max_height, y); in ValidateGraphicSurface()
458 int width = gr_get_width(progress_bar_empty_.get()); in draw_foreground_locked() local
461 int progress_x = (ScreenWidth() - width) / 2; in draw_foreground_locked()
466 DrawFill(progress_x, progress_y, width, height); in draw_foreground_locked()
470 int pos = static_cast<int>(p * width); in draw_foreground_locked()
475 DrawSurface(progress_bar_fill_.get(), width - pos, 0, pos, height, in draw_foreground_locked()
476 progress_x + width - pos, progress_y); in draw_foreground_locked()
[all …]
/bootable/recovery/
Dinterlace-frames.py81 width, height = img.size
84 out = Image.new('RGB', (width, height))
86 for i in range(width):
/bootable/recovery/tools/recovery_l10n/src/com/android/recovery_l10n/
DMain.java227 int width = 10;
235 if (w > width) width = w;
245 Log.i(TAG, "output bitmap is " + width + " x " + height);
246 Bitmap out = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
248 int[] pixels = new int[maxHeight * width];
/bootable/recovery/tools/image_generator/
DImageGenerator.java179 LineInfo(AttributedString text, int width) { in LineInfo() argument
181 mLineWidth = width; in LineInfo()
203 public void addLine(String text, int width, Font textFont, Font fallbackFont) { in addLine() argument
232 mWrappedLines.add(new LineInfo(attributedText, width)); in addLine()
467 private List<Integer> encodeTextInfo(int width, int height, String locale) { in encodeTextInfo() argument
471 width & 0xff, in encodeTextInfo()
472 width >> 8, in encodeTextInfo()
582 private void resize(int width, int height) { in resize() argument
583 BufferedImage resizedImage = new BufferedImage(width, height, BufferedImage.TYPE_BYTE_GRAY); in resize()
589 mImageWidth = width; in resize()
/bootable/recovery/tools/recovery_l10n/
DREADME.md11 * We can set up the maximum width of the final png image in res/layout/main.xml
12 Currently, the image width is 1200px for xxxhdpi, 900px for xxhdpi and
/bootable/recovery/tests/unit/
Dresources_test.cpp99 ASSERT_LT(static_cast<png_uint_32>(5), png_->width()); in SetUp()
109 std::vector<unsigned char> row(png_->width()); in TEST_P()
/bootable/recovery/recovery_ui/include/recovery_ui/
Dvr_ui.h39 void DrawHighlightBar(int x, int y, int width, int height) const override;
Dscreen_ui.h54 virtual void DrawHighlightBar(int x, int y, int width, int height) const = 0;
325 void DrawHighlightBar(int x, int y, int width, int height) const override;
/bootable/recovery/minui/include/private/
Dresources.h35 png_uint_32 width() const { in width() function