Home
last modified time | relevance | path

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

/bootable/recovery/minui/
Dresources.cpp63 png_uint_32 height() const { in height() function in PngHandler
182 static GRSurface* init_display_surface(png_uint_32 width, png_uint_32 height) { in init_display_surface() argument
183 GRSurface* surface = malloc_surface(width * height * 4); in init_display_surface()
187 surface->height = height; in init_display_surface()
247 png_uint_32 height = png_handler.height(); in res_create_display_surface() local
249 GRSurface* surface = init_display_surface(width, height); in res_create_display_surface()
258 for (png_uint_32 y = 0; y < height; ++y) { in res_create_display_surface()
280 png_uint_32 height = png_handler.height(); in res_create_multi_display_surface() local
306 if (height % *frames != 0) { in res_create_multi_display_surface()
307 printf("bad height (%d) for frame count (%d)\n", height, *frames); in res_create_multi_display_surface()
[all …]
Dgraphics_fbdev.cpp41 vi.yres_virtual = gr_framebuffer[0].height * 2; in SetDisplayedFramebuffer()
42 vi.yoffset = n * gr_framebuffer[0].height; in SetDisplayedFramebuffer()
100 gr_framebuffer[0].height = vi.yres; in Init()
104 memset(gr_framebuffer[0].data, 0, gr_framebuffer[0].height * gr_framebuffer[0].row_bytes); in Init()
112 gr_framebuffer[0].data + gr_framebuffer[0].height * gr_framebuffer[0].row_bytes; in Init()
125 gr_draw->data = static_cast<unsigned char*>(malloc(gr_draw->height * gr_draw->row_bytes)); in Init()
132 memset(gr_draw->data, 0, gr_draw->height * gr_draw->row_bytes); in Init()
136 printf("framebuffer: %d (%d x %d)\n", fb_fd, gr_draw->width, gr_draw->height); in Init()
153 memcpy(gr_framebuffer[0].data, gr_draw->data, gr_draw->height * gr_draw->row_bytes); in Flip()
Dgraphics.cpp46 return x < 0 || x >= (rotation % 2 ? gr_draw->height : gr_draw->width) || y < 0 || in outside()
47 y >= (rotation % 2 ? gr_draw->width : gr_draw->height); in outside()
107 return reinterpret_cast<uint32_t*>(surf->data) + (surf->height - 1 - y) * row_pixels + in pixel_at()
110 return reinterpret_cast<uint32_t*>(surf->data) + (surf->height - 1 - x) * row_pixels + y; in pixel_at()
118 int width, int height) { in text_blend() argument
120 for (int j = 0; j < height; ++j) { in text_blend()
141 bold = bold && (font->texture->height != font->char_height); in gr_text()
177 if (outside(x, y) || outside(x + icon->width - 1, y + icon->height - 1)) return; in gr_texticon()
183 text_blend(src_p, icon->row_bytes, dst_p, row_pixels, icon->width, icon->height); in gr_texticon()
200 memset(gr_draw->data, gr_current & 0xff, gr_draw->height * gr_draw->row_bytes); in gr_clear()
[all …]
Dfont_10x18.h3 unsigned height; member
9 .height = 18,
Dmkfont.c12 n = gimp_image.width * gimp_image.height; in main()
23 … = %d,\n .height = %d,\n .cwidth = %d,\n .cheight = %d,\n", gimp_image.width, gimp_image.height, in main()
24 gimp_image.width / 96, gimp_image.height); in main()
Dgraphics_drm.cpp71 munmap(surface->data, surface->row_bytes * surface->height); in DrmDestroySurface()
111 GRSurfaceDrm* MinuiBackendDrm::DrmCreateSurface(int width, int height) { in DrmCreateSurface() argument
127 create_dumb.height = height; in DrmCreateSurface()
147 drmModeAddFB2(drm_fd, width, height, format, handles, pitches, offsets, &(surface->fb_id), 0); in DrmCreateSurface()
163 surface->height = height; in DrmCreateSurface()
167 surface->data = static_cast<unsigned char*>(mmap(nullptr, surface->height * surface->row_bytes, in DrmCreateSurface()
358 int height = main_monitor_crtc->mode.vdisplay; in Init() local
362 GRSurfaceDrms[0] = DrmCreateSurface(width, height); in Init()
363 GRSurfaceDrms[1] = DrmCreateSurface(width, height); in Init()
Dgraphics_adf.cpp44 surf->height = mode->vdisplay; in SurfaceInit()
49 mmap(nullptr, surf->pitch * surf->height, PROT_WRITE, MAP_SHARED, surf->fd, surf->offset)); in SurfaceInit()
173 int fence_fd = adf_interface_simple_post(intf_fd, eng_id, surf->width, surf->height, format, in Flip()
187 munmap(surf->data, surf->pitch * surf->height); in SurfaceDestroy()
Dgraphics_drm.h46 GRSurfaceDrm* DrmCreateSurface(int width, int height);
/bootable/recovery/
Dinterlace-frames.py81 width, height = img.size
82 height /= num_frames
84 out = Image.new('RGB', (width, height))
87 for j in range(height):
Dvr_ui.cpp56 void VrRecoveryUI::DrawHighlightBar(int /* x */, int y, int /* width */, int height) const { in DrawHighlightBar()
57 …gr_fill(kMarginWidth + kStereoOffset, y, ScreenWidth() - kMarginWidth + kStereoOffset, y + height); in DrawHighlightBar()
59 gr_fb_width() - kMarginWidth - kStereoOffset, y + height); in DrawHighlightBar()
Dvr_ui.h36 void DrawHighlightBar(int x, int y, int width, int height) const override;
Dscreen_ui.cpp197 int height = gr_get_height(progressBarEmpty); in draw_foreground_locked() local
204 DrawFill(progress_x, progress_y, width, height); in draw_foreground_locked()
213 DrawSurface(progressBarFill, width - pos, 0, pos, height, progress_x + width - pos, in draw_foreground_locked()
217 DrawSurface(progressBarEmpty, 0, 0, width - pos, height, progress_x, progress_y); in draw_foreground_locked()
222 DrawSurface(progressBarFill, 0, 0, pos, height, progress_x, progress_y); in draw_foreground_locked()
225 DrawSurface(progressBarEmpty, pos, 0, width - pos, height, progress_x + pos, progress_y); in draw_foreground_locked()
355 void ScreenRecoveryUI::DrawHighlightBar(int x, int y, int width, int height) const { in DrawHighlightBar()
356 gr_fill(x, y, x + width, y + height); in DrawHighlightBar()
Dscreen_ui.h133 virtual void DrawHighlightBar(int x, int y, int width, int height) const;
/bootable/recovery/tests/manual/
Drecovery_test.cpp163 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, nullptr, nullptr, in SetUp()
167 ASSERT_LT(static_cast<png_uint_32>(0), height); in SetUp()
190 png_uint_32 width, height; member in ResourceTest
199 for (png_uint_32 y = 0; y < height; ++y) { in TEST_P()
209 ASSERT_GT(height, y + 1 + h) << "Locale: " << kLocale << " is not found in the file."; in TEST_P()
/bootable/recovery/tools/recovery_l10n/src/com/android/recovery_l10n/
DMain.java226 int height = 2;
233 height += h+1;
245 Log.i(TAG, "output bitmap is " + width + " x " + height);
246 Bitmap out = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
/bootable/recovery/minui/include/minui/
Dminui.h32 int height; member