LibMWCapture  3.3.1
LibMWCapture Documentation
mw_cc708_decoder.h
Go to the documentation of this file.
1 #ifndef MWCCDECODER_H
2 #define MWCCDECODER_H
3 
5 // Copyright (c) 2011-2018 Magewell Electronics Co., Ltd. (Nanjing)
6 //
7 // Permission is hereby granted, free of charge, to any person obtaining a
8 // copy of this software and associated documentation files (the "Software"),
9 // to deal in the Software without restriction, including without limitation
10 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 // and/or sell copies of the Software, and to permit persons to whom the
12 // Software is furnished to do so, subject to the following conditions:
13 //
14 // The above copyright notice and this permission notice shall be included
15 // in all copies or substantial portions of the Software.
16 //
17 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 // THE SOFTWARE.
25 
26 #pragma once
27 
28 #ifdef LIBMWCCDECODER_EXPORTS
29 #define LIBMWCCDECODER_API __declspec(dllexport)
30 #elif LIBMWCCDECODER_DLL
31 #define LIBMWCCDECODER_API __declspec(dllimport)
32 #else
33 #define LIBMWCCDECODER_API
34 #endif
35 
36 #include "mw_cc708_base_types.h"
37 #include "mw_error_code.h"
38 
39 #ifdef __cplusplus
40 
41 extern "C"
42 {
43 #endif
44 
51 mw_cc708_decoder_t *MWCreateCC708Decoder();
52 
59 void MWDestoryCC708Decoder(mw_cc708_decoder_t *pDecoder);
60 
67 void MWResetCC708Decoder(mw_cc708_decoder_t *pDecoder);
68 
77 void MWSetCC708DecoderCallback(mw_cc708_decoder_t *pDecoder, void(*pHandle)(int service, void *userdata), void *pUserdata);
78 
87 void MWSetCC708DecodeType(mw_cc708_decoder_t *pDecoder, bool b608, bool b708);
88 
97 MW_CC_RESULT MWEnableOutputChannel(mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t mcc);
98 
107 MW_CC_RESULT MWEnableOutputChannels(mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t *mcc, int array_num);
108 
117 MW_CC_RESULT MWDisableOutputChannel(mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t mcc);
118 
128 MW_CC_RESULT MWDisableOutputChannels(mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t *mcc,int array_num);
129 
139 MW_CC_RESULT MWDecodeCC608(mw_cc708_decoder_t *pDecoder, const unsigned char *pData, int nDatalength);
140 
150 MW_CC_RESULT MWDecodeCC708(mw_cc708_decoder_t *pDecoder, const unsigned char *pData, int nDatalength);
151 
152 #ifdef __cplusplus
153 }
154 #endif
155 #endif
LIBMWCCDECODER_API MW_CC_RESULT MWDecodeCC708(mw_cc708_decoder_t *pDecoder, const unsigned char *pData, int nDatalength)
MWDecodeCC708 Decodes CC708 ANC data.
LIBMWCCDECODER_API mw_cc708_decoder_t * MWCreateCC708Decoder()
MWCreateCC708Decoder Creates the 708 decoder.
LIBMWCCDECODER_API MW_CC_RESULT MWDisableOutputChannels(mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t *mcc, int array_num)
MWDisableOutputChannels Disable output channel.
LIBMWCCDECODER_API MW_CC_RESULT MWDisableOutputChannel(mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t mcc)
MWDisableOutputChannel Disable output channel.
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.
LIBMWCCDECODER_API void MWDestoryCC708Decoder(mw_cc708_decoder_t *pDecoder)
MWDestoryCC708Decoder Destorys the 708 decoder.
LIBMWCCDECODER_API MW_CC_RESULT MWEnableOutputChannel(mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t mcc)
MWEnableOutputChannel Enable output channel.
LIBMWCCDECODER_API MW_CC_RESULT MWEnableOutputChannels(mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t *mcc, int array_num)
MWEnableOutputChannels.
LIBMWCCDECODER_API void MWResetCC708Decoder(mw_cc708_decoder_t *pDecoder)
MWResetCC708Decoder Resets the 708 decoder.
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.
LIBMWCCDECODER_API MW_CC_RESULT MWDecodeCC608(mw_cc708_decoder_t *pDecoder, const unsigned char *pData, int nDatalength)
MWDecodeCC608 Decodes CC608 ANC data.
#define LIBMWCCDECODER_API