Home | History | Annotate | Download | only in gralloc

Lines Matching full:info

86 		             0, 0, m->info.xres, m->info.yres, NULL);
90 m->info.activate = FB_ACTIVATE_VBL;
91 m->info.yoffset = offset / m->finfo.line_length;
99 if (ioctl(fbdev_fd, FBIOPAN_DISPLAY, &m->info) == -1)
151 if (ioctl(fbdev_fd, FBIOPUT_VSCREENINFO, &m->info) == -1)
174 0, 0, m->info.xres, m->info.yres, &fb_vaddr);
177 0, 0, m->info.xres, m->info.yres, &buffer_vaddr);
179 memcpy(fb_vaddr, buffer_vaddr, m->finfo.line_length * m->info.yres);
225 struct fb_var_screeninfo info;
227 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
232 info.reserved[0] = 0;
233 info.reserved[1] = 0;
234 info.reserved[2] = 0;
235 info.xoffset = 0;
236 info.yoffset = 0;
237 info.activate = FB_ACTIVATE_NOW;
243 info.bits_per_pixel = 16;
244 info.red.offset = 11;
245 info.red.length = 5;
246 info.green.offset = 5;
247 info.green.length = 6;
248 info.blue.offset = 0;
249 info.blue.length = 5;
250 info.transp.offset = 0;
251 info.transp.length = 0;
256 info.bits_per_pixel = 32;
257 info.red.offset = 0;
258 info.red.length = 8;
259 info.green.offset = 8;
260 info.green.length = 8;
261 info.blue.offset = 16;
262 info.blue.length = 8;
263 info.transp.offset = 24;
264 info.transp.length = 8;
270 info.yres_virtual = info.yres * NUM_BUFFERS;
274 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) == -1)
276 info.yres_virtual = info.yres;
281 if (info.yres_virtual < info.yres * 2)
284 info.yres_virtual = info.yres;
286 AWAR("page flipping not supported (yres_virtual=%d, requested=%d)", info.yres_virtual, info.yres * 2);
289 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
296 if (info.pixclock > 0)
300 uint64_t(info.upper_margin + info.lower_margin + info.yres + info.hsync_len)
301 * (info.left_margin + info.right_margin + info.xres + info.vsync_len)
302 * info.pixclock
315 if (int(info.width) <= 0 || int(info.height) <= 0)
319 info.width = ((info.xres * 25.4f) / 160.0f + 0.5f);
320 info.height = ((info.yres * 25.4f) / 160.0f + 0.5f);
323 float xdpi = (info.xres * 25.4f) / info.width;
324 float ydpi = (info.yres * 25.4f) / info.height;
339 info.xres,
340 info.yres,
341 info.xres_virtual,
342 info.yres_virtual,
343 info.bits_per_pixel,
344 info.red.offset, info.red.length,
345 info.green.offset, info.green.length,
346 info.blue.offset, info.blue.length);
351 info.width, xdpi,
352 info.height, ydpi,
366 module->info = info;
375 size_t fbSize = round_up_to_page_size(finfo.line_length * info.yres_virtual);
390 module->numBuffers = info.yres_virtual / info.yres;
492 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3);
494 const_cast<uint32_t &>(dev->width) = m->info.xres;
495 const_cast<uint32_t &>(dev->height) = m->info.yres;