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;
97 if (ioctl(m->framebuffer->fd, FBIOPAN_DISPLAY, &m->info) == -1)
149 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1)
172 0, 0, m->info.xres, m->info.yres, &fb_vaddr);
175 0, 0, m->info.xres, m->info.yres, &buffer_vaddr);
177 memcpy(fb_vaddr, buffer_vaddr, m->finfo.line_length * m->info.yres);
223 struct fb_var_screeninfo info;
225 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
230 info.reserved[0] = 0;
231 info.reserved[1] = 0;
232 info.reserved[2] = 0;
233 info.xoffset = 0;
234 info.yoffset = 0;
235 info.activate = FB_ACTIVATE_NOW;
241 info.bits_per_pixel = 16;
242 info.red.offset = 11;
243 info.red.length = 5;
244 info.green.offset = 5;
245 info.green.length = 6;
246 info.blue.offset = 0;
247 info.blue.length = 5;
248 info.transp.offset = 0;
249 info.transp.length = 0;
254 info.bits_per_pixel = 32;
255 info.red.offset = 0;
256 info.red.length = 8;
257 info.green.offset = 8;
258 info.green.length = 8;
259 info.blue.offset = 16;
260 info.blue.length = 8;
261 info.transp.offset = 24;
262 info.transp.length = 8;
268 info.yres_virtual = info.yres * NUM_BUFFERS;
272 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) == -1)
274 info.yres_virtual = info.yres;
279 if (info.yres_virtual < info.yres * 2)
282 info.yres_virtual = info.yres;
284 AWAR("page flipping not supported (yres_virtual=%d, requested=%d)", info.yres_virtual, info.yres * 2);
287 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
294 if (info.pixclock > 0)
298 uint64_t(info.upper_margin + info.lower_margin + info.yres + info.hsync_len)
299 * (info.left_margin + info.right_margin + info.xres + info.vsync_len)
300 * info.pixclock
313 if (int(info.width) <= 0 || int(info.height) <= 0)
317 info.width = ((info.xres * 25.4f) / 160.0f + 0.5f);
318 info.height = ((info.yres * 25.4f) / 160.0f + 0.5f);
321 float xdpi = (info.xres * 25.4f) / info.width;
322 float ydpi = (info.yres * 25.4f) / info.height;
337 info.xres,
338 info.yres,
339 info.xres_virtual,
340 info.yres_virtual,
341 info.bits_per_pixel,
342 info.red.offset, info.red.length,
343 info.green.offset, info.green.length,
344 info.blue.offset, info.blue.length);
349 info.width, xdpi,
350 info.height, ydpi,
364 module->info = info;
373 size_t fbSize = round_up_to_page_size(finfo.line_length * info.yres_virtual);
388 module->numBuffers = info.yres_virtual / info.yres;
484 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3);
486 const_cast<uint32_t &>(dev->width) = m->info.xres;
487 const_cast<uint32_t &>(dev->height) = m->info.yres;