Home | History | Annotate | Download | only in libgralloc

Lines Matching refs:info

88     m->info.activate = FB_ACTIVATE_VBL;
89 m->info.yoffset = (int)(offset / m->finfo.line_length);
90 if (ioctl(ctx->fbFd, FBIOPUT_VSCREENINFO, &m->info) == -1) {
144 struct fb_var_screeninfo info;
145 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) {
150 info.reserved[0] = 0;
151 info.reserved[1] = 0;
152 info.reserved[2] = 0;
153 info.xoffset = 0;
154 info.yoffset = 0;
155 info.activate = FB_ACTIVATE_NOW;
165 if(info.bits_per_pixel == 32) {
169 info.bits_per_pixel = 32;
170 info.red.offset = 24;
171 info.red.length = 8;
172 info.green.offset = 16;
173 info.green.length = 8;
174 info.blue.offset = 8;
175 info.blue.length = 8;
176 info.transp.offset = 0;
177 info.transp.length = 8;
194 info.bits_per_pixel = 16;
195 info.red.offset = 11;
196 info.red.length = 5;
197 info.green.offset = 5;
198 info.green.length = 6;
199 info.blue.offset = 0;
200 info.blue.length = 5;
201 info.transp.offset = 0;
202 info.transp.length = 0;
207 unsigned int size = roundUpToPageSize(info.yres * info.xres *
208 (info.bits_per_pixel/8));
228 uint32_t line_length = (info.xres * info.bits_per_pixel / 8);
229 info.yres_virtual = (uint32_t) ((size * numberOfBuffers) / line_length);
233 if (info.yres_virtual < ((size * 2) / line_length) ) {
235 info.yres_virtual = (int)(size / line_length);
238 info.yres_virtual, info.yres*2);
241 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) {
246 if (int(info.width) <= 0 || int(info.height) <= 0) {
249 info.width = (uint32_t)(((float)(info.xres) * 25.4f)/160.0f + 0.5f);
250 info.height = (uint32_t)(((float)(info.yres) * 25.4f)/160.0f + 0.5f);
253 float xdpi = ((float)(info.xres) * 25.4f) / (float)info.width;
254 float ydpi = ((float)(info.yres) * 25.4f) / (float)info.height;
269 float fps = info.reserved[3] & 0xFF;
283 info.xres,
284 info.yres,
285 info.xres_virtual,
286 info.yres_virtual,
287 info.bits_per_pixel,
288 info.red.offset, info.red.length,
289 info.green.offset, info.green.length,
290 info.blue.offset, info.blue.length
296 info.width, xdpi,
297 info.height, ydpi,
313 module->info = info;
326 module->numBuffers = info.yres_virtual / info.yres;
329 unsigned int fbSize = roundUpToPageSize(finfo.line_length * info.yres)*
360 module->fbFormat, info.xres, info.yres);
434 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3);
436 const_cast<uint32_t&>(dev->device.width) = m->info.xres;
437 const_cast<uint32_t&>(dev->device.height) = m->info.yres;