Home | History | Annotate | Download | only in libgralloc

Lines Matching refs:info

94     m->info.activate = FB_ACTIVATE_VBL;
95 m->info.yoffset = (int)(offset / m->finfo.line_length);
96 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) {
147 struct fb_var_screeninfo info;
148 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) {
153 info.reserved[0] = 0;
154 info.reserved[1] = 0;
155 info.reserved[2] = 0;
156 info.xoffset = 0;
157 info.yoffset = 0;
158 info.activate = FB_ACTIVATE_NOW;
168 if(info.bits_per_pixel == 32) {
172 info.bits_per_pixel = 32;
173 info.red.offset = 24;
174 info.red.length = 8;
175 info.green.offset = 16;
176 info.green.length = 8;
177 info.blue.offset = 8;
178 info.blue.length = 8;
179 info.transp.offset = 0;
180 info.transp.length = 8;
197 info.bits_per_pixel = 16;
198 info.red.offset = 11;
199 info.red.length = 5;
200 info.green.offset = 5;
201 info.green.length = 6;
202 info.blue.offset = 0;
203 info.blue.length = 5;
204 info.transp.offset = 0;
205 info.transp.length = 0;
210 unsigned int size = roundUpToPageSize(info.yres * info.xres *
211 (info.bits_per_pixel/8));
231 uint32_t line_length = (info.xres * info.bits_per_pixel / 8);
232 info.yres_virtual = (uint32_t) ((size * numberOfBuffers) / line_length);
236 if (info.yres_virtual < ((size * 2) / line_length) ) {
238 info.yres_virtual = (int)(size / line_length);
241 info.yres_virtual, info.yres*2);
244 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) {
249 if (int(info.width) <= 0 || int(info.height) <= 0) {
252 info.width = (uint32_t)(((float)(info.xres) * 25.4f)/160.0f + 0.5f);
253 info.height = (uint32_t)(((float)(info.yres) * 25.4f)/160.0f + 0.5f);
256 float xdpi = ((float)(info.xres) * 25.4f) / (float)info.width;
257 float ydpi = ((float)(info.yres) * 25.4f) / (float)info.height;
272 float fps = info.reserved[3] & 0xFF;
286 info.xres,
287 info.yres,
288 info.xres_virtual,
289 info.yres_virtual,
290 info.bits_per_pixel,
291 info.red.offset, info.red.length,
292 info.green.offset, info.green.length,
293 info.blue.offset, info.blue.length
299 info.width, xdpi,
300 info.height, ydpi,
316 module->info = info;
329 module->numBuffers = info.yres_virtual / info.yres;
332 unsigned int fbSize = roundUpToPageSize(finfo.line_length * info.yres)*
337 module->fbFormat, info.xres, info.yres);
411 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3);
413 const_cast<uint32_t&>(dev->device.width) = m->info.xres;
414 const_cast<uint32_t&>(dev->device.height) = m->info.yres;