MWCapture SDK Linux  3.3.1.LAST_SVN_COMMIT_NUM
mw_cc708_render.h
1 #ifndef CCREBDER_FT
2 #define CCREBDER_FT
3 // Copyright (c) 2011-2018 Magewell Electronics Co., Ltd. (Nanjing)
5 //
6 // Permission is hereby granted, free of charge, to any person obtaining a
7 // copy of this software and associated documentation files (the "Software"),
8 // to deal in the Software without restriction, including without limitation
9 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 // and/or sell copies of the Software, and to permit persons to whom the
11 // Software is furnished to do so, subject to the following conditions:
12 //
13 // The above copyright notice and this permission notice shall be included
14 // in all copies or substantial portions of the Software.
15 //
16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 // THE SOFTWARE.
24 
25 
26 #include "mw_cc708_render_base_types.h"
27 #include "mw_cc708_base_types.h"
28 #include "mw_error_code.h"
29 #pragma once
30 
31 #ifdef LIBCCRENDER_FREETYPE_EXPORTS
32 #define LIBCCRENDER_FREETYPE_API __declspec(dllexport)
33 #elif LIBCCRENDER_FREETYPE_DLL
34 #define LIBCCRENDER_FREETYPE_API __declspec(dllimport)
35 #else
36 #define LIBCCRENDER_FREETYPE_API
37 #endif
38 
45 LIBCCRENDER_FREETYPE_API
47 
54 LIBCCRENDER_FREETYPE_API
55 void MWDestoryRender(mw_cc_render_t *pRender);
56 
65 LIBCCRENDER_FREETYPE_API
66 bool MWLoadFont(mw_cc_font_t *t_pmcfFont, mw_cc_render_t *pRender);
67 
75 LIBCCRENDER_FREETYPE_API
76 void MWUnLoadFont(mw_cc_font_t *t_pmcfFont, mw_cc_render_t *pRender);
77 
86 LIBCCRENDER_FREETYPE_API
87 mw_cc_screen_t *MWCreateCCScreen(int t_nWidth, int t_nHeight);
88 
95 LIBCCRENDER_FREETYPE_API
96 void MWDestoryCCScreen(mw_cc_screen_t *t_pScreen);
97 
108 LIBCCRENDER_FREETYPE_API
110  mw_cc_screen_t *t_pScreen,
111  mw_cc608_buffer_t *t_pCC608Buffer,
112  mw_cc_font_t *t_pmcfFont,
113  mw_cc_render_t *pRender);
114 
128 LIBCCRENDER_FREETYPE_API
130  unsigned char *t_pScreen,
131  int t_nWidth,
132  int t_nHeight,
133  int t_nSize,
134  mw_cc608_buffer_t *t_pCC608Buffer,
135  mw_cc_font_t *t_pmcfFont,
136  mw_cc_render_t *pRender);
137 
155 LIBCCRENDER_FREETYPE_API
157  unsigned char *t_pScreen,
158  int t_nWidth,
159  int t_nHeight,
160  int t_nSize,
161  int t_nX,
162  int t_nY,
163  int t_nAWidth,
164  int t_nAHeight,
165  mw_cc608_buffer_t *t_pCC608Buffer,
166  mw_cc_font_t *t_pmcfFont,
167  mw_cc_render_t *pRender
168 );
169 
180 LIBCCRENDER_FREETYPE_API
182 
196 LIBCCRENDER_FREETYPE_API
198  unsigned char *t_pScreen,
199  int t_nWidth,
200  int t_nHeight,
201  int t_nSize,
202  mw_cc708_tv_window_screen_t *t_pWindowScreen,
203  mw_cc_font_t *t_pmcfFont,
204  mw_cc_render_t *pRender);
205 
223 LIBCCRENDER_FREETYPE_API
225  unsigned char *t_pScreen,
226  int t_nWidth,
227  int t_nHeight,
228  int t_nSize,
229  int t_nX,
230  int t_nY,
231  int t_nAWidth,
232  int t_nAHeight,
233  mw_cc708_tv_window_screen_t *t_pWindowScreen,
234  mw_cc_font_t *t_pmcfFont,
235  mw_cc_render_t *pRender);
244 LIBCCRENDER_FREETYPE_API
245 void MWRenderCCSetBackgroundColor(mw_cc_font_t *t_pFont, bool t_bSet, mw_cc_color_t t_mccColor);
246 
255 LIBCCRENDER_FREETYPE_API
256 void MWRenderCCSetFontColor(mw_cc_font_t *t_pFont, bool t_bSet, mw_cc_color_t t_mccColor);
257 
258 #endif
LIBCCRENDER_FREETYPE_API void MWDestoryCCScreen(mw_cc_screen_t *t_pScreen)
MWDestoryCCScreen Destroys a CC Screen.
LIBCCRENDER_FREETYPE_API bool MWLoadFont(mw_cc_font_t *t_pmcfFont, mw_cc_render_t *pRender)
MWLoadFont Uploads fonts.
LIBCCRENDER_FREETYPE_API MW_CC_RESULT MWRenderCC608BufferArea(unsigned char *t_pScreen, int t_nWidth, int t_nHeight, int t_nSize, int t_nX, int t_nY, int t_nAWidth, int t_nAHeight, mw_cc608_buffer_t *t_pCC608Buffer, mw_cc_font_t *t_pmcfFont, mw_cc_render_t *pRender)
MWRenderCC608BufferArea Renders cc608 buffer to specified area of specified memory.
LIBCCRENDER_FREETYPE_API mw_cc_screen_t * MWCreateCCScreen(int t_nWidth, int t_nHeight)
MWCreateCCScreen Creates a CC screen.
LIBCCRENDER_FREETYPE_API mw_cc_render_t * MWCreateRender()
MWCreateRender Creates a CC renderer.
enum _CC_RESULT MW_CC_RESULT
MW_CC_RESULT.
mw_cc708_tv_window_screen_t display of closed captions
Definition: mw_cc708_base_types.h:635
LIBCCRENDER_FREETYPE_API MW_CC_RESULT MWRenderCC608Screen(mw_cc_screen_t *t_pScreen, mw_cc608_buffer_t *t_pCC608Buffer, mw_cc_font_t *t_pmcfFont, mw_cc_render_t *pRender)
MWRenderCC608Screen Renders on screens with cc608 buffer.
LIBCCRENDER_FREETYPE_API MW_CC_RESULT MWRenderCC708Buffer(unsigned char *t_pScreen, int t_nWidth, int t_nHeight, int t_nSize, mw_cc708_tv_window_screen_t *t_pWindowScreen, mw_cc_font_t *t_pmcfFont, mw_cc_render_t *pRender)
MWRenderCC708Buffer Renders cc708 tv_window_screen to the specified memory.
Definition: mw_cc708_render_base_types.h:77
Definition: mw_cc708_render_base_types.h:70
Definition: mw_cc708_render_base_types.h:47
LIBCCRENDER_FREETYPE_API MW_CC_RESULT MWRenderCC708BufferArea(unsigned char *t_pScreen, int t_nWidth, int t_nHeight, int t_nSize, int t_nX, int t_nY, int t_nAWidth, int t_nAHeight, mw_cc708_tv_window_screen_t *t_pWindowScreen, mw_cc_font_t *t_pmcfFont, mw_cc_render_t *pRender)
MWRenderCC708BufferArea Renders cc708 tv_window_screen to the specified area of specified memory...
LIBCCRENDER_FREETYPE_API void MWDestoryRender(mw_cc_render_t *pRender)
MWDestoryRender Destroys a cc renderer.
LIBCCRENDER_FREETYPE_API MW_CC_RESULT MWRenderCC708Screen(mw_cc_screen_t *t_pScreen, mw_cc708_tv_window_screen_t *t_pWindowScreen, mw_cc_font_t *t_pmcfFont, mw_cc_render_t *pRender)
MWRenderCC708Screen Renders cc708 tv_window_screen to screen.
Definition: mw_cc708_render_base_types.h:29
LIBCCRENDER_FREETYPE_API void MWRenderCCSetBackgroundColor(mw_cc_font_t *t_pFont, bool t_bSet, mw_cc_color_t t_mccColor)
MWRenderCCSetBackgroundColor Sets the default or custom background color.
LIBCCRENDER_FREETYPE_API void MWUnLoadFont(mw_cc_font_t *t_pmcfFont, mw_cc_render_t *pRender)
MWUnLoadFont Unloads fonts.
mw_cc608_buffer_t cc608 single channel character
Definition: mw_cc708_base_types.h:220
LIBCCRENDER_FREETYPE_API void MWRenderCCSetFontColor(mw_cc_font_t *t_pFont, bool t_bSet, mw_cc_color_t t_mccColor)
MWRenderCCSetFontColor Sets the default or custom Font color.
LIBCCRENDER_FREETYPE_API MW_CC_RESULT MWRenderCC608Buffer(unsigned char *t_pScreen, int t_nWidth, int t_nHeight, int t_nSize, mw_cc608_buffer_t *t_pCC608Buffer, mw_cc_font_t *t_pmcfFont, mw_cc_render_t *pRender)
MWRenderCC608Buffer Render cc608 buffer to the specified memory.