|
|
/*
|
|
|
* Copyright (c) Hisilicon Technologies Co., Ltd.. 2012-2019. All rights reserved.
|
|
|
* Description:
|
|
|
* Author:
|
|
|
* Create:
|
|
|
*/
|
|
|
|
|
|
#ifndef ITV_HDMITX_H
|
|
|
#define ITV_HDMITX_H
|
|
|
|
|
|
#include <utils/RefBase.h>
|
|
|
#include "tv_common.h"
|
|
|
|
|
|
/* ****************************** API Declaration **************************** */
|
|
|
/* * \addtogroup TVMW */
|
|
|
/* * @{ */ /* * <!-- [TVMW] */
|
|
|
|
|
|
namespace android {
|
|
|
class IHdmiTx : virtual public RefBase {
|
|
|
public:
|
|
|
/**
|
|
|
\brief set timming Mode. CNcomment:设置HDMI TX timming CNend
|
|
|
\attention this func can be called for user setting HDMI TX timming Mode. CNcomment:用户可以调用该接口设置HDMI TX timmingCNend
|
|
|
\param CNcomment:传入timming对应的枚举参数CNend
|
|
|
\param TV_HDMITX_FMT_AUTO -> 0;
|
|
|
\param TV_HDMITX_FMT_VESA_1366X768_60 -> 1;
|
|
|
\param TV_HDMITX_FMT_1080P_50 -> 2;
|
|
|
\param TV_HDMITX_FMT_1080P_60 -> 3;
|
|
|
\param TV_HDMITX_FMT_3840X2160_30 -> 4;
|
|
|
\param TV_HDMITX_FMT_3840X2160_50 -> 5;
|
|
|
\param TV_HDMITX_FMT_3840X2160_60 -> 6;
|
|
|
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int setTimmingFormat(int format) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get HDMI TX timming. CNcomment:获取HDMI TX timmingCNend
|
|
|
\attention this func can be called for user getting Cur HDMI TX timming.
|
|
|
CNcomment:用户可以调用该接口获取当前HDMI TX timmingCNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval 0:TV_HDMITX_FMT_AUTO
|
|
|
\retval 1:TV_HDMITX_FMT_VESA_1366X768_60
|
|
|
\retval 2:TV_HDMITX_FMT_1080P_50
|
|
|
\retval 3:TV_HDMITX_FMT_1080P_60
|
|
|
\retval 4:TV_HDMITX_FMT_3840X2160_30
|
|
|
\retval 5:TV_HDMITX_FMT_3840X2160_50
|
|
|
\retval 6:TV_HDMITX_FMT_3840X2160_60
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getTimmingFormat() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get HDMI TX timming list. CNcomment:获取当前RX设备所有支持的timming列表CNend
|
|
|
\attention this func can be called for user getting timming list. CNcomment:用户可以调用该接口获取当前RX设备所有支持的timming CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval ArrayList,one of number has int.
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getTimmingFormatList(IntegerList *list) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief set DeepColor and video Mode. CNcomment:设置HDMI TX 色深和色彩空间 CNend
|
|
|
\attention this func can be called for user setting DeepColor and video Mode.
|
|
|
CNcomment:用户可以调用该接口设置HDMI TX 色深和色彩空间CNend
|
|
|
\param CNcomment:传入色深和色彩空间对应的枚举参数CNend
|
|
|
\param TV_HDMITX_COLOR_RGB444_8 -> 0;
|
|
|
\param TV_HDMITX_COLOR_RGB444_10 -> 1;
|
|
|
\param TV_HDMITX_COLOR_RGB444_12 -> 2;
|
|
|
\param TV_HDMITX_COLOR_YCBCR444_8 -> 3;
|
|
|
\param TV_HDMITX_COLOR_YCBCR444_10 -> 4;
|
|
|
\param TV_HDMITX_COLOR_YCBCR444_12 -> 5;
|
|
|
\param TV_HDMITX_COLOR_YCBCR422 -> 6;
|
|
|
\param TV_HDMITX_COLOR_YCBCR420_8 -> 7;
|
|
|
\param TV_HDMITX_COLOR_YCBCR420_10 -> 8;
|
|
|
\param TV_HDMITX_COLOR_YCBCR420_12 -> 9;
|
|
|
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int setColorFormat(int format) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get DeepColor and video Mode. CNcomment:获取HDMI TX 色深和色彩空间CNend
|
|
|
\attention this func can be called for user getting DeepColor and video Mode.
|
|
|
CNcomment:用户可以调用该接口获取HDMI TX 色深和色彩空间CNend\
|
|
|
\param CNcomment:CNend
|
|
|
\retval 0:TV_HDMITX_COLOR_RGB444_8
|
|
|
\retval 1:TV_HDMITX_COLOR_RGB444_10
|
|
|
\retval 2:TV_HDMITX_COLOR_RGB444_12
|
|
|
\retval 3:TV_HDMITX_COLOR_YCBCR444_8
|
|
|
\retval 4:TV_HDMITX_COLOR_YCBCR444_10
|
|
|
\retval 5:TV_HDMITX_COLOR_YCBCR444_12
|
|
|
\retval 6:TV_HDMITX_COLOR_YCBCR422
|
|
|
\retval 7:TV_HDMITX_COLOR_YCBCR420_8
|
|
|
\retval 8:TV_HDMITX_COLOR_YCBCR420_10
|
|
|
\retval 9:TV_HDMITX_COLOR_YCBCR420_12
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getColorFormat() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get DeepColor and video Mode list. CNcomment:获取当前timming 所支持的色深和色彩空间列表CNend
|
|
|
\attention this func can be called for user getting DeepColor and video Mode list.
|
|
|
CNcomment:用户可以调用该接口获取当前timming 所支持的色深和色彩空间列表 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval ArrayList,one of number has int.
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getColorFormatList(IntegerList *list) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief set HDMI Format. CNcomment:设置HDMITX输出格式CNend
|
|
|
\attention CNcomment:CNend
|
|
|
\param CNcomment:CNend
|
|
|
\param MW_HDMI_FORCE_MODE_DVI -> 0;
|
|
|
\param MW_HDMI_FORCE_MODE_HDMI-> 1;
|
|
|
\retval 0:success,-1:failure CNcomment:CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int setHdmiFormat(int format) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief set Hdmitx Hdcp Format CNcomment:设置Hdcp的模式.CNend
|
|
|
\attention this func can be called for after getHdcpCapability. CNcomment: CNend
|
|
|
\param CNcomment:CNend
|
|
|
\param MW_HDMITX_HDCP_MODE_AUTO ->0
|
|
|
\param MW_HDMITX_HDCP_MODE_1_4->1
|
|
|
\param MW_HDMITX_HDCP_MODE_2_2->2
|
|
|
\retval 0:success,-1:failure CNcomment:CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int setHdmiTxHdcp(bool onoff, int mode) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get HDMI TX connect status. CNcomment:获取当前HDMI TX的连接状态CNend
|
|
|
\attention this func can be called for user getting HDMI TX connect status.
|
|
|
CNcomment:用户可以调用该接口获取当前HDMI TX的连接状态CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval boolean, TRUE:on,FALSE:off. CNcomment:布尔类型,TRUE:已连接,FALSE:未连接CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual bool isHdmiTxConnected() = 0;
|
|
|
};
|
|
|
}; // namespace android
|
|
|
|
|
|
/* * @} */ /* * <!-- ==== API declaration end ==== */
|
|
|
|
|
|
#endif
|
|
|
|