MWCapture SDK Linux  3.3.1.LAST_SVN_COMMIT_NUM
mw_cc708_render_base_types.h
1 #ifndef MWCCREBDER_H
2 #define MWCCREBDER_H
3 // Copyright (c) 2011-2019 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 #include <stdint.h>
25 #pragma once
26 
27 #define MW_FONT_PATH_MAX_LEN 128
28 
29 typedef struct _cc_color{
30  unsigned char r;
31  unsigned char g;
32  unsigned char b;
33  unsigned char a;
35 
40 typedef enum _color_format{
46 
47 typedef struct _cc_font{
48  void *pft_lib;
49  void *pft_face;
50  int16_t nft_error;
51  char csfont_path[MW_FONT_PATH_MAX_LEN];
52  void *pdefault_font;
53  int32_t ndefault_font_mem_size;
54  int16_t nfont_height;
55  int16_t nfont_width;
56  int16_t nfont_ratio; //50-100;
57 
58  mw_cc_color_t mccfont_color;
59  mw_cc_color_t mccbacl_color;
60  bool bitalic;
61  bool bunderline;
62  bool bdefault;
63 
64  mw_cc_color_t mcccustom_font_color;
65  mw_cc_color_t mcccustom_back_color;
66  bool bcustom_font_color;
67  bool bcustom_back_color;
69 
70 typedef struct _cc_screen{
71  int16_t nwidth;
72  int16_t nheight;
73  int32_t nsize;
74  unsigned char *pscreen_buffer;
76 
77 typedef struct _cc_render{
78  void* pft_libary;
79  void* phresource;
80  void *pdefault_font;
81  int32_t ndefault_font_mem_size;
83 #endif
_color_format
Color formats.
Definition: mw_cc708_render_base_types.h:40
enum _color_format mw_color_format_t
Color formats.
ARGB.
Definition: mw_cc708_render_base_types.h:43
ABGR.
Definition: mw_cc708_render_base_types.h:44
RGBA.
Definition: mw_cc708_render_base_types.h:41
Definition: mw_cc708_render_base_types.h:77
Definition: mw_cc708_render_base_types.h:70
Definition: mw_cc708_render_base_types.h:47
Definition: mw_cc708_render_base_types.h:29
BGRA.
Definition: mw_cc708_render_base_types.h:42