MWCapture SDK Linux  3.3.1.LAST_SVN_COMMIT_NUM
Functions
Closed Caption Decoder Functions

Functions

LIBMWCCDECODER_API mw_cc708_decoder_tMWCreateCC708Decoder ()
 MWCreateCC708Decoder Creats CC708 decoder. More...
 
LIBMWCCDECODER_API void MWDestoryCC708Decoder (mw_cc708_decoder_t *pDecoder)
 MWDestoryCC708Decoder Unregisters CC708 decoder. More...
 
LIBMWCCDECODER_API void MWResetCC708Decoder (mw_cc708_decoder_t *pDecoder)
 MWResetCC708Decoder Resets CC708 decoder. More...
 
LIBMWCCDECODER_API void MWSetCC708DecoderCallback (mw_cc708_decoder_t *pDecoder, void(*pHandle)(int service, void *userdata), void *pUserdata)
 MWSetCC708DecoderCallback Sets CC708 decoder callback function. More...
 
LIBMWCCDECODER_API void MWSetCC708DecodeType (mw_cc708_decoder_t *pDecoder, bool b608, bool b708)
 MWSetCC708DecodeType Sets CC708 decoder to parsing CC data types. More...
 
LIBMWCCDECODER_API MW_CC_RESULT MWEnableOutputChannel (mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t mcc)
 MWEnableOutputChannel Sets the decoded CC output channel. More...
 
LIBMWCCDECODER_API MW_CC_RESULT MWEnableOutputChannels (mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t *mcc, int array_num)
 MWEnableOutputChannels Sets the decoded CC output channels. More...
 
LIBMWCCDECODER_API MW_CC_RESULT MWDisableOutputChannel (mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t mcc)
 MWDisableOutputChannel Sets the channels not to output CC. More...
 
LIBMWCCDECODER_API MW_CC_RESULT MWDisableOutputChannels (mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t *mcc, int array_num)
 MWDisableOutputChannels Length of output channel array. More...
 
LIBMWCCDECODER_API MW_CC_RESULT MWDecodeCC608 (mw_cc708_decoder_t *pDecoder, const unsigned char *pData, int nDatalength)
 MWDecodeCC608 Decodes cc608 ANC. More...
 
LIBMWCCDECODER_API MW_CC_RESULT MWDecodeCC708 (mw_cc708_decoder_t *pDecoder, const unsigned char *pData, int nDatalength)
 MWDecodeCC708 Decodes cc708 ANC. More...
 

Detailed Description

Function Documentation

LIBMWCCDECODER_API mw_cc708_decoder_t* MWCreateCC708Decoder ( )

MWCreateCC708Decoder Creats CC708 decoder.

Returns
If the function call succeeds, the CC708 decoder handle is returned; otherwise, the null value is returned.
LIBMWCCDECODER_API MW_CC_RESULT MWDecodeCC608 ( mw_cc708_decoder_t pDecoder,
const unsigned char *  pData,
int  nDatalength 
)

MWDecodeCC608 Decodes cc608 ANC.

Parameters
[in]pDecoderCC708 decoder
[in]pDataANC
[in]nDatalengthLength of ANC
Returns
Returns MW_CC_NO_ERROR
LIBMWCCDECODER_API MW_CC_RESULT MWDecodeCC708 ( mw_cc708_decoder_t pDecoder,
const unsigned char *  pData,
int  nDatalength 
)

MWDecodeCC708 Decodes cc708 ANC.

Parameters
[in]pDecoderCC708 decoder
[in]pDataANC
[in]nDatalengthLength of ANC
Returns
Returns MW_CC_NO_ERROR
LIBMWCCDECODER_API void MWDestoryCC708Decoder ( mw_cc708_decoder_t pDecoder)

MWDestoryCC708Decoder Unregisters CC708 decoder.

Parameters
[in]pDecoderDecoder pointer
LIBMWCCDECODER_API MW_CC_RESULT MWDisableOutputChannel ( mw_cc708_decoder_t pDecoder,
mw_cc708_channel_t  mcc 
)

MWDisableOutputChannel Sets the channels not to output CC.

Parameters
[in]pDecoderCC708 decoder
[in]mccOutput channels
Returns
Returns MW_CC_NO_ERROR
LIBMWCCDECODER_API MW_CC_RESULT MWDisableOutputChannels ( mw_cc708_decoder_t pDecoder,
mw_cc708_channel_t mcc,
int  array_num 
)

MWDisableOutputChannels Length of output channel array.

Parameters
[in]pDecoderCC708 decoder
[in]mccOutput channel array
[in]array_numLength of output channel array
Returns
Returns MW_CC_NO_ERROR
LIBMWCCDECODER_API MW_CC_RESULT MWEnableOutputChannel ( mw_cc708_decoder_t pDecoder,
mw_cc708_channel_t  mcc 
)

MWEnableOutputChannel Sets the decoded CC output channel.

Parameters
[in]pDecoderCC708 decoder
[in]mccOutput channel
Returns
Returns MW_CC_NO_ERROR
LIBMWCCDECODER_API MW_CC_RESULT MWEnableOutputChannels ( mw_cc708_decoder_t pDecoder,
mw_cc708_channel_t mcc,
int  array_num 
)

MWEnableOutputChannels Sets the decoded CC output channels.

Parameters
[in]pDecoderCC708 decoder
[in]mccOutput channel array
[in]array_numLength of output channel array
Returns
Returns MW_CC_NO_ERROR
LIBMWCCDECODER_API void MWResetCC708Decoder ( mw_cc708_decoder_t pDecoder)

MWResetCC708Decoder Resets CC708 decoder.

Parameters
[in]pDecoderCC708 decoder
LIBMWCCDECODER_API void MWSetCC708DecoderCallback ( mw_cc708_decoder_t pDecoder,
void(*)(int service, void *userdata)  pHandle,
void *  pUserdata 
)

MWSetCC708DecoderCallback Sets CC708 decoder callback function.

Parameters
[in]pDecoderCC708 decoder
[in]pHandleCallback functions
[in]pUserdataCallback object
LIBMWCCDECODER_API void MWSetCC708DecodeType ( mw_cc708_decoder_t pDecoder,
bool  b608,
bool  b708 
)

MWSetCC708DecodeType Sets CC708 decoder to parsing CC data types.

Parameters
[in]pDecoderCC708 decoder
[in]b608Whether to decode cc608
[in]b708Whether to decode cc708