[2017年整理]Framebuffer重要结构体说明

上传人:豆浆 文档编号:910138 上传时间:2017-05-21 格式:DOC 页数:26 大小:207KB
返回 下载 相关 举报
[2017年整理]Framebuffer重要结构体说明_第1页
第1页 / 共26页
[2017年整理]Framebuffer重要结构体说明_第2页
第2页 / 共26页
[2017年整理]Framebuffer重要结构体说明_第3页
第3页 / 共26页
[2017年整理]Framebuffer重要结构体说明_第4页
第4页 / 共26页
[2017年整理]Framebuffer重要结构体说明_第5页
第5页 / 共26页
点击查看更多>>
资源描述

《[2017年整理]Framebuffer重要结构体说明》由会员分享,可在线阅读,更多相关《[2017年整理]Framebuffer重要结构体说明(26页珍藏版)》请在金锄头文库上搜索。

1、 fb_var_screeninfo:记录了帧缓冲设备和指定显示模式的可修改记录。包括屏幕的分辨率,像素信息和一些时序变量struct fb_var_screeninfo _u32 xres; /* 行像素数 */_u32 yres; /* 列像素数 */_u32 xres_virtual; /* virtual resolution */_u32 yres_virtual;_u32 xoffset; /* offset from virtual to visible */_u32 yoffset; /* resolution */_u32 bits_per_pixel; /*每个像素的位数

2、*/_u32 grayscale; /* != 0 Graylevels instead of colors */struct fb_bitfield red; /* bitfield in fb mem if true color, */struct fb_bitfield green;/* else only length is significant */struct fb_bitfield blue;struct fb_bitfield transp;/* transparency */_u32 nonstd; /* != 0 Non standard pixel format */_

3、u32 activate; /* see FB_ACTIVATE_* */_u32 height; /* height of picture in mm */_u32 width; /* width of picture in mm */_u32 accel_flags; /* acceleration flags (hints) */* Timing: All values in pixclocks, except pixclock (of course) */_u32 pixclock; /* pixel clock in ps (pico seconds) */_u32 left_mar

4、gin; /* time from sync to picture */_u32 right_margin; /* time from picture to sync */_u32 upper_margin; /* time from sync to picture */_u32 lower_margin;_u32 hsync_len; /* length of horizontal sync */_u32 vsync_len; /* length of vertical sync */_u32 sync; /* see FB_SYNC_* */_u32 vmode; /* see FB_VM

5、ODE_* */_u32 reserved6; /* Reserved for future compatibility */;1. struct fb_var_screeninfo 2. _u32 xres; /* visible resolution */ 3. _u32 yres; 4. _u32 xres_virtual; /* virtual resolution */ 5. _u32 yres_virtual; 6. _u32 xoffset; /* offset from virtual to visible */ 7. _u32 yoffset; /* resolution *

6、/ 8. 9. _u32 bits_per_pixel; /* guess what */ 10. _u32 grayscale; /* != 0 Graylevels instead of colors */ 11. 12. struct fb_bitfield red; /* bitfield in fb mem if true color, */ 13. struct fb_bitfield green; /* else only length is significant */ 14. struct fb_bitfield blue; 15. struct fb_bitfield tr

7、ansp; /* transparency */ 16. 17. _u32 nonstd; /* != 0 Non standard pixel format */ 18. 19. _u32 activate; /* see FB_ACTIVATE_* */ 20. 21. _u32 height; /* height of picture in mm */ 22. _u32 width; /* width of picture in mm */ 23. 24. _u32 accel_flags; /* (OBSOLETE) see fb_info.flags */ 25. 26. /* Ti

8、ming: All values in pixclocks, except pixclock (of course) */ 27. _u32 pixclock; /* pixel clock in ps (pico seconds) */ 28. _u32 left_margin; /* time from sync to picture */ 29. _u32 right_margin; /* time from picture to sync */ 30. _u32 upper_margin; /* time from sync to picture */ 31. _u32 lower_m

9、argin; 32. _u32 hsync_len; /* length of horizontal sync */ 33. _u32 vsync_len; /* length of vertical sync */ 34. _u32 sync; /* see FB_SYNC_* */ 35. _u32 vmode; /* see FB_VMODE_* */ 36. _u32 rotate; /* angle we rotate counter clockwise */ 37. _u32 reserved5; /* Reserved for future compatibility */ 38

10、. ; fb_fix_screeninfo:记录了帧缓冲设备和指定显示模式的不可修改记录。包含了屏幕缓冲区的物理地址和长度。struct fb_fix_screeninfo char id16; /* identification string eg TT Builtin */unsigned long smem_start; /* Start of frame buffer mem */* (physical address) */_u32 smem_len; /* Length of frame buffer mem */_u32 type; /* see FB_TYPE_* */_u32

11、 type_aux; /* Interleave for interleaved Planes */_u32 visual; /* see FB_VISUAL_* */ _u16 xpanstep; /* zero if no hardware panning */_u16 ypanstep; /* zero if no hardware panning */_u16 ywrapstep; /* zero if no hardware ywrap */_u32 line_length; /* length of a line in bytes */unsigned long mmio_star

12、t; /* Start of Memory Mapped I/O */* (physical address) */_u32 mmio_len; /* Length of Memory Mapped I/O */_u32 accel; /* Type of acceleration available */_u16 reserved3; /* Reserved for future compatibility */;1. struct fb_fix_screeninfo 2. char id16; /* identification string eg TT Builtin */ 3. uns

13、igned long smem_start; /* Start of frame buffer mem */ 4. /* (physical address) */ 5. _u32 smem_len; /* Length of frame buffer mem */ 6. _u32 type; /* see FB_TYPE_* */ 7. _u32 type_aux; /* Interleave for interleaved Planes */ 8. _u32 visual; /* see FB_VISUAL_* */ 9. _u16 xpanstep; /* zero if no hard

14、ware panning */ 10. _u16 ypanstep; /* zero if no hardware panning */ 11. _u16 ywrapstep; /* zero if no hardware ywrap */ 12. _u32 line_length; /* length of a line in bytes */ 13. unsigned long mmio_start; /* Start of Memory Mapped I/O */ 14. /* (physical address) */ 15. _u32 mmio_len; /* Length of Memory Mapped I/O */ 16. _u32 accel; /

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号