Lines Matching refs:info
85 m->info.activate = FB_ACTIVATE_VBL; in fb_post()
86 m->info.yoffset = offset / m->finfo.line_length; in fb_post()
87 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) { in fb_post()
103 0, 0, m->info.xres, m->info.yres, in fb_post()
108 0, 0, m->info.xres, m->info.yres, in fb_post()
111 memcpy(fb_vaddr, buffer_vaddr, m->finfo.line_length * m->info.yres); in fb_post()
150 struct fb_var_screeninfo info; local
151 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
154 info.reserved[0] = 0;
155 info.reserved[1] = 0;
156 info.reserved[2] = 0;
157 info.xoffset = 0;
158 info.yoffset = 0;
159 info.activate = FB_ACTIVATE_NOW;
165 info.yres_virtual = info.yres * NUM_BUFFERS;
169 info.bits_per_pixel = 32;
170 info.red.offset = 0;
171 info.red.length = 8;
172 info.green.offset = 8;
173 info.green.length = 8;
174 info.blue.offset = 16;
175 info.blue.length = 8;
184 if (ioctl(fd, FBIOPAN_DISPLAY, &info) == -1) {
187 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) == -1) {
190 info.yres_virtual = info.yres;
194 if (info.yres_virtual < info.yres * 2) {
196 info.yres_virtual = info.yres;
199 info.yres_virtual, info.yres*2);
202 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
207 uint64_t( info.upper_margin + info.lower_margin + info.yres )
208 * ( info.left_margin + info.right_margin + info.xres )
209 * info.pixclock
221 if (int(info.width) <= 0 || int(info.height) <= 0) {
224 info.width = ((info.xres * 25.4f)/160.0f + 0.5f);
225 info.height = ((info.yres * 25.4f)/160.0f + 0.5f);
228 float xdpi = (info.xres * 25.4f) / info.width;
229 float ydpi = (info.yres * 25.4f) / info.height;
244 info.xres,
245 info.yres,
246 info.xres_virtual,
247 info.yres_virtual,
248 info.bits_per_pixel,
249 info.red.offset, info.red.length,
250 info.green.offset, info.green.length,
251 info.blue.offset, info.blue.length
257 info.width, xdpi,
258 info.height, ydpi,
271 module->info = info;
281 size_t fbSize = roundUpToPageSize(finfo.line_length * info.yres_virtual);
284 module->numBuffers = info.yres_virtual / info.yres;
338 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3);
339 int format = (m->info.bits_per_pixel == 32)
340 … ? (m->info.red.offset ? HAL_PIXEL_FORMAT_BGRA_8888 : HAL_PIXEL_FORMAT_RGBX_8888)
343 const_cast<uint32_t&>(dev->device.width) = m->info.xres;
344 const_cast<uint32_t&>(dev->device.height) = m->info.yres;