|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
48 if(not mHALInitialized)
50 if(subtecConnector::initHal() == CC_VL_OS_API_RESULT_SUCCESS)
52 AAMPLOG_WARN(
"AampSubtecCCManager::calling subtecConnector::initHal() - success");
53 mHALInitialized =
true;
57 AAMPLOG_WARN(
"AampSubtecCCManager::calling subtecConnector::initHal() - failure");
67 if(not mRendererInitialized)
69 if(subtecConnector::initPacketSender() == CC_VL_OS_API_RESULT_SUCCESS)
71 AAMPLOG_WARN(
"AampSubtecCCManager::calling subtecConnector::initPacketSender() - success");
72 mRendererInitialized =
true;
76 AAMPLOG_WARN(
"AampSubtecCCManager::calling subtecConnector::initPacketSender() - failure");
86 std::lock_guard<std::mutex> lock(mIdLock);
97 std::lock_guard<std::mutex> lock(mIdLock);
98 if( mIdSet.erase(
id) > 0 )
100 int iSize = mIdSet.size();
101 AAMPLOG_WARN(
"AampSubtecCCManager::users:%d",iSize);
105 subtecConnector::resetChannel();
108 subtecConnector::close();
109 mHALInitialized =
false;
117 AAMPLOG_TRACE(
"AampSubtecCCManager::ID:%d not found returning",
id);
126 subtecConnector::ccMgrAPI::ccShow();
134 subtecConnector::ccMgrAPI::ccHide();
142 const auto ret = subtecConnector::ccMgrAPI::ccSetDigitalChannel(
id);
152 const auto ret = subtecConnector::ccMgrAPI::ccSetAnalogChannel(
id);
162 AAMPLOG_WARN(
"AampSubtecCCManager::");
182 AAMPLOG_WARN(
"AampSubtecCCManager::AampSubtecCCManager setting default to cc1");
virtual int GetId()
Gets Handle or ID, Every client using subtec must call GetId in the begining , save id,...
int SetTrack(const std::string &track, const CCFormat format=eCLOSEDCAPTION_FORMAT_DEFAULT)
Set CC track.
void EnsureInitialized() override
Impl specific initialization code called before each public interface call.
void EnsureRendererStateConsistency()
ensure mRendering is consistent with renderer state
void Start()
To start CC rendering.
void EnsureHALInitialized() override
Impl specific initialization code for HAL.
int SetStyle(const std::string &options)
Set CC styles for rendering.
int SetDigitalChannel(unsigned int id) override
set digital channel with specified id
void StartRendering() override
To start CC rendering.
void EnsureRendererCommsInitialized() override
Impl specific initialization code for Communication with rendered.
Interface header for libsubtec_connector.
Private functions and types used internally by AAMP.
void StopRendering() override
To stop CC rendering.
Integration layer of Subtec ClosedCaption in AAMP.
#define AAMPLOG_TRACE(FORMAT,...)
AAMP logging defines, this can be enabled through setLogLevel() as per the need.
void Release(int iID) override
Release CC resources.
int SetAnalogChannel(unsigned int id) override
set analog channel with specified id
void Stop()
To stop CC rendering.
AampSubtecCCManager()
Constructor.