framebuffer_device_t 结构体参考文档
framebuffer_device_t 结构体参考文档
#include <
fb.h
>
数据字段 |
|
| struct hw_device_t | 常见 |
| const uint32_t | 标志 |
| const uint32_t | 宽度 |
| const uint32_t | height |
| const int | 步幅 |
| const int | 格式 |
| const float | xdpi |
| const float | ydpi |
| const float | 帧速率 |
| const int | minSwapInterval |
| const int | maxSwapInterval |
| const int | numFramebuffers |
| int | reserved [7] |
| int(* | setSwapInterval )(struct framebuffer_device_t *window, int interval) |
| int(* | setUpdateRect )(struct framebuffer_device_t *window, int left, int top, int width, int height) |
| int(* | post )(struct framebuffer_device_t *dev, buffer_handle_t buffer) |
| int(* | compositionComplete )(struct framebuffer_device_t *dev) |
| void(* | dump )(struct framebuffer_device_t *dev, char *buff, int buff_len) |
| int(* | enableScreen )(struct framebuffer_device_t *dev, int enable) |
| void * | reserved_proc [6] |
详细说明
字段文档
| struct hw_device_t common |
帧缓冲区设备的常用方法。此 必须 是 framebuffer_device_t 的第一个成员,因为此结构的用户会在已知 hw_device_t 引用 framebuffer_device_t 的情况下,将 hw_device_t 转换为 framebuffer_device_t 指针。
| int(* compositionComplete)(struct framebuffer_device_t *dev) |
| void(* dump)(struct framebuffer_device_t *dev, char *buff, int buff_len) |
| int(* enableScreen)(struct framebuffer_device_t *dev, int enable) |
| int(* post)(struct framebuffer_device_t *dev, buffer_handle_t buffer) |
定义位于文件 fb.h 的第 128 行。
| int(* setSwapInterval)(struct framebuffer_device_t *window, int interval) |
| int(* setUpdateRect)(struct framebuffer_device_t *window, int left, int top, int width, int height) |
| const float ydpi |
定义位于文件 fb.h 的第 62 行。
此结构体的文档是根据以下文件生成的:
- hardware/libhardware/include/hardware/ fb.h