Files
rk35xx-android14/hardware/rockchip/vman_module/DisplayModule.h
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

39 lines
1.5 KiB
C++

#ifndef ANDROID_INCLUDE_HARDWARE_DISPLAY_HAL_H
#define ANDROID_INCLUDE_HARDWARE_DISPLAY_HAL_H
#include <stdbool.h>
#include <stdint.h>
#include <sys/cdefs.h>
#include <sys/types.h>
#include <hardware/hardware.h>
#include <iostream>
#include <vector>
__BEGIN_DECLS
#define DISPLAY_HAL_MODULE_API_VERSION HARDWARE_MODULE_API_VERSION(0, 1)
/*
* The id of this module
*/
#define DISPLAY_HAL_HARDWARE_MODULE_ID "vman_display_hal"
typedef struct display_hal_module {
struct hw_module_t common;
int dpy;
int (*get_display_enable)(struct display_hal_module *module);
int (*set_display_enable)(struct display_hal_module *module, int value);
int (*get_display_hdmi_enable)(struct display_hal_module *module);
int (*set_display_hdmi_enable)(struct display_hal_module *module, int value);
int (*get_display_support_resolution_list)(struct display_hal_module* module, std::vector<std::string>& resolutionList);
std::string (*get_display_resolution)(struct display_hal_module* module);
int (*set_display_resolution)(struct display_hal_module* module, const std::string& resolution);
int (*get_display_hdcp_status)(struct display_hal_module *module);
int (*set_display_hdcp_status)(struct display_hal_module *module, int value);
int (*get_extend_display_en_dvi_status)(struct display_hal_module *module);
int (*set_extend_display_en_dvi_status)(struct display_hal_module *module, int value);
} display_hal_module_t;
__END_DECLS
#endif /* ANDROID_INCLUDE_HARDWARE_DISPLAY_HAL_H */