LibMWCapture  3.3.1
LibMWCapture Documentation
Macros | Functions
mw_cc708_decoder.h File Reference
#include "mw_cc708_base_types.h"
#include "mw_error_code.h"

Go to the source code of this file.

Macros

#define LIBMWCCDECODER_API
 

Functions

LIBMWCCDECODER_API mw_cc708_decoder_t * MWCreateCC708Decoder ()
 MWCreateCC708Decoder Creates the 708 decoder. More...
 
LIBMWCCDECODER_API void MWDestoryCC708Decoder (mw_cc708_decoder_t *pDecoder)
 MWDestoryCC708Decoder Destorys the 708 decoder. More...
 
LIBMWCCDECODER_API void MWResetCC708Decoder (mw_cc708_decoder_t *pDecoder)
 MWResetCC708Decoder Resets the 708 decoder. More...
 
LIBMWCCDECODER_API void MWSetCC708DecoderCallback (mw_cc708_decoder_t *pDecoder, void(*pHandle)(int service, void *userdata), void *pUserdata)
 MWSetCC708DecoderCallback Sets the callbalck of the decoder to remind the output update. More...
 
LIBMWCCDECODER_API void MWSetCC708DecodeType (mw_cc708_decoder_t *pDecoder, bool b608, bool b708)
 MWSetCC708DecodeType Sets decode 608 data or 708 data of the input data. More...
 
LIBMWCCDECODER_API MW_CC_RESULT MWEnableOutputChannel (mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t mcc)
 MWEnableOutputChannel Enable output channel. More...
 
LIBMWCCDECODER_API MW_CC_RESULT MWEnableOutputChannels (mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t *mcc, int array_num)
 MWEnableOutputChannels. More...
 
LIBMWCCDECODER_API MW_CC_RESULT MWDisableOutputChannel (mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t mcc)
 MWDisableOutputChannel Disable output channel. More...
 
LIBMWCCDECODER_API MW_CC_RESULT MWDisableOutputChannels (mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t *mcc, int array_num)
 MWDisableOutputChannels Disable output channel. More...
 
LIBMWCCDECODER_API MW_CC_RESULT MWDecodeCC608 (mw_cc708_decoder_t *pDecoder, const unsigned char *pData, int nDatalength)
 MWDecodeCC608 Decodes CC608 ANC data. More...
 
LIBMWCCDECODER_API MW_CC_RESULT MWDecodeCC708 (mw_cc708_decoder_t *pDecoder, const unsigned char *pData, int nDatalength)
 MWDecodeCC708 Decodes CC708 ANC data. More...
 

Macro Definition Documentation

◆ LIBMWCCDECODER_API

#define LIBMWCCDECODER_API

Definition at line 33 of file mw_cc708_decoder.h.

Function Documentation

◆ MWCreateCC708Decoder()

LIBMWCCDECODER_API mw_cc708_decoder_t* MWCreateCC708Decoder ( )

MWCreateCC708Decoder Creates the 708 decoder.

Returns
Returns NULL if failed,otherwise return the pointer

◆ MWDecodeCC608()

LIBMWCCDECODER_API MW_CC_RESULT MWDecodeCC608 ( mw_cc708_decoder_t *  pDecoder,
const unsigned char *  pData,
int  nDatalength 
)

MWDecodeCC608 Decodes CC608 ANC data.

Parameters
[in]pDecoderThe pointer of the decoder
[in]pDataThe pointer of anc data
[in]nDatalengthLength of anc data
Returns
Returns MW_CC_NO_ERROR when all is right

◆ MWDecodeCC708()

LIBMWCCDECODER_API MW_CC_RESULT MWDecodeCC708 ( mw_cc708_decoder_t *  pDecoder,
const unsigned char *  pData,
int  nDatalength 
)

MWDecodeCC708 Decodes CC708 ANC data.

Parameters
[in]pDecoderThe pointer of the decoder
[in]pDataThe pointer of anc data
[in]nDatalengthLength of anc data
Returns
Returns MW_CC_NO_ERROR when all is right

◆ MWDestoryCC708Decoder()

LIBMWCCDECODER_API void MWDestoryCC708Decoder ( mw_cc708_decoder_t *  pDecoder)

MWDestoryCC708Decoder Destorys the 708 decoder.

Parameters
[in]pDecoderThe pointer of the decoder

◆ MWDisableOutputChannel()

LIBMWCCDECODER_API MW_CC_RESULT MWDisableOutputChannel ( mw_cc708_decoder_t *  pDecoder,
mw_cc708_channel_t  mcc 
)

MWDisableOutputChannel Disable output channel.

Parameters
[in]pDecoderThe pointer of the decoder
[in]mccThe symbol of channel
Returns
Returns MW_CC_NO_ERROR when all is right

◆ MWDisableOutputChannels()

LIBMWCCDECODER_API MW_CC_RESULT MWDisableOutputChannels ( mw_cc708_decoder_t *  pDecoder,
mw_cc708_channel_t *  mcc,
int  array_num 
)

MWDisableOutputChannels Disable output channel.

Parameters
[in]pDecoderThe pointer of the decoder
[in]mccThe pointer to channel arrays
[in]array_numThe length of channel arrays
Returns
Returns MW_CC_NO_ERROR when all is right

◆ MWEnableOutputChannel()

LIBMWCCDECODER_API MW_CC_RESULT MWEnableOutputChannel ( mw_cc708_decoder_t *  pDecoder,
mw_cc708_channel_t  mcc 
)

MWEnableOutputChannel Enable output channel.

Parameters
[in]pDecoderThe pointer of the decoder
[in]mccThe symbol of channel
Returns
Returns MW_CC_NO_ERROR when all is right

◆ MWEnableOutputChannels()

LIBMWCCDECODER_API MW_CC_RESULT MWEnableOutputChannels ( mw_cc708_decoder_t *  pDecoder,
mw_cc708_channel_t *  mcc,
int  array_num 
)

MWEnableOutputChannels.

Parameters
[in]pDecoderThe pointer of the decoder
[in]mccThe pointer to channel arrays
[in]array_numThe length of channel arrays
Returns
Returns MW_CC_NO_ERROR when all is right

◆ MWResetCC708Decoder()

LIBMWCCDECODER_API void MWResetCC708Decoder ( mw_cc708_decoder_t *  pDecoder)

MWResetCC708Decoder Resets the 708 decoder.

Parameters
[in]pDecoderThe pointer of the decoder

◆ MWSetCC708DecoderCallback()

LIBMWCCDECODER_API void MWSetCC708DecoderCallback ( mw_cc708_decoder_t *  pDecoder,
void(*)(int service, void *userdata)  pHandle,
void *  pUserdata 
)

MWSetCC708DecoderCallback Sets the callbalck of the decoder to remind the output update.

Parameters
[in]pDecoderThe pointer of the decoder
[in]pHandleThe pointer of the callback function
[in]pUserdataThe pointer of the callback caller

◆ MWSetCC708DecodeType()

LIBMWCCDECODER_API void MWSetCC708DecodeType ( mw_cc708_decoder_t *  pDecoder,
bool  b608,
bool  b708 
)

MWSetCC708DecodeType Sets decode 608 data or 708 data of the input data.

Parameters
[in]pDecoderThe pointer of the decoder
[in]b608If true,it will decode 608 data of the input data
[in]b708If true,it will decode 708 data of the input data