Home | History | Annotate | Download | only in libgralloc

Lines Matching refs:info

93     m->info.activate = FB_ACTIVATE_VBL;
94 m->info.yoffset = (int)(offset / m->finfo.line_length);
95 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) {
146 struct fb_var_screeninfo info;
147 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) {
152 info.reserved[0] = 0;
153 info.reserved[1] = 0;
154 info.reserved[2] = 0;
155 info.xoffset = 0;
156 info.yoffset = 0;
157 info.activate = FB_ACTIVATE_NOW;
167 if(info.bits_per_pixel == 32) {
171 info.bits_per_pixel = 32;
172 info.red.offset = 24;
173 info.red.length = 8;
174 info.green.offset = 16;
175 info.green.length = 8;
176 info.blue.offset = 8;
177 info.blue.length = 8;
178 info.transp.offset = 0;
179 info.transp.length = 8;
196 info.bits_per_pixel = 16;
197 info.red.offset = 11;
198 info.red.length = 5;
199 info.green.offset = 5;
200 info.green.length = 6;
201 info.blue.offset = 0;
202 info.blue.length = 5;
203 info.transp.offset = 0;
204 info.transp.length = 0;
209 size_t size = roundUpToPageSize(info.yres * info.xres *
210 (info.bits_per_pixel/8));
230 uint32_t line_length = (info.xres * info.bits_per_pixel / 8);
231 info.yres_virtual = (uint32_t) ((size * numberOfBuffers) / line_length);
235 if (info.yres_virtual < ((size * 2) / line_length) ) {
237 info.yres_virtual = (int)(size / line_length);
240 info.yres_virtual, info.yres*2);
243 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) {
248 if (int(info.width) <= 0 || int(info.height) <= 0) {
251 info.width = (uint32_t)(((float)(info.xres) * 25.4f)/160.0f + 0.5f);
252 info.height = (uint32_t)(((float)(info.yres) * 25.4f)/160.0f + 0.5f);
255 float xdpi = ((float)(info.xres) * 25.4f) / (float)info.width;
256 float ydpi = ((float)(info.yres) * 25.4f) / (float)info.height;
271 float fps = info.reserved[3] & 0xFF;
285 info.xres,
286 info.yres,
287 info.xres_virtual,
288 info.yres_virtual,
289 info.bits_per_pixel,
290 info.red.offset, info.red.length,
291 info.green.offset, info.green.length,
292 info.blue.offset, info.blue.length
298 info.width, xdpi,
299 info.height, ydpi,
315 module->info = info;
328 module->numBuffers = info.yres_virtual / info.yres;
331 size_t fbSize = roundUpToPageSize(finfo.line_length * info.yres)*
336 module->fbFormat, info.xres, info.yres);
410 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3);
412 const_cast<uint32_t&>(dev->device.width) = m->info.xres;
413 const_cast<uint32_t&>(dev->device.height) = m->info.yres;