You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
132 lines
6.9 KiB
132 lines
6.9 KiB
/*
|
|
* Copyright (c) Hisilicon Technologies Co., Ltd.. 2019-2020. All rights reserved.
|
|
* Description: Define the information about display manager client
|
|
* Author: Hisilicon
|
|
* Created: 2019-12-02
|
|
*/
|
|
#ifndef _DISPLAYCLIENT_H_
|
|
#define _DISPLAYCLIENT_H_
|
|
|
|
#include "uapi_svr_dispmng.h"
|
|
#include "uapi_pdm.h"
|
|
|
|
namespace android {
|
|
enum class DISPMNG_UI {
|
|
DISPMNG_UI_720_P = 0,
|
|
DISPMNG_UI_1080_P = 1,
|
|
DISPMNG_UI_2160_P = 2,
|
|
HEIGHT_720_P = 720,
|
|
HEIGHT_1080_P = 1080,
|
|
WIDTH_720_P = 1280,
|
|
WIDTH_1080_P = 1920,
|
|
HEIGHT_2160_P = 2160,
|
|
WIDTH_2160_P = 3840,
|
|
};
|
|
class DisplayClientListener;
|
|
class DisplayClient {
|
|
public:
|
|
DisplayClient();
|
|
~DisplayClient(){};
|
|
int SetBrightness(int brightness) const;
|
|
int GetBrightness() const;
|
|
int SetContrast(int contrast) const;
|
|
int GetContrast() const;
|
|
int SetSaturation(int saturation) const;
|
|
int GetSaturation() const;
|
|
int SetHuePlus(int huePlus) const;
|
|
int GetHuePlus() const;
|
|
int SetAspectRatio(int displayid, int ratio) const;
|
|
int SetAspectRatio(int ratio) const;
|
|
int GetAspectRatio(int displayid) const;
|
|
int GetAspectRatio() const;
|
|
int SetAspectCvrs(int cvrs) const;
|
|
int GetAspectCvrs() const;
|
|
int AttachIntf() const;
|
|
int DetachIntf() const;
|
|
int SetVirtScreen(int displayid, int outFmt) const;
|
|
int SetVirtScreen(int outFmt) const;
|
|
int GetVirtScreen(int displayid) const;
|
|
int GetVirtScreen() const;
|
|
int GetVirtScreenSize(int displayid, unsigned &width, unsigned &height) const;
|
|
int GetVirtScreenSize(unsigned &width, unsigned &height) const;
|
|
int SetOutputEnable(int port, int enable) const;
|
|
int SetOutputEnable(int displayid, int port, int enable) const;
|
|
int GetOutputEnable(int port) const;
|
|
int GetOutputEnable(int displayid, int port) const;
|
|
int GetHDRType() const;
|
|
int SetHDRType(int type) const;
|
|
int SetHDMIStart() const;
|
|
int SetHDMIStart(int displayid) const;
|
|
int SetHDMIStop() const;
|
|
int SetHDMIStop(int displayid) const;
|
|
int ReadHDCPKey(int keyid, uapi_svr_dispmng_hdcp_key &key) const;
|
|
int WriteHDCPKey(int keyid, uapi_svr_dispmng_hdcp_key &key) const;
|
|
int LoadHDCPKey(int displayid, uapi_svr_dispmng_hdcp_key &key) const;
|
|
int LoadHDCPSrm(int displayid, const uapi_svr_dispmng_hdcp_srm &srm) const;
|
|
int GetDispCount() const;
|
|
int GetDispId(int index) const;
|
|
int SetAttachInterface(int displayid, const uapi_svr_dispmng_interface_group &attach) const;
|
|
int GetAttachedInterface(int displayid, uapi_svr_dispmng_interface_group &attach) const;
|
|
int GetDisplayWindowNumber(int displayid) const;
|
|
int DetachInterface(int displayid, const uapi_svr_dispmng_interface_group &detach) const;
|
|
int SetInterfaceEnable(int displayid, const uapi_svr_dispmng_interface_enable &intfEnable) const;
|
|
int GetInterfaceEnable(int displayid, uapi_svr_dispmng_interface_enable &intfEnable) const;
|
|
int GetDisplayStatus(int displayid, uapi_svr_dispmng_display_status &status) const;
|
|
int GetOutputStatus(int displayid, uapi_svr_disp_output_status &status) const;
|
|
int GetVRRAttr(int displayid, uapi_svr_disp_vrr_attr &vrr) const;
|
|
int SetVRRAttr(int displayid, const uapi_svr_disp_vrr_attr &vrr) const;
|
|
int SetQmsAttr(int displayid, const uapi_svr_disp_qms_attr &attr) const;
|
|
int GetQmsAttr(int displayid, uapi_svr_disp_qms_attr &attr) const;
|
|
int SetQmsEnable(int displayid, bool enable) const;
|
|
bool GetQmsEnable(int displayid) const;
|
|
int SetVrrEnable(int displayid, bool enable) const;
|
|
bool GetVrrEnable(int displayid) const;
|
|
int SetAllmAttr(int displayid, const uapi_svr_disp_allm_attr &attr) const;
|
|
int GetAllmAttr(int displayid, uapi_svr_disp_allm_attr &attr) const;
|
|
int GetDisplayInfo(int displayid, uapi_svr_dispmng_sink_info &info) const;
|
|
int GetDisplayCapabilities(int displayid, uapi_svr_dispmng_display_capability &capa) const;
|
|
int GetDisplaySupportedModeList(int displayid, uapi_svr_dispmng_display_available_mode &modes) const;
|
|
int GetDisplayAllModeList(int displayid, uapi_svr_dispmng_display_available_mode &modes) const;
|
|
int GetDisplayMode(int displayid, uapi_svr_dispmng_display_mode &mode) const;
|
|
int SetDisplayMode(int displayid, const uapi_svr_dispmng_display_mode &mode) const;
|
|
int GetSceneMode(int displayid) const;
|
|
int SetSceneMode(int displayid, int mode) const;
|
|
int GetBrightness(int displayid) const;
|
|
int SetBrightness(int displayid, int brightness) const;
|
|
int GetContrast(int displayid) const;
|
|
int SetContrast(int displayid, int contrast) const;
|
|
int GetHue(int displayid) const;
|
|
int SetHue(int displayid, int hue) const;
|
|
int GetSaturation(int displayid) const;
|
|
int SetSaturation(int displayid, int saturation) const;
|
|
int GetBacklight(int displayid) const;
|
|
int SetBacklight(int displayid, int backlight) const;
|
|
int GetAspectRatio(int displayid, uapi_video_aspect_info &ratio) const;
|
|
int SetAspectRatio(int displayid, const uapi_video_aspect_info &ratio) const;
|
|
int GetScreenOffset(int displayid, uapi_svr_dispmng_screen_offset &offset) const;
|
|
int SetScreenOffset(int displayid, const uapi_svr_dispmng_screen_offset &offset) const;
|
|
int GetVirtualScreen(int displayid, unsigned &width, unsigned &height) const;
|
|
int SetVirtualScreen(int displayid, unsigned width, unsigned height) const;
|
|
int GetHDRType(int displayid) const;
|
|
int SetHDRType(int displayid, int type) const;
|
|
bool GetHdrMatchContent(int displayid) const;
|
|
int SetHdrMatchContent(int displayid, bool match) const;
|
|
int UILayerChanged(int displayid, uapi_svr_dispmng_layer &layer, int len) const;
|
|
int GetHdcpCapability(int displayid, uapi_svr_dispmng_hdcp_capability &capa) const;
|
|
int GetHdcpStatus(int displayid, uapi_svr_dispmng_hdcp_status &status) const;
|
|
int SetEnableHdcp(int displayid, uapi_svr_dispmng_hdcp_mode mode) const;
|
|
int SetDisableHdcp(int displayid) const;
|
|
int GetFormatFromVic(int vic) const;
|
|
int GetVicFormFormat(int fmt) const;
|
|
int GetHdmiCfgInfo(int hdmitxid, uapi_pdm_hdmi_config_info &info) const;
|
|
int SetHdmiCfgInfo(int hdmitxid, const uapi_pdm_hdmi_config_info &info) const;
|
|
int RegisterCallback(int eventid, uapi_svr_dispmng_callback_func cb) const;
|
|
int UnRegisterCallback(int eventid) const;
|
|
int GetDisplayLuminance(int displayid, uapi_svr_dispmng_display_luminance &luminance) const;
|
|
int SetDisplayLuminance(int displayid, const uapi_svr_dispmng_display_luminance &luminance) const;
|
|
private:
|
|
static int masterId;
|
|
};
|
|
};
|
|
#endif
|