Home | History | Annotate | Download | only in libgralloc

Lines Matching defs:info

92     m->info.activate = FB_ACTIVATE_VBL;
93 m->info.yoffset = offset / m->finfo.line_length;
94 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) {
142 struct fb_var_screeninfo info;
143 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) {
148 info.reserved[0] = 0;
149 info.reserved[1] = 0;
150 info.reserved[2] = 0;
151 info.xoffset = 0;
152 info.yoffset = 0;
153 info.activate = FB_ACTIVATE_NOW;
163 if(info.bits_per_pixel == 32) {
167 info.bits_per_pixel = 32;
168 info.red.offset = 24;
169 info.red.length = 8;
170 info.green.offset = 16;
171 info.green.length = 8;
172 info.blue.offset = 8;
173 info.blue.length = 8;
174 info.transp.offset = 0;
175 info.transp.length = 8;
192 info.bits_per_pixel = 16;
193 info.red.offset = 11;
194 info.red.length = 5;
195 info.green.offset = 5;
196 info.green.length = 6;
197 info.blue.offset = 0;
198 info.blue.length = 5;
199 info.transp.offset = 0;
200 info.transp.length = 0;
205 int size = roundUpToPageSize(info.yres * info.xres *
206 (info.bits_per_pixel/8));
226 uint32_t line_length = (info.xres * info.bits_per_pixel / 8);
227 info.yres_virtual = (size * numberOfBuffers) / line_length;
231 if (info.yres_virtual < ((size * 2) / line_length) ) {
233 info.yres_virtual = size / line_length;
236 info.yres_virtual, info.yres*2);
239 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) {
244 if (int(info.width) <= 0 || int(info.height) <= 0) {
247 info.width = ((info.xres * 25.4f)/160.0f + 0.5f);
248 info.height = ((info.yres * 25.4f)/160.0f + 0.5f);
251 float xdpi = (info.xres * 25.4f) / info.width;
252 float ydpi = (info.yres * 25.4f) / info.height;
266 float fps = info.reserved[3] & 0xFF;
280 info.xres,
281 info.yres,
282 info.xres_virtual,
283 info.yres_virtual,
284 info.bits_per_pixel,
285 info.red.offset, info.red.length,
286 info.green.offset, info.green.length,
287 info.blue.offset, info.blue.length
293 info.width, xdpi,
294 info.height, ydpi,
310 module->info = info;
324 module->numBuffers = info.yres_virtual / info.yres;
327 size_t fbSize = roundUpToPageSize(finfo.line_length * info.yres)*
332 module->fbFormat, info.xres, info.yres);
407 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3);
409 const_cast<uint32_t&>(dev->device.width) = m->info.xres;
410 const_cast<uint32_t&>(dev->device.height) = m->info.yres;