|
|
/*
|
|
|
* Copyright (c) Hisilicon Technologies Co., Ltd.. 2012-2019. All rights reserved.
|
|
|
* Description:
|
|
|
* Author:
|
|
|
* Create:
|
|
|
*/
|
|
|
|
|
|
#ifndef IATVCHANNEL_H
|
|
|
#define IATVCHANNEL_H
|
|
|
|
|
|
#include <utils/RefBase.h>
|
|
|
#include "tv_common.h"
|
|
|
|
|
|
/* ****************************** API Declaration **************************** */
|
|
|
/* * \addtogroup TVMW */
|
|
|
/* * @{ */ /* * <!-- [TVMW] */
|
|
|
|
|
|
namespace android {
|
|
|
class IAtvChannel : virtual public RefBase {
|
|
|
public:
|
|
|
/**
|
|
|
\brief get Max Tuner Freq. CNcomment:获取Tuner频点范围的最大值CNend
|
|
|
\attention this func can be called for user getting Max Tuner Freq. CNcomment:用户可以调用该接口获取Tuner频点范围的最大值CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval Max Tuner Freqence value. CNcomment:当前Tuner频点范围的最大值 CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getMaxTuneFreq() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get Min Tuner Freq. CNcomment:获取Tuner频点范围的最小值CNend
|
|
|
\attention this func can be called for user getting Min Tuner Freq. CNcomment:用户可以调用该接口获取Tuner频点范围的最小值CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval Min Tuner Freqence value. CNcomment:当前Tuner频点范围的最小值 CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getMinTuneFreq() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief auto Scan. CNcomment:自动搜台CNend
|
|
|
\attention this func can be called for user autoscan. CNcomment:用户可以调用该接口进行ATV自动搜台 CNend
|
|
|
\attention range of scan freq defaults to [MinTuneFreq, MaxTuneFreq].
|
|
|
CNcomment:默认开始频点为tuner频点范围的最小值,结束频点为tuner频点范围的最大值CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int autoScan() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief auto Scan with startFreq and endFreq. CNcomment:带频点范围的自动搜台CNend
|
|
|
\attention this func can be called for user autoscan with startFreq and endFreq.
|
|
|
CNcomment:用户可以调用该接口进行ATV带频点范围的自动搜台 CNend
|
|
|
\param user can set startFreq >= getMinTuneFreq, endFreq <-> getMaxTuneFreq.
|
|
|
CNcomment:开始频点大于tuner频点范围的最小值,结束频点小于tuner频点范围的最大值CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int autoScan(long startFreq, long endFreq) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief manual Scan with startFreq and endFreq. CNcomment:带频点范围的手动搜台CNend
|
|
|
\attention this func can be called for user manual scan with startFreq and endFreq.
|
|
|
CNcomment:用户可以调用该接口进行ATV带频点范围的手动搜台 CNend
|
|
|
\param setting startFreq, endFreq and bForward.
|
|
|
CNcomment:设定开始频点,(结束频点暂时不支持,可以为任意参数)
|
|
|
和搜台方向(bForward = TURE:从小到大;bForward = FALSE:从大到小)CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int manualScan(long startFreq, long endFreq, bool bForward) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief manual Scan without startFreq and endFreq. CNcomment:不带频点范围的手动搜台CNend
|
|
|
\attention this func can be called for user manual scan. CNcomment:用户可以调用该接口进行ATV手动搜台 CNend
|
|
|
\param boolean bForward. CNcomment:搜台方向(bForward = TURE:从小到大;bForward = FALSE:从大到小)CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int manualScan(bool bForward) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief pause Scan. CNcomment:暂停ATV搜台CNend
|
|
|
\attention this func can be called for user pause scan. CNcomment:用户可以调用该接口暂停ATV搜台 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int pauseScan() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief resume Scan. CNcomment:继续ATV搜台CNend
|
|
|
\attention this func can be called for user resume scan. CNcomment:用户可以调用该接口恢复继续ATV搜台 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int resumeScan() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get Scan Status. CNcomment:获取当前搜台线程的状态CNend
|
|
|
\attention this func can be called for user getting Scan Status. CNcomment:用户可以调用该接口获取当前搜台线程的状态 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval 0 :start. CNcomment:1 开始 CNend
|
|
|
\retval 1 :run. CNcomment:2 运行 CNend
|
|
|
\retval 2 :pause. CNcomment:3 暂停 CNend
|
|
|
\retval 3 :exit. CNcomment:4 退出 CNend
|
|
|
\retval 4 :butt. CNcomment:5 无效 CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getScanStatus() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get Current Frequency. CNcomment:获取当前频道的频点信息CNend
|
|
|
\attention this func can be called for user getting Current Frequency. CNcomment:用户可以调用该接口获取当前频道的频点信息 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getCurrentFrequency() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief End Manual Scan. CNcomment:结束ATV手动搜台CNend
|
|
|
\attention this func can be called for user End Manual Scan. CNcomment:用户可以调用该接口结束ATV手动搜台 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int endManualScan() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief exit Scan. CNcomment:退出搜台流程CNend
|
|
|
\attention this func can be called for user exitting Scan. CNcomment:用户可以调用该接口退出搜台流程 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int exitScan() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief fine Tune. CNcomment:频点微调CNend
|
|
|
\attention this func can be called for user fineTune. CNcomment:用户可以调用该接口进行微调,单位khz,微调步长由INI文件中TunerStep决定CNend
|
|
|
\param setting freq. CNcomment:设定的需要微调的频率值CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int fineTune(long freq) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Enable AFT onOff. CNcomment:使能自动频率调整开关CNend
|
|
|
\attention this func can be called for user enabling AFT on/off. 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 enableAFT(bool bEnable) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get AFTEnable. CNcomment:获取自动频率调整开关状态CNend
|
|
|
\attention this func can be called for user getting AFTEnable. CNcomment:用户可以调用该接口获取自动频率调整开关状态CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval boolean, TRUE:on,FALSE:off. CNcomment:布尔类型,TRUE:自动频率调整开,FALSE:自动频率调整关CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual bool isAFTEnable() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get All ProgList. CNcomment:获取所有频道列表信息CNend
|
|
|
\attention this func can be called for user getting All ProgList. CNcomment:用户可以调用该接口获取所有频道列表信息 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval ArrayList,one of number has TvProgram. CNcomment:所有的频道列表,每个频道都有相应的信息(TvProgram) CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual TV_ATV_PROG_ATTR_LIST getProgList() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get Current Program Number. CNcomment:获取当前频道号CNend
|
|
|
\attention this func can be called for user getting Current Program Number. CNcomment:用户可以调用该接口获取当前频道号 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval Current Program number. CNcomment:当前频道号CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getCurProgNumber() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get Program Info. CNcomment:获取指定频道的频道信息CNend
|
|
|
\attention this func can be called for user getting Program Info. CNcomment:用户可以调用该接口获取指定频道的频道信息 CNend
|
|
|
\param Program number. CNcomment:指定的频道号 CNend
|
|
|
\retval TvProgram with ID,Freq,FreqOffset,TvChannelAttr and name. CNcomment:返回频道信息CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual TV_ATV_PROG_ATTR_S getProgInfo(int number) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get Avail Program Count. CNcomment:获取有效节目数量CNend
|
|
|
\attention this func can be called for user getting Avail Program Count. CNcomment:用户可以调用该接口获取有效节目数量 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval Avail Program Count. CNcomment:有效节目数量 CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getAvailProgCount() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief set Program Change Mode. CNcomment:设置ATV静帧换台模式使能,建议使用setChnSwitchMode(int SwitchMode) CNend
|
|
|
\attention this func can be called for user setting Program Change Mode. CNcomment:用户可以调用该接口设置换台模式 CNend
|
|
|
\param boolean freezeMode;TRUE:freezeMode,FALSE:normal. CNcomment:参数为布尔型,TRUE为静像/静帧模式,FALSE为标准 CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int enableChangeMode(bool freezeMode) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get ChangeModeEnable. CNcomment:获取ATV静帧换台模式的使能状态,建议使用getChnSwitchMode() CNend
|
|
|
\attention this func can be called for user getting ChangeModeEnable. CNcomment:用户可以调用该接口获取换台模式 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval boolean, TRUE:freezeMode,FALSE:Normal. CNcomment:布尔类型,TRUE:换台模式为静像/静帧,FALSE:换台模式为标准 CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int isChangeModeEnable() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief set Program Change Mode. CNcomment:设置换台模式 CNend
|
|
|
\attention this func can be called for user setting Program Change Mode. CNcomment:用户可以调用该接口设置换台模式 CNend
|
|
|
\param TV_FREEZE_LAST -> 0;
|
|
|
\param TV_FREEZE_BLACK -> 1;
|
|
|
\CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int setChnSwitchMode(int switchMode) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get ChangeModeEnable. CNcomment:获取ATV静帧换台模式的使能状态 CNend
|
|
|
\attention this func can be called for user getting ChangeModeEnable. CNcomment:用户可以调用该接口获取换台模式 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\param TV_FREEZE_LAST -> 0;
|
|
|
\param TV_FREEZE_BLACK -> 1;
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getChnSwitchMode() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief select Program number. CNcomment:指定频道号换台CNend
|
|
|
\attention this func can be called for user selectting Program number. CNcomment:用户可以调用该接口进行指定频道号换台 CNend
|
|
|
\param Program number. CNcomment:指定的频道号 CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int selectProg(int number) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief select Program . CNcomment:切入缺省台CNend
|
|
|
\attention this func can be called for user selectting Program. CNcomment:用户可以调用该接口切入缺省台(切源候第一次换台时换入缺省台) CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int selectProg() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Program Return . CNcomment:频道回看 CNend
|
|
|
\attention this func can be called for user return program. CNcomment:用户可以调用该接口进行频道回看 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int progReturn() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Program Up . CNcomment:往上加切频道 CNend
|
|
|
\attention this func can be called for user Uping program. CNcomment:用户可以调用该接口进行往上加切频道 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int progUp() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Program Down . CNcomment:往下减切频道 CNend
|
|
|
\attention this func can be called for user Downing program. CNcomment:用户可以调用该接口进行往下减切频道 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval 0 :success. CNcomment:0 成功CNend
|
|
|
\retval -1:failure. CNcomment:-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int progDown() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief set Color System . CNcomment:设置彩色制式 CNend
|
|
|
\attention this func can be called for user setting Color System. CNcomment:用户可以调用该接口设置彩色制式 CNend
|
|
|
\param CNcomment:传入彩色制式对应的枚举参数CNend
|
|
|
\param TV_COLOR_SYS_AUTO -> 0;
|
|
|
\param TV_COLOR_SYS_PAL -> 1
|
|
|
\param TV_COLOR_SYS_NTSC -> 2;
|
|
|
\param TV_COLOR_SYS_SECAM -> 3;
|
|
|
\param TV_COLOR_SYS_PAL_M -> 4;
|
|
|
\param TV_COLOR_SYS_PAL_N -> 5;
|
|
|
\param TV_COLOR_SYS_PAL_60 -> 6;
|
|
|
\param TV_COLOR_SYS_NTSC443 -> 7;
|
|
|
\param TV_COLOR_SYS_NTSC_50 -> 8;
|
|
|
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int setColorSystem(int colorSystem) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get Color System . CNcomment:获取彩色制式 CNend
|
|
|
\attention this func can be called for user getting Color System. CNcomment:用户可以调用该接口获取当前彩色制式 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\param TV_COLOR_SYS_AUTO -> 0;
|
|
|
\param TV_COLOR_SYS_PAL -> 1
|
|
|
\param TV_COLOR_SYS_NTSC -> 2;
|
|
|
\param TV_COLOR_SYS_SECAM -> 3;
|
|
|
\param TV_COLOR_SYS_PAL_M -> 4;
|
|
|
\param TV_COLOR_SYS_PAL_N -> 5;
|
|
|
\param TV_COLOR_SYS_PAL_60 -> 6;
|
|
|
\param TV_COLOR_SYS_NTSC443 -> 7;
|
|
|
\param TV_COLOR_SYS_NTSC_50 -> 8;
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getColorSystem() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief set Audio System . CNcomment:设置伴音制式 CNend
|
|
|
\attention this func can be called for user setting Audio System. CNcomment:用户可以调用该接口设置伴音制式 CNend
|
|
|
\param CNcomment:传入声音制式对应的枚举参数CNend
|
|
|
\param TV_AUDIO_SYS_BG -> 0;
|
|
|
\param TV_AUDIO_SYS_BG_A2 -> 1;
|
|
|
\param TV_AUDIO_SYS_BG_NICAM -> 2;
|
|
|
\param TV_AUDIO_SYS_I -> 3;
|
|
|
\param TV_AUDIO_SYS_DK -> 4;
|
|
|
\param TV_AUDIO_SYS_DK1_A2 -> 5;
|
|
|
\param TV_AUDIO_SYS_DK2_A2 -> 6;
|
|
|
\param TV_AUDIO_SYS_DK3_A2 -> 7;
|
|
|
\param TV_AUDIO_SYS_DK_NICAM -> 8;
|
|
|
\param TV_AUDIO_SYS_L -> 9;
|
|
|
\param TV_AUDIO_SYS_M -> 10;
|
|
|
\param TV_AUDIO_SYS_M_BTSC -> 11;
|
|
|
\param TV_AUDIO_SYS_M_A2 -> 12;
|
|
|
\param TV_AUDIO_SYS_M_EIA_J -> 13;
|
|
|
\param TV_AUDIO_SYS_NOTSTANDARD -> 14;
|
|
|
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int setAudioSystem(int audioSystem) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get Audio System . CNcomment:获取伴音制式 CNend
|
|
|
\attention this func can be called for user getting Audio System. CNcomment:用户可以调用该接口获取当前伴音制式 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval 0:TV_AUDIO_SYS_BG;
|
|
|
\retval 1:TV_AUDIO_SYS_BG_A2;
|
|
|
\retval 2:TV_AUDIO_SYS_BG_NICAM;
|
|
|
\retval 3:TV_AUDIO_SYS_I;
|
|
|
\retval 4:TV_AUDIO_SYS_DK;
|
|
|
\retval 5:TV_AUDIO_SYS_DK1_A2;
|
|
|
\retval 6:TV_AUDIO_SYS_DK2_A2;
|
|
|
\retval 7:TV_AUDIO_SYS_DK3_A2;
|
|
|
\retval 8:TV_AUDIO_SYS_DK_NICAM;
|
|
|
\retval 9:TV_AUDIO_SYS_L;
|
|
|
\retval 10:TV_AUDIO_SYS_M;
|
|
|
\retval 11:TV_AUDIO_SYS_M_BTSC;
|
|
|
\retval 12:TV_AUDIO_SYS_M_A2;
|
|
|
\retval 13:TV_AUDIO_SYS_M_EIA_J;
|
|
|
\retval 14:TV_AUDIO_SYS_NOTSTANDARD;
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getAudioSystem() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief set Mts Mode . CNcomment:设置丽音模式 CNend
|
|
|
\attention this func can be called for user setting Mts Mode. CNcomment:用户可以调用该接口设置丽音模式 CNend
|
|
|
\param CNcomment:传入丽音模式对应的枚举参数CNend
|
|
|
\param TV_MTS_MODE_TV_MTS_MODE_MONO -> 0;
|
|
|
\param TV_MTS_MODE_STEREO -> 1;
|
|
|
\param TV_MTS_MODE_DUAL_A -> 2;
|
|
|
\param TV_MTS_MODE_DUAL_B -> 3;
|
|
|
\param TV_MTS_MODE_DUAL_AB -> 4;
|
|
|
\param TV_MTS_MODE_BTSC_MONO -> 5;
|
|
|
\param TV_MTS_MODE_BTSC_STEREO -> 6;
|
|
|
\param TV_MTS_MODE_BTSC_SAP -> 7;
|
|
|
\param TV_MTS_MODE_NICAM_FORCED_MONO -> 8;
|
|
|
\param TV_MTS_MODE_NICAM_MONO -> 9;
|
|
|
\param TV_MTS_MODE_NICAM_STEREO -> 10;
|
|
|
\param TV_MTS_MODE_NICAM_DUAL_A -> 11;
|
|
|
\param TV_MTS_MODE_NICAM_DUAL_B -> 12;
|
|
|
\param TV_MTS_MODE_NICAM_DUAL_AB -> 13;
|
|
|
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int setMtsMode(int mode) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get Mts Mode . CNcomment:获取丽音模式 CNend
|
|
|
\attention this func can be called for user getting Mts Mode. CNcomment:用户可以调用该接口获取当前丽音模式CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval 0: TV_MTS_MODE_TV_MTS_MODE_MONO;
|
|
|
\retval 1: TV_MTS_MODE_STEREO;
|
|
|
\retval 2: TV_MTS_MODE_DUAL_A;
|
|
|
\retval 3: TV_MTS_MODE_DUAL_A;
|
|
|
\retval 4: TV_MTS_MODE_DUAL_AB;
|
|
|
\retval 5: TV_MTS_MODE_BTSC_MONO;
|
|
|
\retval 6: TV_MTS_MODE_BTSC_STEREO;
|
|
|
\retval 7: TV_MTS_MODE_BTSC_SAP;
|
|
|
\retval 8: TV_MTS_MODE_NICAM_FORCED_MONO;
|
|
|
\retval 9: TV_MTS_MODE_NICAM_MONO;
|
|
|
\retval 10: TV_MTS_MODE_NICAM_STEREO;
|
|
|
\retval 11: TV_MTS_MODE_NICAM_DUAL_A;
|
|
|
\retval 12: TV_MTS_MODE_NICAM_DUAL_B;
|
|
|
\retval 13: TV_MTS_MODE_NICAM_DUAL_AB;
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getMtsMode() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get Mts Mode List . CNcomment:获取当前支持的丽音模式列表 CNend
|
|
|
\attention this func can be called for user getting Mts Mode List. CNcomment:用户可以调用该接口获取当前支持的丽音模式列表CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval ArrayList
|
|
|
\retval 0: TV_MTS_MODE_TV_MTS_MODE_MONO;
|
|
|
\retval 1: TV_MTS_MODE_STEREO;
|
|
|
\retval 2: TV_MTS_MODE_DUAL_A;
|
|
|
\retval 3: TV_MTS_MODE_DUAL_A;
|
|
|
\retval 4: TV_MTS_MODE_DUAL_AB;
|
|
|
\retval 5: TV_MTS_MODE_BTSC_MONO;
|
|
|
\retval 6: TV_MTS_MODE_BTSC_STEREO;
|
|
|
\retval 7: TV_MTS_MODE_BTSC_SAP;
|
|
|
\retval 8: TV_MTS_MODE_NICAM_FORCED_MONO;
|
|
|
\retval 9: TV_MTS_MODE_NICAM_MONO;
|
|
|
\retval 10: TV_MTS_MODE_NICAM_STEREO;
|
|
|
\retval 11: TV_MTS_MODE_NICAM_DUAL_A;
|
|
|
\retval 12: TV_MTS_MODE_NICAM_DUAL_B;
|
|
|
\retval 13: TV_MTS_MODE_NICAM_DUAL_AB;
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getMtsModeList(IntegerList *list) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get freq CurBand. CNcomment:获取频点的Tuner频段CNend
|
|
|
\attention this func can be called for user getting freq CurBand. CNcomment:用户可以调用该接口获取频点的Tuner频段 CNend
|
|
|
\param freq. CNcomment:频点 CNend
|
|
|
\retval 0:TV_ATVBAND_VHF_LOW;
|
|
|
\retval 1:TV_ATVBAND_VHF_HIGH;
|
|
|
\retval 2:TV_ATVBAND_UHF;
|
|
|
\retval 3:TV_ATVBAND_ALL;
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getCurBand(long freq) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief set Program Vol Offset. CNcomment:设置指定频道的音量补偿CNend
|
|
|
\attention this func can be called for user setting Program Vol Offset.
|
|
|
CNcomment:用户可以调用该接口设置指定频道的音量补偿, offset单位为dB, 支持调节范围[-70, 0]dB. CNend
|
|
|
\param[in] Program number. CNcomment:指定的频道号 CNend
|
|
|
\param[in] offset. CNcomment:设定的音量补偿值 CNend
|
|
|
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:设定的音量补偿(offset单位为dB, 支持调节范围[-70, 0]dB)CNend
|
|
|
*/
|
|
|
virtual int setVolOffset(int programNo, int offset) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get Program Vol Offset. CNcomment:获取指定频道的音量补偿CNend
|
|
|
\attention this func can be called for user getting Program Vol Offset. CNcomment:用户可以调用该接口获取指定频道的音量补偿 CNend
|
|
|
\param Program number. CNcomment:指定的频道号 CNend
|
|
|
\retval Volume Offset. CNcomment:音量补偿, offset单位为dB, 范围[-70, 0]dB.CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getVolOffset(int programNo) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief favorite program. CNcomment:频道收藏标记 CNend
|
|
|
\attention this func can be called for user favoritting Program. CNcomment:用户可以调用该接口进行频道编辑 CNend
|
|
|
\param[in] Program number. CNcomment:指定的频道号 CNend
|
|
|
\param[in] boolean bFlag,TRUE:like program,FALSE:offsite. CNcomment:喜欢标志, TRUE:喜爱,FALSE:不喜爱 CNend
|
|
|
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int favorite(int number, bool bFlag) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get favorite program count. CNcomment:获取喜欢的频道总数CNend
|
|
|
\attention this func can be called for user getting favorite program count. CNcomment:用户可以调用该接口获取喜欢的频道总数 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval Current Program number. CNcomment:当前频总数CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getFavoriteCount() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get specify favorite program number info. CNcomment:获取指定喜欢节目的信息CNend
|
|
|
\attention this func can be called for user getting specify favorite program number info.
|
|
|
CNcomment:用户可以调用该接口获取指定喜欢节目的信息 CNend
|
|
|
\param Program number. CNcomment:指定第几个喜欢频道 CNend
|
|
|
\retval TvProgram with ID,Freq,FreqOffset,TvChannelAttr and name. CNcomment:返回频道信息CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual TV_ATV_PROG_ATTR_S getSelFavoriteInfo(int number) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Delete Program. CNcomment:删除指定频道CNend
|
|
|
\attention this func can be called for user Deletting Program. CNcomment:用户可以调用该接口删除指定频道 CNend
|
|
|
\param Program number. CNcomment:指定的频道号 CNend
|
|
|
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int deleteChannel(int number) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Skip program. CNcomment:设定跳台 CNend
|
|
|
\attention this func can be called for user skipping Program. CNcomment:用户可以调用该接口设定跳台 CNend
|
|
|
\param[in] Program number. CNcomment:指定的频道号 CNend
|
|
|
\param[in] boolean bFlag. CNcomment:跳台标志,TRUE:跳过此台,FALSE:不跳过此台.CNend
|
|
|
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int skip(int number, bool bFlag) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get unskip program count. CNcomment:获取未跳过频道总数CNend
|
|
|
\attention this func can be called for user getting unskip program count. CNcomment:用户可以调用该接口获取未跳过频道总数 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval Current Program number. CNcomment:当前频总数CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int getUnSkipCount() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get specify unskip program number info. CNcomment:获取指定未跳过频道的频道信息CNend
|
|
|
\attention this func can be called for user getting specify unskip program number info.\
|
|
|
CNcomment:用户可以调用该接口获取指定未跳过频道的频道信息 CNend
|
|
|
\param Program number. CNcomment:指定第几个未跳过频道 CNend
|
|
|
\retval TvProgram with ID,Freq,FreqOffset,TvChannelAttr and name. CNcomment:返回频道信息CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual TV_ATV_PROG_ATTR_S getUnSkipInfo(int number) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief lock program. CNcomment:设定锁台 CNend
|
|
|
\attention this func can be called for user to lock Program. CNcomment:用户可以调用该接口锁定频道 CNend
|
|
|
\param[in] Program number. CNcomment:指定的频道号 CNend
|
|
|
\param[in] boolean bFlag. CNcomment:锁台标志 CNend
|
|
|
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int enableLock(int number, bool bFlag) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief the program is locked or not. CNcomment:获取频道是否锁定 CNend
|
|
|
\attention this func can be called for user to get Program locked or not. CNcomment:用户可以调用该接口获取频道号是否锁定 CNend
|
|
|
\param[in] Program number. CNcomment:指定的频道号 CNend
|
|
|
\retval true:locked,false:unlocked CNcomment:true 锁定,false 没有锁定CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual bool isLockEnable(int number) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Rename program. CNcomment:指定频道重命名 CNend
|
|
|
\attention this func can be called for user Renamming Program. CNcomment:用户可以调用该接口对指定频道进行重命名 CNend
|
|
|
\param[in] Program number. CNcomment:指定的频道号 CNend
|
|
|
\param[in] String name. CNcomment:新的命名 CNend
|
|
|
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int rename(int number, const char *name) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Swap program. CNcomment:频道互换 CNend
|
|
|
\attention this func can be called for user Swapping Program. CNcomment:用户可以调用该接口对指定频道1和频道2进行互换 CNend
|
|
|
\param[in] Program number1. CNcomment:指定的频道号1 CNend
|
|
|
\param[in] Program number2. CNcomment:指定的频道号2 CNend
|
|
|
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int swap(int number1, int number2) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Clear all program. CNcomment:清除所有频道 CNend
|
|
|
\attention this func can be called for user Clearing all program. CNcomment:用户可以调用该接口清除所有频道信息 CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval 0:success,-1:failure CNcomment:0 成功,-1 失败CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual int clearAll() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief set Tuner Mode .
|
|
|
\attention this func can be called for user setting Tuner Mode.
|
|
|
\param boolean bAntenna,true:Antenna;false:Cable
|
|
|
\retval 0:success,-1:failure
|
|
|
\see \n
|
|
|
*/
|
|
|
virtual int setTunerMode(bool bAntenna) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get Tuner Mode .
|
|
|
\attention this func can be called for user getting Tuner Mode.
|
|
|
\param
|
|
|
\retval 0 Cable;
|
|
|
\retval 1 Antenna;
|
|
|
\see \n
|
|
|
*/
|
|
|
virtual bool getTunerMode() = 0;
|
|
|
|
|
|
/**
|
|
|
\brief set Channel Sort Index .
|
|
|
\attention this func can be called for user setting Channel Sort Index.
|
|
|
\param int chanId
|
|
|
\param int index
|
|
|
\retval 0:success,-1:failure
|
|
|
\see \n
|
|
|
*/
|
|
|
virtual int setSortIndex(int chanId, int sortIndex) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get Channel Sort Index .
|
|
|
\attention this func can be called for user getting Channel Sort Index .
|
|
|
\param int chanId
|
|
|
\retval
|
|
|
\see \n
|
|
|
*/
|
|
|
virtual int getSortIndex(int chanId) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief Enable StandbyAutoScan onOff. CNcomment:使能待机搜台开关CNend
|
|
|
\attention this func can be called for user enabling StandbyAutoScan on/off. 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 enableStandbyAutoScan(bool onOff) = 0;
|
|
|
|
|
|
/**
|
|
|
\brief get StandbyAutoScanEnable. CNcomment:获取待机搜台开关状态CNend
|
|
|
\attention this func can be called for user getting StandbyAutoScanEnable. CNcomment:用户可以调用该接口获取待机搜台开关状态CNend
|
|
|
\param CNcomment:CNend
|
|
|
\retval boolean, TRUE:on,FALSE:off. CNcomment:布尔类型,TRUE:待机搜台开,FALSE:待机搜台关CNend
|
|
|
\see \n
|
|
|
CNcomment:CNend
|
|
|
*/
|
|
|
virtual bool isStandbyAutoScanEnable() = 0;
|
|
|
};
|
|
|
}; // namespace android
|
|
|
|
|
|
/* * @} */ /* * <!-- ==== API declaration end ==== */
|
|
|
|
|
|
#endif
|