|
DtvKit_ATSC3.0
|
#include <atsc_plf_frontend_hwcontrol.h>
Classes | |
| struct | sFeHw_t |
| struct | sFeHwStatus_t |
Public Member Functions | |
| CFeHwCtrl (int iDevId) | |
| ~CFeHwCtrl () | |
| Stop the demux and close frontend. And free the allocated memory for ALP,Frontend. | |
| int32_t | StopInput (void) |
| To Stop the demux. | |
| int32_t | StartInput (void) |
| To Start the demux for collecting the data. | |
| int32_t | SetCallback (void *pParent, DataCallback dataCB) |
| int32_t | GetStatus (int32_t *pSnr, int32_t *pRssi, int32_t *pEas, int32_t *pLock) |
| int32_t | SetProperties (int32_t iMode, uint32_t iFreq, int32_t iBandwidth, int32_t iPlp) |
| int32_t | GetProperty (int32_t *pMode, uint32_t *pFreq, int *pBandwidth, int32_t *pPlp) |
| CFeHwCtrl (int iDevId) | |
| int32_t | StopInput (void) |
| int32_t | StartInput (void) |
| int32_t | SetCallback (void *pParent, DataCallback dataCB) |
| int32_t | GetStatus (int32_t *pSnr, int32_t *pRssi, int32_t *pEas, int32_t *pLock) |
| int32_t | SetProperties (int32_t iMode, uint32_t iFreq, int32_t iBandwidth, int32_t iPlp) |
| int32_t | GetProperty (int32_t *pMode, uint32_t *pFreq, int *pBandwidth, int32_t *pPlp) |
Protected Member Functions | |
| void | DataDeInit (void) |
| Set the m_BitCount as 0. | |
| void | SetByteAlign (void) |
| To adjust the m_BitCount member to ensure it is aligned to the nearest byte boundary. | |
| uint32_t | GetBitCount (void) |
| Get the m_BitCount value for process the get/skip data. | |
| void | SkipData (int iBitCount) |
| Skip the data based on m_BitCount which is used in GetData(). | |
| int32_t | SendData (sFeHw_t *pHan) |
| Read the data from driver frontend and provide the data for formation of TS,ALP. | |
| int32_t | StopDemux (sFeHw_t *pHan) |
| To stop the PES filter demux. | |
| int32_t | StartDemux (sFeHw_t *pHan) |
| To start the PES filter with immediate start to collect the data after tuner lock. | |
| void * | CaptureThreadHandler (void) |
| To get the data from driver frontend via SendData(). | |
| uint32_t | GetData (int32_t iBitSize) |
| Calculated and return the data length represented in bit calc. | |
| int32_t | InitFrontend (sFeHw_t *pHan) |
| To Open the driver API - Frontend. | |
| int32_t | CloseFrontend (sFeHw_t *pHan) |
| To close the frontend and demux handle. | |
| void | DataInit (unsigned char *pData) |
| Assign the INIT ALP data to the param m_pData. | |
| int32_t | SetFrontendParams (sFeHw_t *pHan) |
| To set the properties for frontend to driver. | |
| void | CancelReaderThread (sFeHw_t *pHan) |
| To close the Frontend. | |
| void | ThreadCleanUp (void *pCleanHandle) |
| To close the Frontend. | |
| int32_t | ProcessInput (unsigned char *pTsData) |
| Process the received input data of TS and provide the data for ALP via ProcessALP() by calculating the data size based on 2048 bytes. | |
| void | ProcessALP (unsigned char *pDataBuf, int32_t iLen) |
| Passed the data for ALP via ProcessAlpData() for the received length. | |
| int32_t | ProcessTS (unsigned char *pDataBuf, int32_t iLen) |
| Process the sync byte of TS data and passed the data as remaining data for ALP formation via ProcessInput(). | |
| int32_t | ProcessAlpData (unsigned char *pDataBuf, int32_t iLen) |
| Parsed the ALP data based on the header formation and passed the data via callback(pCallbackHandler). | |
| int32_t | CheckFrontend (sFeHw_t *pHan, sFeHwStatus_t *pTunerProp) |
| To check the frontend status such as Signal strength,Frequency, Lock status,SNR,Bitrate. | |
Static Protected Member Functions | |
| static void * | DataReadInput (void *a_pParam) |
| To get the data from driver frontend via CaptureThreadHandler(). | |
Protected Attributes | |
| pthread_t | mCaptureThread |
| pthread_mutex_t | mCaptureMutex |
| sFeHw_t | hDevice |
| void * | mpParent |
| DataCallback | pCallbackHandler |
| int32_t | m_Mode |
| int32_t | m_State |
| int32_t | m_CurPlp |
| int32_t | m_BitCount |
| int32_t | m_CurIndex |
| int32_t | m_TSRemain |
| int32_t | m_RecvState |
| int32_t | m_SyncPoint |
| int32_t | m_AlpRemain |
| uint8_t * | m_pData |
| uint8_t * | m_pAlpData |
| uint8_t * | m_pResData |
| uint8_t * | m_pInputBuf |
| uint8_t * | m_pRemainData |
| int32_t | mBitrate |
| int32_t | mAvgBitrate |
| CFeHwCtrl::~CFeHwCtrl | ( | ) |
Stop the demux and close frontend. And free the allocated memory for ALP,Frontend.
| NA |
| NA |
|
protected |
|
protected |
|
protected |
To check the frontend status such as Signal strength,Frequency, Lock status,SNR,Bitrate.
| sFeHw_t | * pHan, sFeHwStatus_t *pFeStatus |
| int32_t | (eATSCResult_t) |
|
protected |
To close the frontend and demux handle.
| sFeHw_t | * pHan |
| int32_t | (eATSCResult_t) |
|
protected |
Set the m_BitCount as 0.
| None |
| void |
|
protected |
Assign the INIT ALP data to the param m_pData.
| uint8_t | *pData |
| void |
|
staticprotected |
To get the data from driver frontend via CaptureThreadHandler().
| void* | a_pParam |
| void | * |
|
protected |
Get the m_BitCount value for process the get/skip data.
| None |
| uint32_t | (m_BitCount) |
|
protected |
Calculated and return the data length represented in bit calc.
| int32_t | iBitSize |
| uint32_t | (Length of data value as bit). |
|
protected |
|
protected |
Passed the data for ALP via ProcessAlpData() for the received length.
| uint8_t | *pDataBuf,int32_t iLen |
| void |
|
protected |
Parsed the ALP data based on the header formation and passed the data via callback(pCallbackHandler).
| uint8_t | * pDataBuf ,int32_t iLen |
| int32_t | (eATSCResult_t) , Position of Data |
|
protected |
Process the received input data of TS and provide the data for ALP via ProcessALP() by calculating the data size based on 2048 bytes.
| uint8_t | * pDataBuf |
| int32_t | (eATSCResult_t) |
|
protected |
Process the sync byte of TS data and passed the data as remaining data for ALP formation via ProcessInput().
| uint8_t | * pDataBuf, int32_t iLen |
| int32_t | (eATSCResult_t) |
|
protected |
Read the data from driver frontend and provide the data for formation of TS,ALP.
| sFeHw_t | * pHan |
| int32_t | (eATSCResult_t) |
|
protected |
To adjust the m_BitCount member to ensure it is aligned to the nearest byte boundary.
| None |
| void |
|
protected |
To set the properties for frontend to driver.
| sFeHw_t | * pHan |
| int32_t | (eATSCResult_t) |
|
protected |
Skip the data based on m_BitCount which is used in GetData().
| int32_t | bitCount |
| void |
|
protected |
To start the PES filter with immediate start to collect the data after tuner lock.
| sFeHw_t | * pHan |
| int32_t | (eATSCResult_t) |
| CFeHwCtrl::StartInput | ( | void | ) |
To Start the demux for collecting the data.
| void |
| int32_t | (eATSCResult_t) |
|
protected |
| CFeHwCtrl::StopInput | ( | void | ) |
To Stop the demux.
| void |
| int32_t | (eATSCResult_t) |
|
protected |
To close the Frontend.
| void | * pCleanHandle |
| void |
|
protected |
Tuner Device
|
protected |
ALP Data remaining count for processing
|
protected |
Total Bit count
|
protected |
Current Index
|
protected |
Current PLP ID
|
protected |
Current Mode
|
protected |
Pointer to ALP Data to be processed
|
protected |
Pointer to Raw data to process
|
protected |
Pointer to Input buffer with data to process
|
protected |
Pointer to remaining data
|
protected |
Pointer to Residual data
|
protected |
Receiving State flag
|
protected |
Current State
|
protected |
Synchronization Point
|
protected |
Remaining TS processing data left
|
protected |
To store Calculated Average Bitrate
|
protected |
To store Bitrate
|
protected |
mCaptureMutex
|
protected |
mCaptureThread
|
protected |
Parent - calling pointer
|
protected |
Data call back handler execution unit