LibMWCapture  3.3.1
LibMWCapture Documentation
mw_cc708_render.h
Go to the documentation of this file.
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 mw_cc_render_t *MWCreateRender();
46 
53 void MWDestoryRender(mw_cc_render_t *pRender);
54 
63 bool MWLoadFont(mw_cc_font_t *t_pmcfFont, mw_cc_render_t *pRender);
64 
72 void MWUnLoadFont(mw_cc_font_t *t_pmcfFont, mw_cc_render_t *pRender);
73 
82 mw_cc_screen_t *MWCreateCCScreen(int t_nWidth, int t_nHeight);
83 
90 void MWDestoryCCScreen(mw_cc_screen_t *t_pScreen);
91 
102 MW_CC_RESULT MWRenderCC608Screen(
103  mw_cc_screen_t *t_pScreen,
104  mw_cc608_buffer_t *t_pCC608Buffer,
105  mw_cc_font_t *t_pmcfFont,
106  mw_cc_render_t *pRender);
107 
121 MW_CC_RESULT MWRenderCC608Buffer(
122  unsigned char *t_pScreen,
123  int t_nWidth,
124  int t_nHeight,
125  int t_nSize,
126  mw_cc608_buffer_t *t_pCC608Buffer,
127  mw_cc_font_t *t_pmcfFont,
128  mw_cc_render_t *pRender);
129 
147 MW_CC_RESULT MWRenderCC608BufferArea(
148  unsigned char *t_pScreen,
149  int t_nWidth,
150  int t_nHeight,
151  int t_nSize,
152  int t_nX,
153  int t_nY,
154  int t_nAWidth,
155  int t_nAHeight,
156  mw_cc608_buffer_t *t_pCC608Buffer,
157  mw_cc_font_t *t_pmcfFont,
158  mw_cc_render_t *pRender
159 );
160 
171 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);
172 
185 MW_CC_RESULT MWRenderCC708Buffer(
186  unsigned char *t_pScreen,
187  int t_nWidth,
188  int t_nHeight,
189  int t_nSize,
190  mw_cc708_tv_window_screen_t *t_pWindowScreen,
191  mw_cc_font_t *t_pmcfFont,
192  mw_cc_render_t *pRender);
193 
210 MW_CC_RESULT MWRenderCC708BufferArea(
211  unsigned char *t_pScreen,
212  int t_nWidth,
213  int t_nHeight,
214  int t_nSize,
215  int t_nX,
216  int t_nY,
217  int t_nAWidth,
218  int t_nAHeight,
219  mw_cc708_tv_window_screen_t *t_pWindowScreen,
220  mw_cc_font_t *t_pmcfFont,
221  mw_cc_render_t *pRender);
230 void MWRenderCCSetBackgroundColor(mw_cc_font_t *t_pFont, bool t_bSet, mw_cc_color_t t_mccColor);
231 
240 void MWRenderCCSetFontColor(mw_cc_font_t *t_pFont, bool t_bSet, mw_cc_color_t t_mccColor);
241 
242 #endif
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 Render the screen with cc708 tv_window_screen.
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 Render the cc608 buffer to the certain area of the given memeory.
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 Render the screen 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 Render the cc708 tv_window_screen to given memory.
LIBCCRENDER_FREETYPE_API void MWRenderCCSetBackgroundColor(mw_cc_font_t *t_pFont, bool t_bSet, mw_cc_color_t t_mccColor)
MWRenderCCSetBackgroundColor Set the caption with default background color or custom background color...
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 Render the cc708 tv_window_screen to the certain area of the given memeory...
LIBCCRENDER_FREETYPE_API bool MWLoadFont(mw_cc_font_t *t_pmcfFont, mw_cc_render_t *pRender)
MWLoadFont Load font.
LIBCCRENDER_FREETYPE_API void MWUnLoadFont(mw_cc_font_t *t_pmcfFont, mw_cc_render_t *pRender)
MWUnLoadFont Unload font.
#define LIBCCRENDER_FREETYPE_API
LIBCCRENDER_FREETYPE_API mw_cc_render_t * MWCreateRender()
MWCreateRender Create a render.
LIBCCRENDER_FREETYPE_API mw_cc_screen_t * MWCreateCCScreen(int t_nWidth, int t_nHeight)
MWCreateCCScreen Create the screen to be rendered.
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 the cc608 buffer to a given memory.
LIBCCRENDER_FREETYPE_API void MWDestoryRender(mw_cc_render_t *pRender)
MWDestoryRender Destory the render.
LIBCCRENDER_FREETYPE_API void MWDestoryCCScreen(mw_cc_screen_t *t_pScreen)
MWDestoryCCScreen Destory the screen.
LIBCCRENDER_FREETYPE_API void MWRenderCCSetFontColor(mw_cc_font_t *t_pFont, bool t_bSet, mw_cc_color_t t_mccColor)
MWRenderCCSetFontColor Set the caption with default font color or custom font color.