Lines Matching refs:bpp
36 int bpp;
52 static int get_framebuffer(struct simple_fb *fb, unsigned bpp)
72 if (bpp && vi.bits_per_pixel != bpp) {
73 printf("bpp != %d, forcing...\n", bpp);
74 vi.bits_per_pixel = bpp;
76 perror("failed to force bpp");
100 fb->bpp = vi.bits_per_pixel;
109 fb->bpp = vi.bits_per_pixel;
139 int gr_init(int bpp, int id)
154 gr_fb_fd = get_framebuffer(gr_fbs, bpp);
261 int bpp = 0;
264 bpp = atoi(argv[1]);
269 gr_init(bpp, id);