|
|
/*
|
|
|
* Copyright (c) Hisilicon Technologies Co., Ltd.. 2012-2019. All rights reserved.
|
|
|
* Description:
|
|
|
* Author:
|
|
|
* Create:
|
|
|
*/
|
|
|
|
|
|
#ifndef ISOURCEMANAGER_H
|
|
|
#define ISOURCEMANAGER_H
|
|
|
|
|
|
#include <utils/RefBase.h>
|
|
|
#include "tv_common.h"
|
|
|
|
|
|
/* ****************************** API Declaration **************************** */
|
|
|
/* * \addtogroup TVMW */
|
|
|
/* * @{ */ /* * <!-- [TVMW] */
|
|
|
|
|
|
namespace android {
|
|
|
class ISourceManager : virtual public RefBase {
|
|
|
public:
|
|
|
/**
|
|
|
\brief Select Source. CNcomment:指定信号源切入 CNend
|
|
|
\attention this func can be called for user selectting source. CNcomment:用户可以调用该接口进行指定信号源切入 CNend
|
|
|
\param int srcId: see TV_SRC_E, enum of input source. CNcomment:传入支持的信号源对应的枚举参数CNend
|
|
|
\param TV_SRC_ATV -> 0;
|
|
|
\param TV_SRC_DVBC -> 1;
|
|
|
\param TV_SRC_DTMB -> 2;
|
|
|
\param TV_SRC_CVBS1 -> 3;
|
|
|
\param TV_SRC_CVBS2 -> 4;
|
|
|
\param TV_SRC_CVBS3 -> 5;
|
|
|
\param TV_SRC_VGA -> 6;
|
|
|
\param TV_SRC_YPBPR1 -> 7;
|
|
|
\param TV_SRC_YPBPR2 -> 8;
|
|
|
\param TV_SRC_HDMI1 -> 9;
|
|
|
\param TV_SRC_HDMI2 -> 10;
|
|
|
\param TV_SRC_HDMI3 -> 11;
|
|
|
\param TV_SRC_HDMI4 -> 12;
|
|
|
\param TV_SRC_MEDIA -> 13;
|
|
|
\param TV_SRC_MEDIA2 -> 14;
|
|
|
\param TV_SRC_SCART1 -> 15;
|
|
|
\param TV_SRC_SCART2 -> 16;
|
|
|
\param TV_SRC_AUTO -> 17;
|
|
|
\param TV_SRC_DVBT -> 18;
|
|
|
\param TV_SRC_ATSC -> 19;
|
|
|
\param TV_SRC_DVBS -> 20;
|
|
|
\param TV_SRC_ISDBT -> 21;
|
|
|
\param int mainWindow, 0:main, 1:sub, 2:auto. see TV_WINDOW_E.
|
|
|
CNcomment:窗口界面, 0:主窗口, 1:子画面, 2:自动(自动参数功能暂时没有实现) CNend
|
|
|
\param TV_WINDOW_MAIN -> 0;
|
|
|
\param TV_WINDOW_SUB -> 1;
|
|
|
\param TV_WINDOW_AUTO -> 2;//Not support yet.
|
|
|
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int selectSource(int srcId, int mainWindow) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Select Source. CNcomment:指定信号源切入 CNend
|
|
|
\attention this func can be called for user selectting source. CNcomment:用户可以调用该接口进行指定信号源切入 CNend
|
|
|
\param int srcId: see TV_SRC_E, enum of input source. CNcomment:传入支持的信号源对应的枚举参数CNend
|
|
|
\param TV_SRC_ATV -> 0;
|
|
|
\param TV_SRC_DVBC -> 1;
|
|
|
\param TV_SRC_DTMB -> 2;
|
|
|
\param TV_SRC_CVBS1 -> 3;
|
|
|
\param TV_SRC_CVBS2 -> 4;
|
|
|
\param TV_SRC_CVBS3 -> 5;
|
|
|
\param TV_SRC_VGA -> 6;
|
|
|
\param TV_SRC_YPBPR1 -> 7;
|
|
|
\param TV_SRC_YPBPR2 -> 8;
|
|
|
\param TV_SRC_HDMI1 -> 9;
|
|
|
\param TV_SRC_HDMI2 -> 10;
|
|
|
\param TV_SRC_HDMI3 -> 11;
|
|
|
\param TV_SRC_HDMI4 -> 12;
|
|
|
\param TV_SRC_MEDIA -> 13;
|
|
|
\param TV_SRC_MEDIA2 -> 14;
|
|
|
\param TV_SRC_SCART1 -> 15;
|
|
|
\param TV_SRC_SCART2 -> 16;
|
|
|
\param TV_SRC_AUTO -> 17;
|
|
|
\param TV_SRC_DVBT -> 18;
|
|
|
\param TV_SRC_ATSC -> 19;
|
|
|
\param TV_SRC_DVBS -> 20;
|
|
|
\param TV_SRC_ISDBT -> 21;
|
|
|
\param int mainWindow, 0:main, 1:sub, 2:auto. see TV_WINDOW_E.
|
|
|
CNcomment:窗口界面, 0:主窗口, 1:子画面, 2:自动(自动参数功能暂时没有实现) CNend
|
|
|
\param TV_WINDOW_MAIN -> 0;
|
|
|
\param TV_WINDOW_SUB -> 1;
|
|
|
\param TV_WINDOW_AUTO -> 2;//Not support yet.
|
|
|
\param int atvChannelId,-1:cur channel number,other value:channel ID.
|
|
|
CNcomment:切源到ATV时传入的频道ID, 该参数仅用于切源至ATV源使用,切入其他源时可以随意传值。
|
|
|
-1:播放之前ATV所播放的频道, 其他值:播放当前所传atvChannelId ID频道 CNend
|
|
|
\retval 0:success, -1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int selectSource(int srcId, int mainWindow, int atvChannelId) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Select Source. CNcomment:指定信号源切出 CNend
|
|
|
\attention this func can be called for user selectting source. CNcomment:用户可以调用该接口进行指定信号源切出 CNend
|
|
|
\param int srcId: see TV_SRC_E, enum of input source. CNcomment:传入支持的信号源对应的枚举参数CNend
|
|
|
\param TV_SRC_ATV -> 0;
|
|
|
\param TV_SRC_DVBC -> 1;
|
|
|
\param TV_SRC_DTMB -> 2;
|
|
|
\param TV_SRC_CVBS1 -> 3;
|
|
|
\param TV_SRC_CVBS2 -> 4;
|
|
|
\param TV_SRC_CVBS3 -> 5;
|
|
|
\param TV_SRC_VGA -> 6;
|
|
|
\param TV_SRC_YPBPR1 -> 7;
|
|
|
\param TV_SRC_YPBPR2 -> 8;
|
|
|
\param TV_SRC_HDMI1 -> 9;
|
|
|
\param TV_SRC_HDMI2 -> 10;
|
|
|
\param TV_SRC_HDMI3 -> 11;
|
|
|
\param TV_SRC_HDMI4 -> 12;
|
|
|
\param TV_SRC_MEDIA -> 13;
|
|
|
\param TV_SRC_MEDIA2 -> 14;
|
|
|
\param TV_SRC_SCART1 -> 15;
|
|
|
\param TV_SRC_SCART2 -> 16;
|
|
|
\param TV_SRC_AUTO -> 17;
|
|
|
\param TV_SRC_DVBT -> 18;
|
|
|
\param TV_SRC_ATSC -> 19;
|
|
|
\param TV_SRC_DVBS -> 20;
|
|
|
\param TV_SRC_ISDBT -> 21;
|
|
|
\param boolean bDestroy, TRUE:Destroy, FALSE:NO.
|
|
|
CNcomment:清除当前源, TRUE:清除当前source的资源, FALSE:不清除当前source的资源 CNend
|
|
|
\retval 0:success, -1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int deselectSource(int srcId, bool bDestroy) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief set Window Rect. CNcomment:设置主/子窗口的大小CNend
|
|
|
\attention this func can be called for user setting Window Rect. CNcomment:用户可以调用该接口设置主/子窗口的大小CNend
|
|
|
\param TV_RECT_S; CNcomment:传入窗口大小对应的结构体参数CNend
|
|
|
\param u32x;
|
|
|
\param u32y;
|
|
|
\param u32Width;
|
|
|
\param u32Height;
|
|
|
\param int Window, 0:main, 1:sub, 2:auto. CNcomment:窗口界面, 0:主窗口, 1:子窗口, 2:自动(自动参数功能暂时没有实现) CNend
|
|
|
\param TV_WINDOW_MAIN -> 0;
|
|
|
\param TV_WINDOW_SUB -> 1;
|
|
|
\param TV_WINDOW_AUTO -> 2;//Not support yet.
|
|
|
\retval 0:success, -1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:默认的主窗口为0, 0, 1920, 1080 CNend
|
|
|
*/
|
|
|
virtual int setWindowRect(TV_RECT_S rect, int Window) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief set Window Rect. CNcomment:获取主子窗口的大小CNend
|
|
|
\attention this func can be called for user setting Window Rect. CNcomment:用户可以调用该接口获取主子窗口的大小CNend
|
|
|
\param CNcomment:传入窗口的类型(RectInfo)CNend
|
|
|
\param int Window, 0:main, 1:sub, 2:auto. CNcomment:窗口界面, 0:主窗口, 1:子画面, 2:自动(自动参数功能暂时没有实现) CNend
|
|
|
\param TV_WINDOW_MAIN -> 0;
|
|
|
\param TV_WINDOW_SUB -> 1;
|
|
|
\param TV_WINDOW_AUTO -> 2;//Not support yet.
|
|
|
\retval TV_RECT_S; CNcomment:窗口大小 [u32x, u32y, u32Width, u32Height]CNend
|
|
|
\see \n
|
|
|
*/
|
|
|
virtual TV_RECT_S getWindowRect(int Window) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Enable Dual Display. CNcomment:使能一屏双显开关CNend
|
|
|
\attention this func can be called for user enabling dual display. CNcomment:用户可以调用该接口控制一屏双显开关CNend
|
|
|
\param boolean onoff, TRUE:on, FALSE:off. CNcomment:一屏双显开关, TRUE:一屏双显开,FALSE:一屏双显关CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:切源之前就要设置一屏双显的开关,已不支持此功能,返回成功 CNend
|
|
|
*/
|
|
|
virtual int enableDualDisplay(bool enable) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Set Display On Left. CNcomment:设置当前Window显示在左眼还是右眼 CNend
|
|
|
\attention this func can be called for user setting display on left.
|
|
|
CNcomment:用户可以调用该接口设置当前Window显示在左眼还是右眼 CNend
|
|
|
\param boolean left, TRUE:LEFT, FALSE:RIGHT. CNcomment:左右眼显示, TRUE:左眼显示,FALSE:右眼显示 CNend
|
|
|
\param int mainWindow, 0:main, 1:sub, 2:auto.
|
|
|
CNcomment:窗口界面, 0:主窗口, 1:子画面, 2:自动(自动参数功能暂时没有实现) CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:如果两个端子显示此接口必须要设置,已不支持此功能,返回成功 CNend
|
|
|
*/
|
|
|
virtual int setDisplayOnLeft(bool left, int mainWindow) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief set Focus Window. CNcomment:设置焦点在主窗口还是子窗口CNend
|
|
|
\attention this func can be called for user setting Focus Window.
|
|
|
CNcomment:用户可以调用该接口设置焦点在主窗口还是子窗口 CNend
|
|
|
\param int mainWindow, 0:main, 1:sub, 2:auto.
|
|
|
CNcomment:窗口界面, 0:主窗口, 1:子画面, 2:自动(自动参数功能暂时没有实现) CNend
|
|
|
\retval 0:success, -1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int setFocusWindow(int mainWindow) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief set Scart Input. CNcomment:设置scart的输入类型CNend
|
|
|
\attention this func can be called for user setting Scart Input. CNcomment:用户可根据设备输入的scart类型选择输入类型CNend
|
|
|
\param int scartInput,0:AV,1:S-VIDEO. CNcomment: scart输入, 0:复合, 1:亮度-色度CNend
|
|
|
\retval 0:success,-1:failure CNcomment:0:成功 -1:失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int setScartInput(int scartInput) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get Scart Input. CNcomment: 获取scart的输入类型CNend
|
|
|
\attention this func can be called for user getting Scart Input. CNcomment: 用户可获取当前选择的输入类型 CNend
|
|
|
\param. CNcomment: CNend
|
|
|
\retval 0:AV,1:S-VIDEO. CNcomment:0:复合, 1:亮度-色度CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getScartInput() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get Source Before Scart. CNcomment:可获取scart之前的源CNend
|
|
|
\attention this func can be called for user getting Source Before Scart. CNcomment:用户可获取scart之前的源CNend
|
|
|
\param. CNcomment: CNend
|
|
|
\retval int srcId: see TV_SRC_E. CNcomment:支持的信号源对应的枚举CNend
|
|
|
\retval 0: TV_SRC_ATV;
|
|
|
\retval 1: TV_SRC_DVBC;
|
|
|
\retval 2: TV_SRC_DTMB;
|
|
|
\retval 3: TV_SRC_CVBS1;
|
|
|
\retval 4: TV_SRC_CVBS2;
|
|
|
\retval 5: TV_SRC_CVBS3;
|
|
|
\retval 6: TV_SRC_VGA;
|
|
|
\retval 7: TV_SRC_YPBPR1;
|
|
|
\retval 8: TV_SRC_YPBPR2;
|
|
|
\retval 9: TV_SRC_HDMI1;
|
|
|
\retval 10: TV_SRC_HDMI2;
|
|
|
\retval 11: TV_SRC_HDMI3;
|
|
|
\retval 12: TV_SRC_HDMI4;
|
|
|
\retval 13: TV_SRC_MEDIA;
|
|
|
\retval 14: TV_SRC_MEDIA2;
|
|
|
\retval 15: TV_SRC_SCART1;
|
|
|
\retval 16: TV_SRC_SCART2;
|
|
|
\retval 17: TV_SRC_AUTO;
|
|
|
\retval 18: TV_SRC_DVBT;
|
|
|
\retval 19: TV_SRC_ATSC;
|
|
|
\retval 20: TV_SRC_DVBS;
|
|
|
\retval 21: TV_SRC_ISDBT;
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getScartPreSource() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Get Cur Source. CNcomment:获取当前信号源 CNend
|
|
|
\attention this func can be called for user getting cur source. CNcomment:用户可以调用该接口获取当前信号源 CNend
|
|
|
\param int mainWindow, 0:main, 1:sub, 2:auto.
|
|
|
CNcomment:窗口界面, 0:主窗口, 1:子画面, 2:自动(自动参数功能暂时没有实现) CNend
|
|
|
\param TV_WINDOW_MAIN -> 0;
|
|
|
\param TV_WINDOW_SUB -> 1;
|
|
|
\param TV_WINDOW_AUTO -> 2;//Not support yet.
|
|
|
\retval int srcId: see TV_SRC_E, enum of input source. CNcomment:支持的信号源对应的枚举参数CNend
|
|
|
\retval 0: TV_SRC_ATV;
|
|
|
\retval 1: TV_SRC_DVBC;
|
|
|
\retval 2: TV_SRC_DTMB;
|
|
|
\retval 3: TV_SRC_CVBS1;
|
|
|
\retval 4: TV_SRC_CVBS2;
|
|
|
\retval 5: TV_SRC_CVBS3;
|
|
|
\retval 6: TV_SRC_VGA;
|
|
|
\retval 7: TV_SRC_YPBPR1;
|
|
|
\retval 8: TV_SRC_YPBPR2;
|
|
|
\retval 9: TV_SRC_HDMI1;
|
|
|
\retval 10: TV_SRC_HDMI2;
|
|
|
\retval 11: TV_SRC_HDMI3;
|
|
|
\retval 12: TV_SRC_HDMI4;
|
|
|
\retval 13: TV_SRC_MEDIA;
|
|
|
\retval 14: TV_SRC_MEDIA2;
|
|
|
\retval 15: TV_SRC_SCART1;
|
|
|
\retval 16: TV_SRC_SCART2;
|
|
|
\retval 17: TV_SRC_AUTO;
|
|
|
\retval 18: TV_SRC_DVBT;
|
|
|
\retval 19: TV_SRC_ATSC;
|
|
|
\retval 20: TV_SRC_DVBS;
|
|
|
\retval 21: TV_SRC_ISDBT;
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getCurSourceId(int mainWindow) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Get Select Source. CNcomment:获取数据库保存的源ID CNend
|
|
|
\attention this func can be called for user getting Select source. CNcomment:用户可以调用该接口获取换源保存源 CNend
|
|
|
\param CNcomment: CNend
|
|
|
\retval int srcId: see TV_SRC_E, enum of input source. CNcomment:支持的信号源对应的枚举参数CNend
|
|
|
\retval 0: TV_SRC_ATV;
|
|
|
\retval 1: TV_SRC_DVBC;
|
|
|
\retval 2: TV_SRC_DTMB;
|
|
|
\retval 3: TV_SRC_CVBS1;
|
|
|
\retval 4: TV_SRC_CVBS2;
|
|
|
\retval 5: TV_SRC_CVBS3;
|
|
|
\retval 6: TV_SRC_VGA;
|
|
|
\retval 7: TV_SRC_YPBPR1;
|
|
|
\retval 8: TV_SRC_YPBPR2;
|
|
|
\retval 9: TV_SRC_HDMI1;
|
|
|
\retval 10: TV_SRC_HDMI2;
|
|
|
\retval 11: TV_SRC_HDMI3;
|
|
|
\retval 12: TV_SRC_HDMI4;
|
|
|
\retval 13: TV_SRC_MEDIA;
|
|
|
\retval 14: TV_SRC_MEDIA2;
|
|
|
\retval 15: TV_SRC_SCART1;
|
|
|
\retval 16: TV_SRC_SCART2;
|
|
|
\retval 17: TV_SRC_AUTO;
|
|
|
\retval 18: TV_SRC_DVBT;
|
|
|
\retval 19: TV_SRC_ATSC;
|
|
|
\retval 20: TV_SRC_DVBS;
|
|
|
\retval 21: TV_SRC_ISDBT;
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getSelectSourceId() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Set Boot Source. CNcomment:设置开机通道 CNend
|
|
|
\attention this func can be called for user setting boot source. CNcomment:用户可以调用该接口设置开机通道 CNend
|
|
|
\param TV_SRC_E, CNcomment:传入支持的信号源对应的枚举参数CNend
|
|
|
\param TV_SRC_ATV -> 0;
|
|
|
\param TV_SRC_DVBC -> 1;
|
|
|
\param TV_SRC_DTMB -> 2;
|
|
|
\param TV_SRC_CVBS1 -> 3;
|
|
|
\param TV_SRC_CVBS2 -> 4;
|
|
|
\param TV_SRC_CVBS3 -> 5;
|
|
|
\param TV_SRC_VGA -> 6;
|
|
|
\param TV_SRC_YPBPR1 -> 7;
|
|
|
\param TV_SRC_YPBPR2 -> 8;
|
|
|
\param TV_SRC_HDMI1 -> 9;
|
|
|
\param TV_SRC_HDMI2 -> 10;
|
|
|
\param TV_SRC_HDMI3 -> 11;
|
|
|
\param TV_SRC_HDMI4 -> 12;
|
|
|
\param TV_SRC_MEDIA -> 13;
|
|
|
\param TV_SRC_MEDIA2 -> 14;
|
|
|
\param TV_SRC_SCART1 -> 15;
|
|
|
\param TV_SRC_SCART2 -> 16;
|
|
|
\param TV_SRC_AUTO -> 17;
|
|
|
\param TV_SRC_DVBT -> 18;
|
|
|
\param TV_SRC_ATSC -> 19;
|
|
|
\param TV_SRC_DVBS -> 20;
|
|
|
\param TV_SRC_ISDBT -> 21;
|
|
|
\param CNcomment:CNend
|
|
|
\retval 0:success, -1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int setBootSource(int srcId) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Get Boot Source. CNcomment:获取开机通道源信息 CNend
|
|
|
\attention this func can be called for user getting boot source. CNcomment:用户可以调用该接口获取开机通道源信息 CNend
|
|
|
\param CNcomment: CNend
|
|
|
\retval CNcomment:支持的信号源对应的枚举参数CNend
|
|
|
\retval 0: TV_SRC_ATV;
|
|
|
\retval 1: TV_SRC_DVBC;
|
|
|
\retval 2: TV_SRC_DTMB;
|
|
|
\retval 3: TV_SRC_CVBS1;
|
|
|
\retval 4: TV_SRC_CVBS2;
|
|
|
\retval 5: TV_SRC_CVBS3;
|
|
|
\retval 6: TV_SRC_VGA;
|
|
|
\retval 7: TV_SRC_YPBPR1;
|
|
|
\retval 8: TV_SRC_YPBPR2;
|
|
|
\retval 9: TV_SRC_HDMI1;
|
|
|
\retval 10: TV_SRC_HDMI2;
|
|
|
\retval 11: TV_SRC_HDMI3;
|
|
|
\retval 12: TV_SRC_HDMI4;
|
|
|
\retval 13: TV_SRC_MEDIA;
|
|
|
\retval 14: TV_SRC_MEDIA2;
|
|
|
\retval 15: TV_SRC_SCART1;
|
|
|
\retval 16: TV_SRC_SCART2;
|
|
|
\retval 17: TV_SRC_AUTO;
|
|
|
\retval 18: TV_SRC_DVBT;
|
|
|
\retval 19: TV_SRC_ATSC;
|
|
|
\retval 20: TV_SRC_DVBS;
|
|
|
\retval 21: TV_SRC_ISDBT;
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getBootSource() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Get Source List. CNcomment:获取支持的信号源列表 CNend
|
|
|
\attention this func can be called for user getting source list. CNcomment:用户可以调用该接口获取支持的信号源列表 CNend
|
|
|
\param CNcomment: CNend
|
|
|
\retval IntegerList<int>, TV_SRC_E. CNcomment:支持的信号源列表CNend
|
|
|
\retval 0: TV_SRC_ATV;
|
|
|
\retval 1: TV_SRC_DVBC;
|
|
|
\retval 2: TV_SRC_DTMB;
|
|
|
\retval 3: TV_SRC_CVBS1;
|
|
|
\retval 4: TV_SRC_CVBS2;
|
|
|
\retval 5: TV_SRC_CVBS3;
|
|
|
\retval 6: TV_SRC_VGA;
|
|
|
\retval 7: TV_SRC_YPBPR1;
|
|
|
\retval 8: TV_SRC_YPBPR2;
|
|
|
\retval 9: TV_SRC_HDMI1;
|
|
|
\retval 10: TV_SRC_HDMI2;
|
|
|
\retval 11: TV_SRC_HDMI3;
|
|
|
\retval 12: TV_SRC_HDMI4;
|
|
|
\retval 13: TV_SRC_MEDIA;
|
|
|
\retval 14: TV_SRC_MEDIA2;
|
|
|
\retval 15: TV_SRC_SCART1;
|
|
|
\retval 16: TV_SRC_SCART2;
|
|
|
\retval 17: TV_SRC_AUTO;
|
|
|
\retval 18: TV_SRC_DVBT;
|
|
|
\retval 19: TV_SRC_ATSC;
|
|
|
\retval 20: TV_SRC_DVBS;
|
|
|
\retval 21: TV_SRC_ISDBT;
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getSourceList(IntegerList *list) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Get Avail Source List. CNcomment:获取当前有信号的信号源列表 CNend
|
|
|
\attention this func can be called for user getting avail source list.
|
|
|
CNcomment:用户可以调用该接口获取当期有信号的信号源列表 CNend
|
|
|
\param CNcomment: CNend
|
|
|
\retval IntegerList<int>, TV_SRC_E. CNcomment:信号源列表CNend
|
|
|
\retval 0: TV_SRC_ATV;
|
|
|
\retval 1: TV_SRC_DVBC;
|
|
|
\retval 2: TV_SRC_DTMB;
|
|
|
\retval 3: TV_SRC_CVBS1;
|
|
|
\retval 4: TV_SRC_CVBS2;
|
|
|
\retval 5: TV_SRC_CVBS3;
|
|
|
\retval 6: TV_SRC_VGA;
|
|
|
\retval 7: TV_SRC_YPBPR1;
|
|
|
\retval 8: TV_SRC_YPBPR2;
|
|
|
\retval 9: TV_SRC_HDMI1;
|
|
|
\retval 10: TV_SRC_HDMI2;
|
|
|
\retval 11: TV_SRC_HDMI3;
|
|
|
\retval 12: TV_SRC_HDMI4;
|
|
|
\retval 13: TV_SRC_MEDIA;
|
|
|
\retval 14: TV_SRC_MEDIA2;
|
|
|
\retval 15: TV_SRC_SCART1;
|
|
|
\retval 16: TV_SRC_SCART2;
|
|
|
\retval 17: TV_SRC_AUTO;
|
|
|
\retval 18: TV_SRC_DVBT;
|
|
|
\retval 19: TV_SRC_ATSC;
|
|
|
\retval 20: TV_SRC_DVBS;
|
|
|
\retval 21: TV_SRC_ISDBT;
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getAvailSourceList(IntegerList *list) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Get Screen Timing Info. CNcomment:获取当前信号的屏显Timing信息 CNend
|
|
|
\attention this func can be called for user getting timing info. CNcomment:用户可以调用该接口获取当期信号的Timing信息 CNend
|
|
|
\param CNcomment: CNend
|
|
|
\retval TV_TIMING_INFO_S. CNcomment:时钟信息结构体CNend
|
|
|
\retval int u32Width;
|
|
|
\retval int u32Height;
|
|
|
\retval int u32FrameRate;
|
|
|
\retval bool bInterlace;
|
|
|
\retval int enFormatHDMI;
|
|
|
\retval int enFormat3d;
|
|
|
\retval int enColorSpace;
|
|
|
\retval bool bMHL;
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual TV_TIMING_INFO_S getTimingInfo() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Get Signal Status. CNcomment:获取当前信号源的信号状态 CNend
|
|
|
\attention this func can be called for user getting signal status. CNcomment:用户可以调用该接口获取当期信号源的信号状态 CNend
|
|
|
\param CNcomment: CNend
|
|
|
\retval EnumSignalStat. CNcomment:信号状态枚举CNend
|
|
|
\retval 0: TV_SIGNAL_SUPPORT;
|
|
|
\retval 1: TV_SIGNAL_NOSIGNAL;
|
|
|
\retval 2: TV_SIGNAL_UNSUPPORT;
|
|
|
\retval 3: TV_SIGNAL_UNSTABLE;
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getSignalStatus() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Get DVI Mode. CNcomment:判断当前为DVI模式还是HDMI模式 CNend
|
|
|
\attention this func can be called for user getting DVI mode. CNcomment:用户可以调用该接口判断当前是否为DVI模式CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval boolean, TRUE:DVI, FALSE:HDMI. CNcomment:布尔类型, TRUE:当前为DVI模式,FALSE:当前为HDMI模式 CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual bool isDVIMode() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Get MHL Status. CNcomment:获取当前是否有MHL信号 CNend
|
|
|
\attention this func can be called for user getting mhl status. CNcomment:用户可以调用该接口获取当前是否为MHL信号 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval boolean, TRUE:Yes, FALSE:No. CNcomment:布尔类型, TRUE:有MHL信号,FALSE:没有MHL信号 CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual bool isMHLStatus() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Get MHL Port Using. CNcomment:获取硬件MHL口是否接入 CNend
|
|
|
\attention this func can be called for user getting mhl port using. CNcomment:用户可以调用该接口获取硬件MHL口是否插入 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval boolean, TRUE:Yes, FALSE:No. CNcomment:布尔类型, TRUE:硬件MHL插入,FALSE:硬件MHL没有插入 CNend
|
|
|
\see \n
|
|
|
CNcomment:接口暂时不可用,未实现CNend
|
|
|
*/
|
|
|
virtual bool isMHLPortInUse() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Get MHL Signal Status. CNcomment:获取MHL的信号状态 CNend
|
|
|
\attention this func can be called for user getting MHL signal status. CNcomment:用户可以调用该接口获取MHL的信号状态 CNend
|
|
|
\param CNcomment: CNend
|
|
|
\retval 0: TV_SIGNAL_SUPPORT;
|
|
|
\retval 1: TV_SIGNAL_NOSIGNAL;
|
|
|
\retval 2: TV_SIGNAL_UNSUPPORT;
|
|
|
\retval 3: TV_SIGNAL_UNSTABLE;
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getMhlSignalStatus() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Get MHL Cbus status. CNcomment:获取MHL的Cbus状态 CNend
|
|
|
\attention this func can be called for user getting MHL Cbus status. CNcomment:用户可以调用该接口获取MHL的Cbus状态 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval boolean, TRUE:Yes,FALSE:No. CNcomment: CNend
|
|
|
\see \n
|
|
|
*/
|
|
|
virtual bool getMhlCbusStatus() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Send Rcp Key. CNcomment:发送MHL的RCP键值 CNend
|
|
|
\attention this func can be called for user sending rcp key. CNcomment:用户可以调用该接口发送MHL的RCP键值 CNend
|
|
|
\param TV_MHL_RCP_KEY_E. CNcomment:传入MHL的RCP键值对应的枚举参数CNend
|
|
|
\param TV_MHL_RCP_KEY_SELECT -> 0;
|
|
|
\param TV_MHL_RCP_KEY_UP -> 1;
|
|
|
\param TV_MHL_RCP_KEY_DOWN -> 2;
|
|
|
\param TV_MHL_RCP_KEY_LEFT -> 3;
|
|
|
\param TV_MHL_RCP_KEY_RIGHT -> 4;
|
|
|
\param TV_MHL_RCP_KEY_ROOT_MENU -> 5;
|
|
|
\param TV_MHL_RCP_KEY_EXIT -> 6;
|
|
|
\param TV_MHL_RCP_KEY_PLAY -> 7;
|
|
|
\param TV_MHL_RCP_KEY_STOP -> 8;
|
|
|
\param TV_MHL_RCP_KEY_PAUSE -> 9;
|
|
|
\param TV_MHL_RCP_KEY_REWIND -> 10;
|
|
|
\param TV_MHL_RCP_KEY_FAST_FWD -> 11;
|
|
|
\param boolean paramBoolean, TRUE:send, FALSE:NO. CNcomment:布尔类型参数, TRUE:发送该键值, FALSE:不发送该键值 CNend
|
|
|
\retval 0:success, -1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int sendRcpKey(int key) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief show Subtitle. CNcomment:显示Subtitle CNend
|
|
|
\attention this func can be called for user showing Subtitle.
|
|
|
CNcomment:用户可以调用该接口显示Subtitle, 第二次调用将关闭Subtitle CNend
|
|
|
\retval 0:success, -1:failure CNcomment:返回值,0成功,-1,失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int showSubtitle() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Get graphic Mode. CNcomment:获取graphic mode CNend
|
|
|
\attention this func can be called for user getting graphic mode. CNcomment:用户可以调用该接口获取graphic mode CNend
|
|
|
\param CNcomment: CNend
|
|
|
\retval boolean, TRUE:auto,FALSE:video. CNcomment: CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual bool getGraphicMode() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get video definition. CNcomment:CNend
|
|
|
\attention this func can be called for user getting video definition. 获取视频清晰度. CNcomment:CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval video definition, see TV_VIDEO_DEFINITION_E
|
|
|
\retval 0: TV_VIDEO_DEFINITION_STANDARD
|
|
|
\retval 1: TV_VIDEO_DEFINITION_HIGH
|
|
|
\retval 2: TV_VIDEO_DEFINITION_4K
|
|
|
\retval 3: TV_VIDEO_DEFINITION_8K
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual TV_VIDEO_DEFINITION_E getVideoDefinition() = 0;
|
|
|
};
|
|
|
}; // namespace android
|
|
|
|
|
|
/* * @} */ /* * <!-- ==== API declaration end ==== */
|
|
|
|
|
|
#endif
|