Lines Matching refs:info

94     m->info.activate = FB_ACTIVATE_VBL;
95 m->info.yoffset = (int)(offset / m->finfo.line_length);
96 if (ioctl(ctx->fbFd, FBIOPUT_VSCREENINFO, &m->info) == -1) {
148 struct fb_var_screeninfo info;
149 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;
169 if(info.bits_per_pixel == 32) {
173 info.bits_per_pixel = 32;
174 info.red.offset = 24;
175 info.red.length = 8;
176 info.green.offset = 16;
177 info.green.length = 8;
178 info.blue.offset = 8;
179 info.blue.length = 8;
180 info.transp.offset = 0;
181 info.transp.length = 8;
198 info.bits_per_pixel = 16;
199 info.red.offset = 11;
200 info.red.length = 5;
201 info.green.offset = 5;
202 info.green.length = 6;
203 info.blue.offset = 0;
204 info.blue.length = 5;
205 info.transp.offset = 0;
206 info.transp.length = 0;
211 unsigned int size = roundUpToPageSize(info.yres * info.xres *
212 (info.bits_per_pixel/8));
232 uint32_t line_length = (info.xres * info.bits_per_pixel / 8);
233 info.yres_virtual = (uint32_t) ((size * numberOfBuffers) / line_length);
237 if (info.yres_virtual < ((size * 2) / line_length) ) {
239 info.yres_virtual = (int)(size / line_length);
242 info.yres_virtual, info.yres*2);
245 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) {
250 if (int(info.width) <= 0 || int(info.height) <= 0) {
253 info.width = (uint32_t)(((float)(info.xres) * 25.4f)/160.0f + 0.5f);
254 info.height = (uint32_t)(((float)(info.yres) * 25.4f)/160.0f + 0.5f);
257 float xdpi = ((float)(info.xres) * 25.4f) / (float)info.width;
258 float ydpi = ((float)(info.yres) * 25.4f) / (float)info.height;
273 float fps = info.reserved[3] & 0xFF;
287 info.xres,
288 info.yres,
289 info.xres_virtual,
290 info.yres_virtual,
291 info.bits_per_pixel,
292 info.red.offset, info.red.length,
293 info.green.offset, info.green.length,
294 info.blue.offset, info.blue.length
300 info.width, xdpi,
301 info.height, ydpi,
317 module->info = info;
330 module->numBuffers = info.yres_virtual / info.yres;
333 unsigned int fbSize = roundUpToPageSize(finfo.line_length * info.yres)*
364 module->fbFormat, info.xres, info.yres);
438 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3);
440 const_cast<uint32_t&>(dev->device.width) = m->info.xres;
441 const_cast<uint32_t&>(dev->device.height) = m->info.yres;