Lines Matching refs:info

86     m->info.activate = FB_ACTIVATE_VBL;
87 m->info.yoffset = (int)(offset / m->finfo.line_length);
88 if (ioctl(ctx->fbFd, FBIOPUT_VSCREENINFO, &m->info) == -1) {
140 struct fb_var_screeninfo info;
141 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) {
146 info.reserved[0] = 0;
147 info.reserved[1] = 0;
148 info.reserved[2] = 0;
149 info.xoffset = 0;
150 info.yoffset = 0;
151 info.activate = FB_ACTIVATE_NOW;
161 if(info.bits_per_pixel == 32) {
165 info.bits_per_pixel = 32;
166 info.red.offset = 24;
167 info.red.length = 8;
168 info.green.offset = 16;
169 info.green.length = 8;
170 info.blue.offset = 8;
171 info.blue.length = 8;
172 info.transp.offset = 0;
173 info.transp.length = 8;
190 info.bits_per_pixel = 16;
191 info.red.offset = 11;
192 info.red.length = 5;
193 info.green.offset = 5;
194 info.green.length = 6;
195 info.blue.offset = 0;
196 info.blue.length = 5;
197 info.transp.offset = 0;
198 info.transp.length = 0;
203 unsigned int size = roundUpToPageSize(info.yres * info.xres *
204 (info.bits_per_pixel/8));
224 uint32_t line_length = (info.xres * info.bits_per_pixel / 8);
225 info.yres_virtual = (uint32_t) ((size * numberOfBuffers) / line_length);
229 if (info.yres_virtual < ((size * 2) / line_length) ) {
231 info.yres_virtual = (int)(size / line_length);
234 info.yres_virtual, info.yres*2);
237 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) {
242 if (int(info.width) <= 0 || int(info.height) <= 0) {
245 info.width = (uint32_t)(((float)(info.xres) * 25.4f)/160.0f + 0.5f);
246 info.height = (uint32_t)(((float)(info.yres) * 25.4f)/160.0f + 0.5f);
249 float xdpi = ((float)(info.xres) * 25.4f) / (float)info.width;
250 float ydpi = ((float)(info.yres) * 25.4f) / (float)info.height;
265 float fps = info.reserved[3] & 0xFF;
279 info.xres,
280 info.yres,
281 info.xres_virtual,
282 info.yres_virtual,
283 info.bits_per_pixel,
284 info.red.offset, info.red.length,
285 info.green.offset, info.green.length,
286 info.blue.offset, info.blue.length
292 info.width, xdpi,
293 info.height, ydpi,
309 module->info = info;
322 module->numBuffers = info.yres_virtual / info.yres;
325 unsigned int fbSize = roundUpToPageSize(finfo.line_length * info.yres)*
356 module->fbFormat, info.xres, info.yres);
430 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3);
432 const_cast<uint32_t&>(dev->device.width) = m->info.xres;
433 const_cast<uint32_t&>(dev->device.height) = m->info.yres;