framebuffer_device_t 結構體參考資料
framebuffer_device_t 結構體參考資料
#include <
fb.h
>
資料欄位 |
|
struct hw_device_t | 通用 |
const uint32_t | flags |
const uint32_t | width |
const uint32_t | height |
const int | 步幅 |
const int | 格式 |
const float | xdpi |
const float | ydpi |
const float | fps |
const int | minSwapInterval |
const int | maxSwapInterval |
const int | numFramebuffers |
int | 保留 [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 裝置的常用方法。這個 必須 是 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) |
int(* setSwapInterval)(struct framebuffer_device_t *window, int interval) |
int(* setUpdateRect)(struct framebuffer_device_t *window, int left, int top, int width, int height) |
這個結構體的說明文件是由下列檔案產生:
- hardware/libhardware/include/hardware/ fb.h