MWCapture SDK Linux  3.3.1.LAST_SVN_COMMIT_NUM
mw_cc708_decoder.h
1 #ifndef MWCCDECODER_H
2 #define MWCCDECODER_H
3 
5 // Copyright (c) 2011-2019 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 LIBMWCCDECODER_API
53 
60 LIBMWCCDECODER_API
62 
69 LIBMWCCDECODER_API
71 
80 LIBMWCCDECODER_API
81 void MWSetCC708DecoderCallback(mw_cc708_decoder_t *pDecoder, void(*pHandle)(int service, void *userdata), void *pUserdata);
82 
91 LIBMWCCDECODER_API
92 void MWSetCC708DecodeType(mw_cc708_decoder_t *pDecoder, bool b608, bool b708);
93 
102 LIBMWCCDECODER_API
104 
114 LIBMWCCDECODER_API
116 
125 LIBMWCCDECODER_API
127 
137 LIBMWCCDECODER_API
139 
149 LIBMWCCDECODER_API
150 MW_CC_RESULT MWDecodeCC608(mw_cc708_decoder_t *pDecoder, const unsigned char *pData, int nDatalength);
151 
161 LIBMWCCDECODER_API
162 MW_CC_RESULT MWDecodeCC708(mw_cc708_decoder_t *pDecoder, const unsigned char *pData, int nDatalength);
163 
164 #ifdef __cplusplus
165 }
166 #endif
167 #endif
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.
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.
LIBMWCCDECODER_API void MWSetCC708DecoderCallback(mw_cc708_decoder_t *pDecoder, void(*pHandle)(int service, void *userdata), void *pUserdata)
MWSetCC708DecoderCallback Sets CC708 decoder callback function.
LIBMWCCDECODER_API MW_CC_RESULT MWEnableOutputChannel(mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t mcc)
MWEnableOutputChannel Sets the decoded CC output channel.
enum _cc708_channel mw_cc708_channel_t
Enumeration of cc708 channels.
LIBMWCCDECODER_API void MWDestoryCC708Decoder(mw_cc708_decoder_t *pDecoder)
MWDestoryCC708Decoder Unregisters CC708 decoder.
LIBMWCCDECODER_API MW_CC_RESULT MWDecodeCC608(mw_cc708_decoder_t *pDecoder, const unsigned char *pData, int nDatalength)
MWDecodeCC608 Decodes cc608 ANC.
LIBMWCCDECODER_API MW_CC_RESULT MWDisableOutputChannel(mw_cc708_decoder_t *pDecoder, mw_cc708_channel_t mcc)
MWDisableOutputChannel Sets the channels not to output CC.
LIBMWCCDECODER_API void MWResetCC708Decoder(mw_cc708_decoder_t *pDecoder)
MWResetCC708Decoder Resets CC708 decoder.
enum _CC_RESULT MW_CC_RESULT
MW_CC_RESULT.
LIBMWCCDECODER_API void MWSetCC708DecodeType(mw_cc708_decoder_t *pDecoder, bool b608, bool b708)
MWSetCC708DecodeType Sets CC708 decoder to parsing CC data types.
_cc708_decoder cc708 decoder
Definition: mw_cc708_base_types.h:679
LIBMWCCDECODER_API mw_cc708_decoder_t * MWCreateCC708Decoder()
MWCreateCC708Decoder Creats CC708 decoder.
LIBMWCCDECODER_API MW_CC_RESULT MWDecodeCC708(mw_cc708_decoder_t *pDecoder, const unsigned char *pData, int nDatalength)
MWDecodeCC708 Decodes cc708 ANC.