Home
last modified time | relevance | path

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

1234

/system/ulib/gfx/
A Dgfx.c97 if (x + width > surface->width) in gfx_copyrect()
98 width = surface->width - x; in gfx_copyrect()
99 if (x2 + width > surface->width) in gfx_copyrect()
100 width = surface->width - x2; in gfx_copyrect()
140 if (x + width > surface->width) in gfx_fillrect()
141 width = surface->width - x; in gfx_fillrect()
483 if (destx + width > target->width) in gfx_blend()
484 width = target->width - destx; in gfx_blend()
488 if (srcx + width > source->width) in gfx_blend()
489 width = source->width - srcx; in gfx_blend()
[all …]
/system/ulib/gfx/include/gfx/
A Dgfx.h42 unsigned width; member
51 …void (*copyrect)(gfx_surface*, unsigned x, unsigned y, unsigned width, unsigned height, unsigned x…
52 …void (*fillrect)(gfx_surface*, unsigned x, unsigned y, unsigned width, unsigned height, unsigned c…
60 unsigned width; member
65 void gfx_copyrect(gfx_surface* surface, unsigned x, unsigned y, unsigned width, unsigned height, un…
68 void gfx_fillrect(gfx_surface* surface, unsigned x, unsigned y, unsigned width, unsigned height, un…
83 …arget, struct gfx_surface* source, unsigned srcx, unsigned srcy, unsigned width, unsigned height, …
96 surface->fillrect(surface, 0, 0, surface->width, surface->height, color); in gfx_clear()
101 gfx_surface* gfx_create_surface(void* ptr, unsigned width, unsigned height, unsigned stride, unsign…
102 zx_status_t gfx_init_surface(gfx_surface* surface, void* ptr, unsigned width, unsigned height, unsi…
/system/uapp/gfxfractal/
A Dmain.c28 uint32_t width; in main() local
33 fb_get_config(&width, &height, &stride, &format); in main()
45 gfx_surface* gfx = gfx_create_surface((void*)fbo, width, height, stride, in main()
51 gfx_fillrect(gfx, 0, 0, gfx->width, gfx->height, 0xffffffff); in main()
57 bool rotate = (gfx->height > gfx->width); in main()
59 dx= 3.0/((double)gfx->width); in main()
69 for (x = 0; x < gfx->width; x++) { in main()
/system/uapp/gfxtest/
A Dmain.c26 uint32_t width; in main() local
31 fb_get_config(&width, &height, &stride, &format); in main()
43 gfx_surface* gfx = gfx_create_surface((void*)fbo, width, height, stride, in main()
49 gfx_fillrect(gfx, 0, 0, gfx->width, gfx->height, 0xffffffff); in main()
56 …gfx_fillrect(gfx, (gfx->width - d) / 2, (gfx->height - d) / 2, d, d, i % 2 ? 0xff55ff55 : 0xffaa00… in main()
/system/uapp/hidtouch/
A Dmain.c44 uint32_t width; member
86 printf(" width: %u\n", rpt->fingers[i].width); in acer12_touch_dump()
134 printf(" width: %u\n", rpt->fingers[i].width); in paradise_touch_v2_dump()
172 uint32_t xrad = (width + 1) / 2; in draw_points()
194 uint32_t xrad = (width + 1) / 2; in draw_points16()
250 uint32_t width = 2 * rpt->fingers[c].width; in process_acer12_touchscreen_input() local
310 uint32_t width = 5; in process_egalax_touchscreen_input() local
339 uint32_t width = 10; in process_eyoyo_touchscreen_input() local
369 uint32_t width = 10; in process_paradise_touchscreen_input() local
399 uint32_t width = 2 * rpt->fingers[c].width; in process_paradise_touchscreen_v2_input() local
[all …]
/system/dev/bus/virtio/
A Dgpu.cpp60 .width = gd->pmode_.r.width, in virtio_gpu_set_display_controller_interface()
86 unsigned size = ROUNDUP(image->width * image->height * pixel_size, PAGE_SIZE); in virtio_gpu_import_vmo_image()
132 .x_pos = 0, .y_pos = 0, .width = gd->pmode_.r.width, .height = gd->pmode_.r.height, in virtio_gpu_check_configuration()
136 && layer->image.width == gd->pmode_.r.width in virtio_gpu_check_configuration()
167 uint32_t GpuDevice::virtio_gpu_compute_linear_stride(void* ctx, uint32_t width, in virtio_gpu_compute_linear_stride() argument
169 return width; in virtio_gpu_compute_linear_stride()
282 req.width = width; in allocate_2d_resource()
326 req.r.width = width; in set_scanout()
346 req.r.width = width; in flush_resource()
365 req.r.width = width; in transfer_to_host_2d()
[all …]
A Dgpu.h52 void* ctx, uint32_t width, zx_pixel_format_t format);
61 zx_status_t allocate_2d_resource(uint32_t* resource_id, uint32_t width, uint32_t height);
63 …zx_status_t set_scanout(uint32_t scanout_id, uint32_t resource_id, uint32_t width, uint32_t height…
64 zx_status_t flush_resource(uint32_t resource_id, uint32_t width, uint32_t height);
65 zx_status_t transfer_to_host_2d(uint32_t resource_id, uint32_t width, uint32_t height);
/system/dev/display/simple/
A Dsimple-display.cpp40 args.panel.params.width = width_; in DisplayControllerImplSetDisplayControllerInterface()
60 if (image->width != width_ || image->height != height_ in DisplayControllerImplImportVmoImage()
87 .x_pos = 0, .y_pos = 0, .width = width_, .height = height_, in DisplayControllerImplCheckConfiguration()
91 && layer->image.width == width_ in DisplayControllerImplCheckConfiguration()
119 return (width == width_ && format == format_) ? stride_ : 0; in DisplayControllerImplComputeLinearStride()
177 uint32_t width, uint32_t height, in SimpleDisplay() argument
180 width_(width), height_(height), stride_(stride), format_(format) { } in SimpleDisplay()
183 uint32_t format, width, height, stride; in bind_simple_pci_display_bootloader() local
185 &width, &height, &stride); in bind_simple_pci_display_bootloader()
195 uint32_t width, uint32_t height, in bind_simple_pci_display() argument
[all …]
A Dsimple-display.h26 uint32_t width, uint32_t height,
43 uint32_t DisplayControllerImplComputeLinearStride(uint32_t width, zx_pixel_format_t format);
62 uint32_t width, uint32_t height,
/system/uapp/display-test/
A Dvirtual-layer.h16 uint32_t width; member
107 void SetImageDimens(uint32_t width, uint32_t height) { in SetImageDimens() argument
108 image_width_ = width; in SetImageDimens()
111 src_frame_.width = width; in SetImageDimens()
113 dest_frame_.width = width; in SetImageDimens()
116 void SetSrcFrame(uint32_t width, uint32_t height) { in SetSrcFrame() argument
117 src_frame_.width = width; in SetSrcFrame()
120 void SetDestFrame(uint32_t width, uint32_t height) { in SetDestFrame() argument
121 dest_frame_.width = width; in SetDestFrame()
A Dvirtual-layer.cpp28 uint32_t right = fbl::min(a.x_pos + a.width, b.x_pos + b.width); in compute_intersection()
38 intersection->width = right - left; in compute_intersection()
208 uint32_t tmp = dest_frame_.width; in StepLayout()
209 dest_frame_.width = dest_frame_.height; in StepLayout()
228 layers_[i].src.width = layers_[i].dest.width; in StepLayout()
234 layers_[i].src.width = interpolate_scaling(layers_[i].dest.width, frame_num); in StepLayout()
252 display.x_pos += display.width; in StepLayout()
293 msg.src_frame.width = layer.src.width; in SetLayerPositions()
298 msg.dest_frame.width = layer.dest.width; in SetLayerPositions()
375 config.image_config.width = info.width; in Init()
[all …]
A Dimage.h42 uint32_t width, uint32_t height, zx_pixel_format_t format,
48 uint32_t width() { return width_; } in width() function
57 Image(uint32_t width, uint32_t height, int32_t stride,
A Dimage.cpp21 Image::Image(uint32_t width, uint32_t height, int32_t stride, in Image() argument
24 : width_(width), height_(height), stride_(stride), format_(format), in Image()
28 uint32_t width, uint32_t height, zx_pixel_format_t format, in Create() argument
32 stride_msg.width = width; in Create()
48 if (stride_rsp.stride < width) { in Create()
62 alloc_msg.size = fbl::round_up(width, TILE_PIXEL_WIDTH) * in Create()
97 return new Image(width, height, stride_rsp.stride, format, in Create()
189 config_out->width = width_; in GetConfig()
/system/ulib/ddk/include/hw/
A Dreg.h85 #define RMWREG8(addr, startbit, width, val) \ argument
86 writeb((readb(addr) & ~(((1 << (width)) - 1) << (startbit))) | ((val) << (startbit)), (addr))
87 #define RMWREG16(addr, startbit, width, val) \ argument
88 writew((readw(addr) & ~(((1 << (width)) - 1) << (startbit))) | ((val) << (startbit)), (addr))
89 #define RMWREG32(addr, startbit, width, val) \ argument
90 writel((readl(addr) & ~(((1 << (width)) - 1) << (startbit))) | ((val) << (startbit)), (addr))
91 #define RMWREG64(addr, startbit, width, val) \ argument
92 … writell((readll(addr) & ~(((1ull << (width)) - 1) << (startbit))) | ((val) << (startbit)), (addr))
/system/uapp/psutils/
A Dkstats.c117 const int width = 80 / 8 - 1; in memstats() local
119 width, "mem total", in memstats()
120 width, "free", in memstats()
121 width, "VMOs", in memstats()
122 width, "kheap", in memstats()
123 width, "kfree", in memstats()
124 width, "wired", in memstats()
125 width, "mmu", in memstats()
126 width, "ipc", in memstats()
127 width, "other"); in memstats()
[all …]
/system/dev/camera/aml-mipicsi/
A Daml-mipi-adap.cpp142 uint32_t width = info->resolution.width; in AdapFrontEndStart() local
153 val = static_cast<uint32_t>(ceil((width * depth) / static_cast<double>((8 * 16)))); in AdapFrontEndStart()
187 uint32_t width = info->resolution.width; in AdapReaderStart() local
194 val = static_cast<uint32_t>(ceil((width * depth) / (8 * 16))); in AdapReaderStart()
233 pixel_reg.ModifyBits32(info->resolution.width, 0, 13, MIPI_ADAPT_PIXEL0_CNTL0); in AdapPixelStart()
278 uint32_t width, height, alig_width, alig_height, val; in AdapAlignStart() local
279 width = info->resolution.width; in AdapAlignStart()
281 alig_width = width + 40; // hblank > 32 cycles in AdapAlignStart()
283 val = width + 35; // width < val < alig_width in AdapAlignStart()
286 align_reg.ModifyBits32(width, 16, 13, MIPI_ADAPT_ALIG_CNTL1); in AdapAlignStart()
/system/core/virtcon/
A Dvc-gfx.cpp44 vc_tb_gfx = gfx_create_surface(NULL, test->width, font->height, in vc_init_gfx()
51 vc_gfx = gfx_create_surface(NULL, test->width, test->height, in vc_init_gfx()
59 g_status_width = vc_gfx->width / font->width; in vc_init_gfx()
127 zx_status_t vc_init_gfx(zx_handle_t fb_vmo, int32_t width, int32_t height, in vc_init_gfx() argument
143 if ((vc_hw_gfx = gfx_create_surface((void*) vc_hw_gfx_mem, width, height, in vc_init_gfx()
167 if ((vc_tb_gfx = gfx_create_surface((void*) vc_gfx_mem, width, font->height, in vc_init_gfx()
174 if ((vc_gfx = gfx_create_surface((void*) ptr, width, height - font->height, in vc_init_gfx()
179 g_status_width = vc_gfx->width / font->width; in vc_init_gfx()
/system/private/efi/protocol/
A Dpci-root-bridge-io.h34 efi_pci_root_bridge_io_width width,
37 efi_pci_root_bridge_io_width width,
70 efi_pci_root_bridge_io_width width,
75 efi_pci_root_bridge_io_width width,
84 efi_pci_root_bridge_io_width width,
/system/uapp/gfxlatency/
A Dmain.cpp219 ZX_ASSERT(fbl::is_pow2(width)); in blur_rect()
222 int width_mask = width - 1; in blur_rect()
364 stride_msg.width = width; in compute_linear_image_stride()
395 import_msg.image_config.width = width; in import_image()
503 layer_cfg_msg.image_config.width = width; in set_layer_config()
530 pos_msg.src_frame.width = width; in set_layer_position()
534 pos_msg.dest_frame.width = width; in set_layer_position()
1363 (float)(surface->width - width)), in main()
1493 (int32_t)(surface->width - width)); in main()
1520 0, (int32_t)(surface->width - width)); in main()
[all …]
/system/dev/camera/imx227/
A Dimx227-seq.h599 .width = 2200,
617 .width = 1920,
635 .width = 2400,
/system/dev/display/mt8167s-display/
A Dmt8167s-display.h38 Mt8167sDisplay(zx_device_t* parent, uint32_t width, uint32_t height, uint32_t pitch) in Mt8167sDisplay() argument
39 : DeviceType(parent), width_(width), height_(height), pitch_(pitch) {} in Mt8167sDisplay()
54 uint32_t DisplayControllerImplComputeLinearStride(uint32_t width, zx_pixel_format_t format);
A Dmt8167s-display.cpp35 args->panel.params.width = width_; in PopulateAddedDisplayArgs()
43 uint32_t Mt8167sDisplay::DisplayControllerImplComputeLinearStride(uint32_t width, in DisplayControllerImplComputeLinearStride() argument
45 return ROUNDUP(width, 32 / ZX_PIXEL_FORMAT_BYTES(format)); in DisplayControllerImplComputeLinearStride()
77 uint32_t stride = DisplayControllerImplComputeLinearStride(image->width, image->pixel_format); in DisplayControllerImplImportVmoImage()
140 if (layer.src_frame.width != layer.dest_frame.width || in DisplayControllerImplCheckConfiguration()
142 layer.image.width != layer.dest_frame.width || in DisplayControllerImplCheckConfiguration()
/system/dev/display/intel-i915/
A Dtiling.h36 static inline uint32_t width_in_tiles(uint32_t tiling, uint32_t width, in width_in_tiles() argument
39 return ((width * ZX_PIXEL_FORMAT_BYTES(format))+ tile_width - 1) / tile_width; in width_in_tiles()
/system/dev/display/astro-display/
A Dastro-display.h49 AstroDisplay(zx_device_t* parent, uint32_t width, uint32_t height) in AstroDisplay() argument
50 : DeviceType(parent), width_(width), height_(height) {} in AstroDisplay()
66 uint32_t DisplayControllerImplComputeLinearStride(uint32_t width, zx_pixel_format_t format);
/system/dev/bus/pci/kpci/
A Dproxy.c86 static zx_status_t pci_op_config_read(void* ctx, uint16_t offset, size_t width, uint32_t* val) { in pci_op_config_read() argument
88 if (width > sizeof(uint32_t) || in pci_op_config_read()
96 .width = width, in pci_op_config_read()
110 static zx_status_t pci_op_config_write(void* ctx, uint16_t offset, size_t width, uint32_t val) { in pci_op_config_write() argument
112 if (width > sizeof(uint32_t)) { in pci_op_config_write()
119 .width = width, in pci_op_config_write()

Completed in 71 milliseconds

1234